hey guys ive just placed an NPC to give halos to the winners of gw/pk etc, it worked but give to you no matter what, i want it to check and just give if youe the winner of the event of gl of the guild etc heres what ive tried but didnt work.
here is the code
Quote:
if (Control == 10)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeade r);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Guild Leader Halo");
}
else
{
GC.AddSend(Packets.NPCSay("Your not the leader of the winning guild"));
GC.AddSend(Packets.NPCLink("ok."));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
|
if some1 cud help that wud be great.