dave23 Posted June 2, 2012 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
Emistry Posted June 2, 2012 Posted June 2, 2012 the reward is only given to Guild Master...then Guild Master distribute the reward to players. Quote
dave23 Posted June 2, 2012 Author 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
Emistry Posted June 2, 2012 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
dave23 Posted June 2, 2012 Author 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
Emistry Posted June 2, 2012 Posted June 2, 2012 just add that part inside the script somewhere in it.. not relace those code..just add in that part... Quote
Question
dave23
Can someone fix this? because my players cant get the prize even after the woe ends. thanks for fixing
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.