dave23 Posted June 2, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 99 Reputation: 0 Joined: 04/23/12 Last Seen: May 5, 2022 Share Posted June 2, 2012 // -- Requested by Topher // -- Guild Master can take the Rewards everyday after 8.00 PM. [ Based on your WOE Time End ] prtg_cas01,204,204,5 script Guild Rewarder 2035,{ set .@npcname$,"[ ^0000FFGuild Rewarder^000000 ]"; SetArray(.@GuildReward[0], 7729, 674, 7831); // Reward Item ID SetArray(.@EachMembers[0], 1000, 150, 50); // Amount for Each members if ( getguildname(getcastledata("prtg_cas01",1)) == "null" ){ npctalk "I will only serve for Castle Owner."; end; } if ( getcharid(2) != getcastledata("prtg_cas01",1) ){ npctalk "I only serve for "+getguildname(getcastledata("prtg_cas01",1))+" Guild."; end; } mes .@npcname$; mes "Your guild can only claim rewards with me every time WOE has ended."; if ( strcharinfo(0) == getguildmaster(getcharid(2)) ){ mes " "; mes "^FF0000Wait awhile.....Recalling Guild Members............^000000"; atcommand "@guildrecall "+getcharid(2)+""; sleep2 3000; mes "^0000FFDONE^000000"; } next; switch(select(( $@GuildReward == 1 || strcharinfo(0) != getguildmaster(getcharid(2)) )?"":"Claim WOE Rewards", "Information", ( getgmlevel() < 90 )?"":"^FF0000Reset Time^000000")) { Case 1: goto ClaimReward; Case 2: goto Information; } ClaimReward: mes .@npcname$; mes "You may distribute those items for your guild members."; for(Set(.@i, 0); .@i < GetArraySize(.@GuildReward); Set(.@i, .@i + 1)) GetItem(.@GuildReward[.@i], .@EachMembers[.@i] * GetMapGuildUsers(strcharinfo(3), getcharid(2))); announce "Guild Master [ "+getguildmaster(getcharid(2))+" ] Gained some rewards from me . Guild members may take from him.",bc_map; npctalk "Each of you may get ["+.@EachMembers+" x "+getitemname(.@GuildReward)+"] from Guild leader."; message strcharinfo(0),"Distribute those reward to your Guild Members."; set $@GuildReward,1; close; Information: mes .@npcname$; mes "I am a Guild Rewards distributor. I alway reward those guild who have been fighting hardly in WOE ."; mes "In order to thank for they efforts, i have decide to give you all some rewards after you guys have claim the castle ownership."; next; mes .@npcname$; mes "Only Guild Leader can claim the Reward from me."; close; end; } Can someone fix this? because my players cant get the prize even after the woe ends. thanks for fixing Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 2, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: 52 minutes ago Share Posted June 2, 2012 the reward is only given to Guild Master...then Guild Master distribute the reward to players. Quote Link to comment Share on other sites More sharing options...
dave23 Posted June 2, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 99 Reputation: 0 Joined: 04/23/12 Last Seen: May 5, 2022 Author Share Posted June 2, 2012 yes i know it. but every time i need to reload the script for them to get the prize. I dont know why. Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 2, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: 52 minutes ago Share Posted June 2, 2012 hmm ? if based on your post....the only things that come to my mind... is that this variable is not resetted after woe end. $@GuildReward if what i thinking was right...you can try this method to sovle your current problem OnAgitEnd: set $@GuildReward,0; end; Quote Link to comment Share on other sites More sharing options...
dave23 Posted June 2, 2012 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 99 Reputation: 0 Joined: 04/23/12 Last Seen: May 5, 2022 Author Share Posted June 2, 2012 Okay Thanks. I'll try it and post a feedback if its solve or not. Can you post the whole edited script for that? Too much $@guildreward. Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 2, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: 52 minutes ago Share Posted June 2, 2012 just add that part inside the script somewhere in it.. not relace those code..just add in that part... Quote Link to comment Share on other sites More sharing options...
Question
dave23
Can someone fix this? because my players cant get the prize even after the woe ends. thanks for fixing
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.