Just do AddEffect(not sure what variable is used for 5165, you can figure that out) TopTrojan or whatever the effect name is when ever someone wins the PK tournament. Then add a timer which, for example, removes it after 24 hours.
This below is a NPC that will give you top Tro Halo just edit him a Little hes the NPC that iam doing for Top Pk Tourneys Not done,
Code:
#region PKTourney Done
case 2727:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Have You killed all the other Challengers?"));
GC.AddSend(Packets.NPCLink("Yeh, Menq", 1));
GC.AddSend(Packets.NPCLink("Nah wait", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Trojan Halo");
}
break;
}
#endregion
#region PKTourney Done
case 2727:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Have You killed all the other Challengers?"));
GC.AddSend(Packets.NPCLink("Yeh, Menq", 1));
GC.AddSend(Packets.NPCLink("Nah wait", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Trojan Halo");
}
break;
}
#endregion
That NPC will give you top Tro Halo just edit him a Little hes the NPC that iam doing for Top Pk Tourneys Not done,
Lol and its not that hard to edit this to work for every class btw.
[Question]Best thing you have ever coded (for CO ofcourse)? 04/09/2010 - CO2 Programming - 32 Replies So what have you guys coded? And what do you think is the best thing you did?
Please don't lie about what you coded to look more experienced, because it doesn't really prove that.
The best thing I've ever coded is my source, how ever it's not complete and I didn't spent time getting the packet structures, just got them from other sources and that stuff.
~Bas
[WTS] Silkroad Website Templates - Coded/Not-Coded. With .PSD! 11/30/2009 - Silkroad Online Trading - 4 Replies Examples :
There Is NO Examples at the moment.
Prices :
Price for a full coded website, with a CMS - users can register, write comments. Admin panel included , easy write to news. - 60$.
Included : PSD , all files, FREE WEB HOSTING - 3 months.