Jump to content
  • 0

Item Exchanger HELP


awesomazingxed

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

Halo rathena. Can someone please fix this script for me. This is a simple item exchanger I just want to have a menu of:

 

1. Skulls to PODS

2. PODS to SKULL

 

Thanks in advance. 

turbo_room,106,117,4	script	Currency Exchanger	860,{

	mes callfunc("F_Hi");
	mes "Yo! I am the Currency Exchanger!";
	mes "Do you want to change your Skulls to PODS?";
	mes "or I rather say your PODS to Skulls?";
	next;
switch(select("Skulls to PODS:PODS to Skulls")) {

case 1:
if( countitem(7420) < 1000 )
	mes "You didnt have 1000 "+getitemname( 7420 );
else{
	set .@Amount,( countitem(7420) / 1000 );
	delitem 7420,( .@Amount * 1000 );
	getitem 7179,.@Amount;
	mes "Done...you gained "+.@Amount+" "+getitemname(7179);
}
close;
}

case 2:
if( countitem(7179) < 1 )
	mes "You didnt have 1 "+getitemname( 7179 );
else{
	set .@Amount,( countitem(7179) / 1 );
	delitem 7179,( .@Amount * 1 );
	getitem 7420,( .@Amount * 1000 );;
	mes "Done...you gained "+.@Amount+" "+getitemname(7420);
}
close;
}


Anyone?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...