I added everything the way it's supposed to be added, but when I use the command, a system message comes up and says "Fight!", it don't ask us to be telported or anything, it just says that. Maybe it's cause I don't have a NPC for it, not really sure. I've referred to Korvacs pk tournament npc, but couldn't really figure out how to do it vice versa to arcos class pk tourney.
#region JoinPKTDialog
case 300003:
{
if (Control == 0)
{
if (Features.PKTournament.Stage == Features.PKTournamentStage.Inviting)
{
GC.AddSend(Packets.NPCSay("Would you like to join the PK tournament in the PKArena? You have " + (Features.PKTournament.CountDown - 10) + " seconds to join."));
GC.AddSend(Packets.NPCLink("Sure, I'll join!", 1));
GC.AddSend(Packets.NPCLink("What're the rules?", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
return;
}
else if (Features.PKTournament.Stage != Features.PKTournamentStage.None)
{
GC.AddSend(Packets.NPCSay("You're too late, " + GC.MyChar.Name + ", the tournament has already started!"));
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 == 1)
{
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.InPKT = true;
GC.MyChar.CurHP = 1;
Features.PKTournament.PKTHash.Add(GC.MyChar.EntityID, GC);
}
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());
}
return;
}
#endregion
Add that to you NPCDialogue.cs and it should work.
How do I get it to teleport a certain class to a map at the time of their class pk tournament. For example /classpktourny trojan then all trojans get a dialogue asking if they would like to participate in their class pk tournament. then after everyone but 1 died he automaticaly gets teleport out with a halo that loads after he relogs??
Can I please get some links for the different versions of PK tournament and save haloes that work with this. There are a couple different ones of each. And as I'm understanding it by it not working seems to me it won't work unless you have exactly the right pktournament.cs or save haloes. (THere is an old and a newer save halos both from same guy lol.) so what one am I to use?
I am getting so fed up with trying to get this whole thing to work. I have save haloes working but is with the tops folder in the OldCODB folder. It saves the GW haloes and all other ones if i do it by command. But I can't get the Class Pk tournament working... I don't know if I'm missing a particular version of a release as there has been different versions of PKTournament.cs and Save Haloes. Perhaps I am not using the right combo I have no clue. But I would really appreciate someone guiding me through this on msn at or with team viewer or anything. I will pay if it really comes down to it. I hope that people on here are more generous on here though. I have been trying various combinations of releases to get it working. This is really just about the only "bug" if you will I have on my server. I don't get why I am having such a hassle with this but I am so also to whoever helps me can get PM on my server which I will be buying vps for very very soon. Almost immediately after I get this fixed
Perhaps just uploading your own Database.cs and PKTournament.cs and NPCDialog and Chat or something. A modified slimmed down version (taking out the stuff you don't want to share) if you will.