awesomazingxed Posted January 30, 2015 Posted January 30, 2015 (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 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 January 30, 2015 by awesomazingxed Quote
awesomazingxed Posted January 31, 2015 Author Posted January 31, 2015 change this } close; } CS_2: if( countitem(7179) < 1 ) to } close; CS_2: if( countitem(7179) < 1 ) Finally it works! Thanks Stolao 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; } Quote
Stolao Posted January 30, 2015 Posted January 30, 2015 change this } close; } CS_2: if( countitem(7179) < 1 ) to } close; CS_2: if( countitem(7179) < 1 ) Quote
Question
awesomazingxed
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.

Edited by awesomazingxed2 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.