Hi! Well I was writing this simple script here, It is a banker that exchanges bank notes to 1 Million Zeny and vice versa.
Well, the problem is that it changes bank notes to zeny smoothly ( tried changing tens , hundreds and thousands -- no problems). The problem starts when i tried changing zeny into bank notes -- it only changes a maximum of 10 Bank Notes (10 Million Zeny per transaction). Hope you can tell me what I should do to fix this. Here is my script:
prontera,147,184,4 script Banker 833,{ //|==========Settings============================== set @npcname$,"^ff0000[banker]^000000"; set @banknoteprice,1000000; set @banknoteid,7922; //|================================================ mes @npcname$; mes "Hi "+ strcharinfo(0) +", I can change your bank notes into zeny, and vice versa."; mes "Each bank note is worth 1 Million Zeny."; next; mes @npcname$; mes "So tell me,what can i do for you?"; switch(select("Exchange Bank Notes to Zeny:Exchange Zeny to Bank Notes")) { case 1: next; mes @npcname$; mes "Please put in the amount of Bank Notes you want to exchange:"; next; input @banknoteamount; if (@banknoteamount <= 0) { mes @npcname$; mes "Please come back if you change your mind."; close; } else if (countitem(@banknoteid) < @banknoteamount) { mes @npcname$; mes "You dont have enough Bank Notes to complete this transaction."; close; } next; set @price,@banknoteprice*@banknoteamount; delitem @banknoteid,@banknoteamount; set Zeny,Zeny+@price; mes @npcname$; mes "Transaction complete! Here's your money."; break; case 2: next; mes @npcname$; mes "Please put in the amount of Zeny you want to exchange."; next; input @zenyamount; if (@zenyamount <= 0) { mes @npcname$; mes "Again, the minimum amount of zeny you can exchange is 1 Million Zeny."; close; } else if (@zenyamount > Zeny) { mes @npcname$; mes "I'm sorry but you lack Zeny to complete this transaction."; close; } next; set @noteamount,@zenyamount/@banknoteprice; set @pricea,@noteamount*@banknoteprice; set Zeny,Zeny-@pricea; getitem @banknoteid,@noteamount; mes @npcname$; mes "Transaction complete! Here are your Bank Notes."; break; } close; end; } [/codeBOX][/font]