Jump to content
  • 0

WoE Reward


dave23

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   0
  • Joined:  04/23/12
  • Last Seen:  

// -- 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 :)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

the reward is only given to Guild Master...then Guild Master distribute the reward to players.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   0
  • Joined:  04/23/12
  • Last Seen:  

yes i know it. but every time i need to reload the script for them to get the prize. I dont know why.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   0
  • Joined:  04/23/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

just add that part inside the script somewhere in it.. not relace those code..just add in that part...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...