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

HisokaMachi

New member
Messages
75
Points
0
Location
Quezon City
Emulator
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
default_smile.png


 
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.

 
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? 

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

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

 
Back
Top