Hello Please Help me. where i can put checkweight because when player's exchanger from coupon to berry. the berry will drop because player cannot hold 500 berry or overweight here's my script.
prontera,163,185,4 script Converter 83,{
set @name$,"[^FF0000Converter^000000]";
mes @name$;
mes "Hello, 1 Coupon is equals to 500 Berry.";
mes "What would you like to do?";
next;
switch(select("Coupon to Berry:Berry to Coupon"))
{
case 1:
mes @name$;
mes "How many Berry(s) do you want?";
mes "1 Coupon is equal 500 pcs Yggdrasil Berry's";
input .@num;
next;
if(countitem(7037) < .@num)
{
mes @name$;
mes "Sorry, you don't have enough Coupon!";
close;
}
mes @name$;
mes "This will cost ^FF0000"+.@num*1+" Coupon^000000.";
next;
if(select("Proceed:Nevermind")!=1){mes @name$; mes "Goodbye!"; close;}
getitem 607,.@num*500;
delitem 7037,.@num;
break;
case 2:
mes @name$;
mes "How many Coupon(s) will you give?";
input .@num;
next;
if(countitem(607) < .@num)
{
mes @name$;
mes "Sorry, you don't have enough Berry!";
close;
}
mes @name$;
mes "I can give you ^FF0000"+.@num*1+" Coupon^000000 for this.";
next;
if(select("Proceed:Nevermind")!=1){mes @name$; mes "Goodbye!"; close;}
getitem 7037,.@num;
delitem 607,.@num*500;
}
close;
}
Edited by Emistry use [CODEBOX] for long contents.
Question
eJay
Hello Please Help me. where i can put checkweight because when player's exchanger from coupon to berry. the berry will drop because player cannot hold 500 berry or overweight here's my script.
Edited by Emistryuse [CODEBOX] for long contents.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.