May I know how to make this getitembound in guild package exclusive in WOE map only?
//===== rAthena Script =======================================
//= GuildPack NPC with Gepard Function Supported
//===== By: ==================================================
//= BeWan
//https://rathena.org/board/profile/62232-bewan/
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= GuildPack NPC supported of gepard function " unique_id "
//= Minimum of 10 members online
//= Guild Leader and Member Reward Supported
//============================================================
prontera,155,182,4 script GuildPack NPC 10191,{
.@unique_id$ = get_unique_id();
if( !getcharid(2) ){
mes "You Don't Have Guild.";
close;
}
mes "[Master Krane]";
mes "Good day!";
mes "Do you want to claim Guild-Pack?!";
next;
menu "Yes Please",yes,"Nope",no;
yes:
query_sql "SELECT `guild_id`, COUNT(`online`) FROM `char` WHERE `guild_id` = '"+getcharid(2)+"' AND `online` = '1'", .@Gid, .@online;
getinventorylist;
.@weight = 100 * Weight / MaxWeight;
if ( .@online < 10 ) {
mes "[Master Krane]";
mes "Sorry not enough online members";
mes "You must have 10 members online to claim Guild-Pack";
close;
}else if ( @inventorylist_count > 30 ) {
mes "[Master Krane]";
mes "You have 30 different items in your inventory.";
close;
}else if((.@weight) > 50){
mes "[Master Krane]";
mes "^FF0000You must atleast have 50 percent extra weight to receive guildpack.^000000";
mes " ";
mes "You are currently at " + .@weight + " percent of your maximum weight.";
close;
}else if(getd("$GpackID_" + .@unique_id$) > 0 || #GuildPackReward > 0){
mes "[Master Krane]";
mes "You have already claimed your GuildPack.";
close;
}else if (getguildmasterid(getcharid(2)) == getcharid(0)) {
mes "[Master Krane]";
mes "Hello Guild Leader.";
next;
mes "Here's your GuildPack. Have a nice day!";
setd "$GpackID_" + .@unique_id$,1;
#GuildPackReward = 1;
$gpack_count -= 1;
/////GuildMaster REWARD
//getitembound 1202,1,Bound_Account;
//getitembound 1202,1,Bound_Guild;
//getitembound 1202,1,Bound_Party;
//getitembound 1202,1,Bound_Char;
getitem 2311,1;
////
if ($gpack_count == 0)
$reward_status = 1;
end;
}else{
mes "[Master Krane]";
mes "Hello Guild Member.";
next;
mes "Here's your GuildPack. Have a nice day!";
setd "$GpackID_" + .@unique_id$,1;
#GuildPackReward = 1;
$gpack_count -= 1;
/////GuildMember REWARD
//getitembound 1601,1,Bound_Account;
//getitembound 1601,1,Bound_Guild;
//getitembound 1601,1,Bound_Party;
//getitembound 1601,1,Bound_Char;
getitem 2319,1;
////
if ($gpack_count == 0)
$reward_status = 1;
end;
}
no:
mes "Well Okay";
close;
OnInit:
waitingroom "Guildpack!",0;
end;
}
Good day!
May I know how to make this getitembound in guild package exclusive in WOE map only?
//===== rAthena Script ======================================= //= GuildPack NPC with Gepard Function Supported //===== By: ================================================== //= BeWan //https://rathena.org/board/profile/62232-bewan/ //===== Current Version: ===================================== //= 1.0 //===== Description: ========================================= //= GuildPack NPC supported of gepard function " unique_id " //= Minimum of 10 members online //= Guild Leader and Member Reward Supported //============================================================ prontera,155,182,4 script GuildPack NPC 10191,{ .@unique_id$ = get_unique_id(); if( !getcharid(2) ){ mes "You Don't Have Guild."; close; } mes "[Master Krane]"; mes "Good day!"; mes "Do you want to claim Guild-Pack?!"; next; menu "Yes Please",yes,"Nope",no; yes: query_sql "SELECT `guild_id`, COUNT(`online`) FROM `char` WHERE `guild_id` = '"+getcharid(2)+"' AND `online` = '1'", .@Gid, .@online; getinventorylist; .@weight = 100 * Weight / MaxWeight; if ( .@online < 10 ) { mes "[Master Krane]"; mes "Sorry not enough online members"; mes "You must have 10 members online to claim Guild-Pack"; close; }else if ( @inventorylist_count > 30 ) { mes "[Master Krane]"; mes "You have 30 different items in your inventory."; close; }else if((.@weight) > 50){ mes "[Master Krane]"; mes "^FF0000You must atleast have 50 percent extra weight to receive guildpack.^000000"; mes " "; mes "You are currently at " + .@weight + " percent of your maximum weight."; close; }else if(getd("$GpackID_" + .@unique_id$) > 0 || #GuildPackReward > 0){ mes "[Master Krane]"; mes "You have already claimed your GuildPack."; close; }else if (getguildmasterid(getcharid(2)) == getcharid(0)) { mes "[Master Krane]"; mes "Hello Guild Leader."; next; mes "Here's your GuildPack. Have a nice day!"; setd "$GpackID_" + .@unique_id$,1; #GuildPackReward = 1; $gpack_count -= 1; /////GuildMaster REWARD //getitembound 1202,1,Bound_Account; //getitembound 1202,1,Bound_Guild; //getitembound 1202,1,Bound_Party; //getitembound 1202,1,Bound_Char; getitem 2311,1; //// if ($gpack_count == 0) $reward_status = 1; end; }else{ mes "[Master Krane]"; mes "Hello Guild Member."; next; mes "Here's your GuildPack. Have a nice day!"; setd "$GpackID_" + .@unique_id$,1; #GuildPackReward = 1; $gpack_count -= 1; /////GuildMember REWARD //getitembound 1601,1,Bound_Account; //getitembound 1601,1,Bound_Guild; //getitembound 1601,1,Bound_Party; //getitembound 1601,1,Bound_Char; getitem 2319,1; //// if ($gpack_count == 0) $reward_status = 1; end; } no: mes "Well Okay"; close; OnInit: waitingroom "Guildpack!",0; end; }
Share this post
Link to post
Share on other sites