//===== rAthena Script ======================================= 
//= Gym Pass Cash Item NPC
//===== By: ================================================== 
//= Kisuka
//===== Current Version: ===================================== 
//= 1.3
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= [Official Conversion]
//= Exchange Gym Passes to learn "Enlarge Weight Limit"
//= iRO NPC situated in Payon beside Kafra Shop.
//===== Additional Comments: ================================= 
//= 1.0 First version [L0ne_W0lf]
//= 1.1 Fixed the NPC saying you "00" [L0ne_W0lf]
//= 1.2 Replaced effect numerics with constants. [Samuray22]
//= 1.3 Updated script, and fixed potential errors. [L0ne_W0lf]
//============================================================ 

payon,173,141,4	script	ʥ#GymPass::GymPassMan	899,{
	mes "[ʥ]";
	mes "ãʥˡ";
	mes "ǵѾǰ˰ʹǿͶάƵˡ";
	mes "Ҳôǿ׳Ŷ!";
	next;
	mes "[ʥ]";
	mes "һɣ";
	mes "ұ֤øĶ";
	mes "ÿν^FF0000һŽԱȯ^000000";
	mes "ǾͿԿʼ";
	next;
	mes "[ʥ]";
	mes "Ǳ̫Ŷ";
	mes "ȻԶε";
	mes "ǿ̫";
	mes "ǻԲӴ";
	mes "?";
	next;
	mes "[ʥ]";
	mes "";
	mes "Խһϵϸѵ";
	mes "Щ԰Ӹأ";
	mes "һ^FF000010Ŷ^000000.";
	mes "׼?";
	next;
	switch(select("׼:һû׼:ҵĸ.")) {
	case 1:
		if (gympassmemory < 10) {
			set .@add_carry,gympassmemory + 1;
			set .@remain_carry,10 - .@add_carry;
			if (countitem(7776) > 0) {
				mes "[ʥ]";
				mes "Ŷҿȯ";
				mes "õģ";
				mes "ᷢ,";
				mes "ȥȼյ";
				mes "оɣԤʼ";
				next;
				specialeffect2 EF_EARTHSPIKE;
				next;
				specialeffect2 EF_DEVIL;
				next;
				specialeffect2 EF_COIN;
				next;
				specialeffect2 EF_SIGHTRASHER;
				next;
				mes "[ʥ]";
				mes "ȥĶ";
				mes "ҿǼȥ";
				mes "ĸ^FF0000 " + .@remain_carry + "^000000 Σ";
				delitem 7776,1; //Max_Weight_Up_Scroll
				set gympassmemory,.@add_carry;
				skill "ALL_INCCARRY",.@add_carry,4;
				close;
			}
			else {
				mes "[ʥ]";
				mes "ǵҸ߹?";
				mes "ǿʣ";
				mes "ǵô^FF0000Աȯ^000000";
				mes "ҶӽŶ~";
				close;
			}
		}
		else {
			mes "[ʥ]";
			mes "Ѿ";
			mes "õ˳Ķ";
			mes "ټǿȣ";
			mes "൱Σգ";
			mes "ðɣ";
			mes "Ҹ߹10εģ";
			close;
		}
	case 2:
		mes "[ʥ]";
		mes "Ŷ~̫ˣ";
		mes "ˣԻң";
		mes "ҪӸأ";
		mes "ƼŶ";
		close;
	case 3:
		if (gympassmemory > 0) {
			mes "[ʥ]";
			mes "ʲô?һǶǿ̫¼˰ɣ";
			mes "Ŷм书ܵģҲỨ̫ʱָܻ.";
			next;
			specialeffect2 EF_EARTHSPIKE;
			next;
			specialeffect2 EF_DEVIL;
			next;
			specialeffect2 EF_COIN;
			next;
			specialeffect2 EF_SIGHTRASHER;
			next;
			mes "[ʥ]";
			mes "ڸоô?";
			mes "ļӦûָ";
			mes "Ҫٳɶ";
			mes "ǧҪסŶ";
			skill "ALL_INCCARRY",gympassmemory,4;
			close;
		}
		else {
			mes "[ʥ]";
			mes "...";
			mes "ģ֮ǰû";
			mes "о˶Ӱ쵽";
			mes "ĸ~";
			mes "ұ֤һ";
			close;
		}
	}
}

prontera,160,136,3	duplicate(GymPassMan)	ʥ#GymPass_prt	899
