Jump to content
  • 0

Item Exchanger ( Menu Error )


Question

Posted (edited)

Hello Everybody, this is an item exchanger. Can someone tell me what's wrong plus can anyone help me with this? Any help will be appreciated. Ciao. 

 

 

rAthena Version SVN: r17709

 

oh7n1w.jpg

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

menu "Skulls to PODs",-,"PODs to Skulls",CS_2,"^ff0000Leave^000000",M_EXIT;

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;
}

CS_2:

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

M_EXIT:
	mes "^ff0000@awesomazingxed^000000 ( Admin )";
	mes callfunc("F_Bye");
	close;
OnInit:

end;
}
Edited by awesomazingxed

2 answers to this question

Recommended Posts

Posted

 

change this

}
close;
}

CS_2:

if( countitem(7179) < 1 )

to

}
close;

CS_2:

if( countitem(7179) < 1 )

 

Finally it works! Thanks Stolao  /no1

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

menu "Skulls to PODs",-,"PODs to Skulls",CS_2,"^ff0000Leave^000000",M_EXIT;

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;

CS_2:

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

M_EXIT:
	mes "^ff0000@awesomazingxed^000000 ( Admin )";
	mes callfunc("F_Bye");
	close;
OnInit:

end;
}

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...