Jump to content
  • 0

Guild Rewarder


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

How can i make this to be acceptable to all woe maps which is enable only?

 

// -- Guild Master can take the Rewards everyday after 8.00 PM. [ Based on your WOE Time End ]
prontera,163,182,4 script Guild Rewarder 405,{
set .@npcname$,"[ ^0000FFGuild Rewarder^000000 ]";
set .@GuildReward,12201;  // Reward Item ID
set .@EachMembers,1;  // Amount for Each members
if ( getguildname(getcastledata("prtg_cas02",1)) == "null" ){
npctalk "I will only serve for Castle Owner.";
end;
}
if ( getcharid(2) != getcastledata("prtg_cas02",1) ){
npctalk "I only serve for "+getguildname(getcastledata("prtg_cas02",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;
Case 3: goto ResetTaken;
}
ClaimReward:
mes .@npcname$;
mes "You may distribute those items for your guild members.";
getitem .@GuildReward,.@EachMembers*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;
ResetTaken:
mes .@npcname$;
mes "Guild may now claim the rewards again because GM has reset the time.";
mes "But it will auto reset everyday after ^FF00008.00PM^000000 .";
set $@GuildReward,0;
message strcharinfo(0),"Every time you reload the server will also caused players can claim Reward again.";
close;
OnClock2100:
sleep2 10000;
set $@GuildReward,0;
for(set .@i,6; .@i < 20 ;set .@i,.@i+2) {
  announce "Guild Master of [ "+getguildname(getcastledata("prtg_cas02",1))+" ] Guild  may now Claim WOE Rewards from me.",bc_all,0x76EE00,0,.@i;
  sleep2 500;
}
end;

}

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

How can i make this to be acceptable to all woe maps which is enable only?

Do you use some script to disable/enable the woe map ? Your woe map is always the same ?

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...