What exactly in this code is stopping the winner from claiming the prize multiple times?
lol same and am also changing it to give cp + halos for top GL and top DL but only after gw has ended not during like this one does anyone can go take pole and get 3k cp lol shouldn't do that it should only give to actual winner of gw depending on duration you run it after it has ended, So i put in a timer to start/end gw every weekend so gives person at least 5 days to have halos.Quote:
That's kinda what I was hinting at.
Lol I did this already.
yeah i thod of that i was thinking using DayOfWeek.Monday or w,e etc since in real co u get the cps on mondaysQuote:
lol same and am also changing it to give cp + halos for top GL and top DL but only after gw has ended not during like this one does anyone can go take pole and get 3k cp lol shouldn't do that it should only give to actual winner of gw depending on duration you run it after it has ended, So i put in a timer to start/end gw every weekend so gives person at least 5 days to have halos.
#region GW Winner NPC
case 145006:
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello you must be the Guild Leader Or DeputyLeader of the winning Guild, Congratulations on Winning now i am sure you are looking for your reward!"));
GC.AddSend(Packets.NPCSay("Take Your Reward If You Win Guild War"));
GC.AddSend(Packets.NPCLink("Iam GuildLeader And My guild won give me my reward please", 1));
GC.AddSend(Packets.NPCLink("Iam DeputyLeader And My guild won give me my reward please", 2));
GC.AddSend(Packets.NPCLink("Thats cool", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner &&(GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.AddSend(Packets.NPCLink("Claimed 3k cps from GuildWar", 4));
GC.AddSend(Packets.NPCLink("Claimed TopGuildLeadEr from TheGuildWar", 5));
GC.AddSend(Packets.NPCLink("Thanks!", 255));
GC.AddSend(Packets.NPCSetFace(10));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 4)
{
GC.MyChar.CPs += 3000;
GC.Message (2005, GC.MyChar.Name + "Has won 3k cps Congratulations");
}
if (Control == 5)
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeader);
GC.Message(2005, GC.MyChar.Name + "Has won the TopGuildLeader Congratulations");
}
if (Control == 2)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner &&(GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.DeputyManager))
{
GC.AddSend(Packets.NPCLink("Claimed 3k cps from GuildWar", 6));
GC.AddSend(Packets.NPCLink("Claimed TopDeputyLeader from TheGuildWar", 7));
GC.AddSend(Packets.NPCLink("Thanks!", 255));
GC.AddSend(Packets.NPCSetFace(10));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 6)
{
GC.MyChar.CPs += 3000;
GC.Message (2005, GC.MyChar.Name + "Has won 3k cps Congratulations");
}
if (Control == 7)
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
GC.Message(2005, GC.MyChar.Name + "Has won the TopDeputyLeader Congratulations");
}
break;
#endregion