Jump to content

Question

Posted

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

5 answers to this question

Recommended Posts

Posted

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;

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...