Jump to content
  • 0
themon

zeny to cash point

Question

zenytocash.txt - exchange 1000 zeny for 1 cash point and it will also give you 1 free kafra point for every 10 cash point you buy or exchange

 

please make this compatible with hercules emulator because when I made this im still using rathena emulator

zenytocash.txt

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Well the script should be compatible with hercules, Just check if there's any error(I don't think there will be any error if previously there was no error).

Share this post


Link to post
Share on other sites
  • 0

I hope others using hercules emulator can try this.

the error I encounter is I cant check my available cash point and kafra point not like before

Share this post


Link to post
Share on other sites
  • 0

Try this. I shortened it and replaced global temp variables. I haven't test it but it should work fine.

 

 

 

jazeera,151,111,5    script    Cash Exchanger    894,{    mes "[ ^0000ff" +strnpcinfo(1)+"^000000 ]",        "^0000FF1000^000000z is equals to ^FF00001^000000 Cash Point",        "Exchange ^0000FF10^000000 Cash Points ",        "and get free ^FF00001^000000 Kafra Point";    next;switch ( select ( "^FF0000Exchange^000000", "^0000FFCheck Cash Point^000000", "^00FF00Quit^000000" ) ) {    case 1:        mes "[ ^0000ff" + strnpcinfo(1) +"^000000 ]",            "Available Cash Points to Exchange: ^0000FF" + Zeny / 1000 + "^000000"," ",            "How Many Cash Points you want to Exchange?";        input .@ExchangeEC;        set .@ttalEC, ( .@ExchangeEC * 1000 );        if ( Zeny < .@ttalEC || .@ExchangeEC == 0 ) {            mes "Sorry, Invalid Input.";            close;        }        mes "That will be ^0000FF" + .@ttalEC + "^000000z!";        if ( select ( "^FF3355Exchange^000000", "Ive change my mind^000000" ) == 2 ) {                mes "Thanks you ^0000FF" + strcharinfo(0) + "^000000!",                    "Come Again!";                close;        }            set #CASHPOINTS, #CASHPOINTS + .@ExchangeEC;            set #KAFRAPOINTS, #KAFRAPOINTS + ( .@ExchangeEC / 10 );            set Zeny, Zeny - .@ttalEC;            callsub CheckCashKaf;    case 2: callsub CheckCashKaf;    case 3: close;}CheckCashKaf: next;    mes "Your Cash Point: ^0000FF" + #CASHPOINTS + "^000000 ","and Kafra Point: ^0000FF" +#KAFRAPOINTS+ "^000000";    close;OnInit:    waitingroom "Zeny To Cash point Exchange",0;    end;}

 


 

Edited by quesoph

Share this post


Link to post
Share on other sites

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

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.