Jump to content
  • 0
HisokaMachi

R> npc that convert pods to cash / cash to pods / pcoin

Question

can someone make a npc that converts my pods to 2k cash points and then it can be convert again to pods or convert it to poring coin 1 poring coin = 100 cash so 2k cash is 20 poring coins 

thanks :)

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

is this what you want?

 

 

prontera,150,150,5    script    cash exchanger    100,{    mes "What do you want to exchange?";    if ( select ( "- PODS","- Poring Coin" ) == 2 ) {        mes "Input How many PODs you want to exchange";        input .@input;                if ( .@input == 0 ) {            mes "Not possible.";            close;        }        set #CASHPOINTS, #CASHPOINTS + .@input * 2000;        delitem 501, .@input; // replace 501 to POD item id.        close;    }        mes "Input How many Poring Coins you want to exchange";        input .@input;        if ( .@input == 0 ) {            mes "Not possible.";            close;        }        getitem 501, .@input; // replace 501 to poring coin item id.        set #CASHPOINTS, #CASHPOINTS - .@input * 100;        close;}

 

I haven't tested it.

Share this post


Link to post
Share on other sites
  • 0

is this what you want?

 

 

prontera,150,150,5    script    cash exchanger    100,{    mes "What do you want to exchange?";    if ( select ( "- PODS","- Poring Coin" ) == 2 ) {        mes "Input How many PODs you want to exchange";        input .@input;                if ( .@input == 0 ) {            mes "Not possible.";            close;        }        set #CASHPOINTS, #CASHPOINTS + .@input * 2000;        delitem 501, .@input; // replace 501 to POD item id.        close;    }        mes "Input How many Poring Coins you want to exchange";        input .@input;        if ( .@input == 0 ) {            mes "Not possible.";            close;        }        getitem 501, .@input; // replace 501 to poring coin item id.        set #CASHPOINTS, #CASHPOINTS - .@input * 100;        close;}

 

I haven't tested it.

 

In this script, there are 2 items that NPC will accept? the only difference is the amount of cash reward? 

Share this post


Link to post
Share on other sites
  • 0

delitem 501, .@input; // replace 501 to POD item id.

getitem 501, .@input; // replace 501 to poring coin item id.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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