Ok Ive Currently Added public bool LastAlive = false; Into 5165 Source In Character.cs and I want to Know So When I Code this Into The NPc what else do i have to do My Point on this is So That Option Checks if MyChar Is the Last one Alive in that Current Map If Anyone Can Help Me, Ftw My Npc Would Look Like
Yeah this is My Progress to Class PK Tourney, Help Needed : )
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)
{
if GC.MyChar.LastAlive = true;
{
GC.MyChar.Teleport(1002, 463, 366);
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Trojan Pk War and Has Been Awarded Top Tro Halo");
}
}
break;
}
#endregion