Register for your free account! | Forgot your password?

You last visited: Today at 02:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]PkTournament

Discussion on [Release]PkTournament within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 02/03/2010, 15:27   #16
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Well but, can enter a guy and kill all with magic skills :S
.Kob is offline  
Old 02/03/2010, 18:31   #17
 
ASSN9NE's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 52
Received Thanks: 8
on the client it wont let me clear the "30 seconds left until tournament is over." it keeps spamming it
ASSN9NE is offline  
Thanks
1 User
Old 02/03/2010, 19:20   #18
 
elite*gold: 0
Join Date: Jan 2010
Posts: 31
Received Thanks: 13
Very good release if you could make it work xD

on the PKTournament.cs I get an error on the line Chat.Top = 10; thats the only bug please fix
paralyzer2 is offline  
Old 02/03/2010, 22:24   #19
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
Quote:
Originally Posted by paralyzer2 View Post
Very good release if you could make it work xD

on the PKTournament.cs I get an error on the line Chat.Top = 10; thats the only bug please fix
see the new release .Arco that release can fix that error...

Is release save halos
ramix is offline  
Old 02/03/2010, 23:46   #20
 
elite*gold: 0
Join Date: Jan 2010
Posts: 74
Received Thanks: 18
HELLZ YA ARCO!!!
GOOD JOB BROTHA!!!
Metapod is offline  
Old 02/04/2010, 01:48   #21
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Char.Top is just an example I used as a reward.
Arcо is offline  
Thanks
3 Users
Old 02/04/2010, 02:31   #22
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
ok iam fix it
|xabi| is offline  
Old 02/04/2010, 02:55   #23
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Thanks for credits i guess
hunterman01 is offline  
Thanks
6 Users
Old 02/04/2010, 03:58   #24
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by hunterman01 View Post
Thanks for credits i guess
People should give this guy thanks, he helped with the base of the code.
Arcо is offline  
Thanks
2 Users
Old 02/04/2010, 06:46   #25
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
the code has a little glitch on this linemark in red..
Quote:
PacketHandling.NPCDialog.Handle(Char.MyClient, null, Char.MyClient.DialogNPC, 0);
as we all knew, the Handle of NPCDialog.cs will be triggered each time players will click on a particular NPC in the game. Therefore, by calling this method the Data parameter should have a proper set of values.

In light with this, i run a debugging code inside the Handle of NPCDialog.cs (just before the try block), and i found out that the Data parameter consist of 24 set of byte data. This set of data differ from one NPC to another. if you will add this code in NPCs.txt
Quote:
666111 280 2 1 1002 433 438
the corresponding set of byte data will be.
Quote:
{ 16, 0, 239, 7, 255, 41, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 84, 67, 108, 105, 101, 110, 116}
Below is the fix that I made in my server, enable for it to have a fully functional AutoInvite PKTournament.

1. Open your PKTournament.cs and search for
Quote:
PacketHandling.NPCDialog.Handle(Char.MyClient, null, Char.MyClient.DialogNPC, 0);
2. change it with
Quote:
PacketHandling.NPCDialog.Handle(Char.MyClient, Data, Char.MyClient.DialogNPC, 0);
3. and then above it add this code
Quote:
byte[] Data = { 16, 0, 239, 7, 255, 41, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 84, 67, 108, 105, 101, 110, 116};
4. add this to NPCs.txt
Quote:
666111 280 2 1 1002 433 438
thats all.. If it Help please don't forget to hit Thanks Button
kamote is offline  
Thanks
3 Users
Old 02/04/2010, 06:51   #26
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
And you got tao's permission to release this?
spare2 is offline  
Thanks
1 User
Old 02/04/2010, 07:04   #27
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by spare2 View Post
And you got tao's permission to release this?
this isn't a release... this is just a fix.
kamote is offline  
Old 02/04/2010, 07:08   #28
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by spare2 View Post
And you got tao's permission to release this?
Since I pretty much recoded this I don't really think I need permission.
People edit the 5165 LOTF source and release it, do they need permission.
No.

And @ Kamote
It is a release.
Arcо is offline  
Thanks
1 User
Old 02/04/2010, 07:41   #29
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by .Arco View Post
Since I pretty much recoded this I don't really think I need permission.
People edit the 5165 LOTF source and release it, do they need permission.
No.

And @ Kamote
It is a release.
yeah i know.. what i mean about the "fix" thing is on my comment I posted here... Not the entire release.
kamote is offline  
Old 02/04/2010, 13:18   #30
 
Holo••Ft's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 27
Received Thanks: 7
Quote:
#region JoinPKTDialog
case 666111:
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Would you like to join the PK tournament in the PKArena? You have 20 seconds to join."));
GC.AddSend(Packets.NPCLink("Sure, I'm a beast anyways.", 1));
GC.AddSend(Packets.NPCLink("What're the rules?", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (Features.PKTournament.Stage == Features.PKTournamentStage.Inviting)
{
GC.AddSend(Packets.NPCSay("Goodluck, " + GC.MyChar.Name + "."));
GC.AddSend(Packets.NPCLink("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
GC.MyChar.Teleport(1005, 51, 71);
GC.MyChar.CurHP = 1;
}
else if (Features.PKTournament.Stage == Features.PKTournamentStage.Fighting)
{
GC.AddSend(Packets.NPCSay("You're too late, " + GC.MyChar.Name + "!"));
GC.AddSend(Packets.NPCLink("Darn", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("No PK tournament is going on at this time."));
GC.AddSend(Packets.NPCLink("Darn", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{

GC.AddSend(Packets.NPCSay("The PK tournament is started by a GM, on any map he wants."));
GC.AddSend(Packets.NPCSay("Everyone fights with only 1 HP."));
GC.AddSend(Packets.NPCSay("The last man that isn't a GM standing will 'win' the tournament."));
GC.AddSend(Packets.NPCLink("I want to join!", 1));
GC.AddSend(Packets.NPCLink("No thanks.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
break;
#endregion


Red Mean errors, please answer meh
Holo••Ft is offline  
Reply


Similar Threads Similar Threads
PKTournament
02/12/2010 - CO2 Private Server - 25 Replies
Well I'm tweaking around with my released pktournament and here's the problem I'm coming across. public static void WaitForClass() { PKTournament.Stage = PKTournamentStage.Fighting; uint Tick = (uint)Environment.TickCount; Character Winner = null; while (true) { Winner = null; int InMapAlive = 0;
[Help] PkTournament
02/11/2010 - CO2 Private Server - 1 Replies
Ok, I got 2 problems. I got the command to start the tournament so... 1.) When I start the pktournament and get teleported there, when it starts, me any the players get teleported back and we all win. 2.) After i've done the tournament once and do it again, I type the command to start it, and I get teleported there, and as soon as I get there, it teleports me back. How can I fix these two problems?
[Release] Good PKTournament
01/10/2009 - CO2 PServer Guides & Releases - 11 Replies
#Deleted



All times are GMT +2. The time now is 02:00.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.