Jump to content
  • 0

Exchanger script plz :D


Question

2 answers to this question

Recommended Posts

Posted

Here Credits goes to Emistry :) 

prontera,155,181,5	script	Sample	757,{
setarray .@ItemID[0],<ItemID>,<ItemID2>;

for( set .@i,0; .@i < getarraysize( .@ItemID ); set .@i,.@i + 1 )
	set .@Menu$,.@Menu$ + getitemname( .@ItemID[.@i] )+":";
mes "Each 2 Cash Points.";
set .@i,( select( .@Menu$ ) - 1 );
if( #CASHPOINTS < 2 ){
	mes "Sorry but you didnt have 2 Cash Points.";
}else{
	mes "How many you want ?";
	mes "Amount : 1 ~ "+( #CASHPOINTS / 2 );
	input .@Amount,0,( #CASHPOINTS / 2 );
	if( .@Amount ){
		set #CASHPOINTS,#CASHPOINTS - ( .@Amount * 2 );
		getitem .@ItemID[.@i],.@Amount;
		mes "Done";
	}
}
close;
}
  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...