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

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.