Jump to content

vans29

Members
  • Posts

    56
  • Joined

  • Last visited

Posts posted by vans29

  1. // -- 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;
    
    }
    
    

    panu po edit ko para sa lahat ng castle?

×
×
  • Create New...