[Release] Guild War Winner npc

11/30/2009 09:48 Arcо#16
What exactly in this code is stopping the winner from claiming the prize multiple times?
11/30/2009 11:41 ~*NewDuuDe*~#17
You should probably add the Cp packet, and do a loop on how many times people can do it.
11/30/2009 11:46 Arcо#18
Quote:
Originally Posted by BERGHUIS1 View Post
You should probably add the Cp packet, and do a loop on how many times people can do it.
That's kinda what I was hinting at.
Lol I did this already.
11/30/2009 11:52 ~*NewDuuDe*~#19
I only read like 2 posts in here, lol.
11/30/2009 20:06 Tw3ak#20
Quote:
Originally Posted by Tiku View Post
That's kinda what I was hinting at.
Lol I did this already.
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.
11/30/2009 21:20 airborne.#21
so is anyone going to post the correct code LOL?
11/30/2009 21:23 -Shunsui-#22
Quote:
Originally Posted by Tw3ak View Post
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.
yeah i thod of that i was thinking using DayOfWeek.Monday or w,e etc since in real co u get the cps on mondays
11/30/2009 22:05 Tw3ak#23
Quote:
Originally Posted by airborne. View Post
so is anyone going to post the correct code LOL?
I hadn't planned on it no but don't worry i'm sure one of these guys will give you something to leech for u to copy+paste in no time.
11/30/2009 22:55 hunterman01#24
I guess i could make a npc that gives the halo and only does it on monday.

I made that code in like 5 mintues cause i saw someone who needed one.

If you no what your doing, you will be able to make a loop cause im not going to.
12/01/2009 06:15 sawickas#25
Halos work in his source?
12/01/2009 06:35 hunterman01#26
Nope u have to code them seeing as how you do not know how to do that

I doubt you will ever get halos unless someone releases them.
12/22/2009 21:21 ~quablerist~#27
I used -Shunsui- 's Code and It works.... but....
If I press again I will get the reward again and again and again xD
Can you maybe make it that I can get this just 1time after winning the gw ?
Anyway Nice code :D
12/29/2009 05:24 BALTA00#28
Me too get the problem with other codec: I want know how to fix this, want ppl can claim reward only a time, anyone can fix this?

Here codec, give to winer TopGuildLead, and TopDeputyLeader effect, and 3k cps, credit to Equalizer92, I do some thing for fix some error in this codec, now work, but with this proble of mutiple claim:

PHP Code:
#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 (2005GC.MyChar.Name "Has won 3k cps Congratulations");
                                }
                                if (
Control == 5)
                                {
                                    
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeader);
                                    
GC.Message(2005GC.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 (2005GC.MyChar.Name "Has won 3k cps Congratulations");
                                }
                                    if (
Control == 7)
                                {
                                    
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
                                    
GC.Message(2005GC.MyChar.Name "Has won the TopDeputyLeader Congratulations");
                                }
                                break;
                            
#endregion 
Who king of C# can fix this?

Waiting for that...