Jump to content
  • 0

Request Cashpoint Transfer Player to Player


Yasunari Ishibashi

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

so I want the script to work for the transfer was held cashpoint to another player and the script is able to show the number of cashpoint he has, if anyone can help make it simple script? Thank you.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

- script CashExchange 478,{
mes "[ ^336699Cash Exchanger^000000 ]";
mes "Exchange Cash Coint -> Cash Point";
mes "And Cashpoint -> Cash Coin";
next;
menu
"- Cash Point-> Cash Coin",L_Cash,
"- Cash Coin -> Cash Point",L_CashCoin,
"- Nothing",L_No;


L_Cash:
mes "[ ^336699Cash Exchanger^000000 ]";
mes "You have Cash points ^ff0000"+#CASHPOINTS+"^000000 p.";
mes "Cash Coin 2ea : 1 Cash Point";
mes "How many do you want to exchange?";
set @camount,0;
input @camount;
if (@camount < 0) goto L_NoCash;
if (#cashpoints < @camount) goto L_NoCash;
set #cashpoints,(#cashpoints - (1* @camount));
getitem 29130,2*@camount;
dispbottom "Now you have Cash points "+#CASHPOINTS+" p.";
close;

L_NoCash:
mes "[ ^336699Cash Exchanger^000000 ]";
mes "^336699=================^000000";
mes "You have ^ff0000Cash Point^000000 not enough.";
close;

L_CashCoin:
mes "[ ^336699Cash Exchanger^000000 ]";
mes "Now You have Cash points ^ff0000"+#CASHPOINTS+"^000000 p.";
mes "1 Cash Point = Cash Coin 2ea";
mes "How many do you want to exchange?";
set @pamount,0;
input @pamount;
if (@pamount < 0) goto L_NoCashCoin;
if (countitem(29130) < 2*@pamount) goto L_NoCashCoin;
set #cashpoints,(#cashpoints + (1* @pamount));
delitem 29130,2*@pamount;
dispbottom "Now You have Cash points "+#CASHPOINTS+" p.";
close;

L_NoCashCoin:
mes "^336699=================^000000";
mes "You have ^ff0000Cash Coin^000000 not enough.";
close;

L_No:
mes "[ ^336699Server Exchanger^000000 ]";
mes "Bye";
close;

OnInit:
waitingroom "Cash Exchange",0;
end;

}

Edited by Rozeniiz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

i think you should make a cash coin better, because player can trade or deal and don't worry about NPC Script when have bug to pump a cash point

this is a simple item_db + item script

29000,cash_coin,Cash Coin,0,10,,1,,,,,0xFFFFFFFF,7,2,,,,,,{ set #CASHPOINTS, #CASHPOINTS + 1; dispbottom "You gained 1 Cash Point."; },{},{}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

thanks before, whether you can make a simple script to swap the functions of cashpoint to cashpoint coins & can see that we have how much cashpoint? so function npc is to exchange we have with cashpoint to cashpoint coin. Please help, thank you.

Edited by Yasunari Ishibashi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

- script CashExchange  478,{
mes "[ ^336699Cash Exchanger^000000 ]";
mes "Exchange Cash Coint -> Cash Point";
mes "And Cashpoint -> Cash Coin";
next;

"- Cash Point-> Cash Coin",L_Cash,
"- Cash Coin -> Cash Point",L_CashCoin,
"- Nothing",L_No;


L_Cash:
mes "[ ^336699Cash Exchanger^000000 ]";
mes "You have Cash points ^ff0000"+#CASHPOINTS+"^000000 p.";
mes "Cash Coin 1ea : 1 Cash Point";
mes "How many do you want to exchange?";
set @camount,0;
input @camount;
if (@camount < 0) goto L_NoCash;
if (#cashpoints < @camount) goto L_NoCash;
set #cashpoints,(#cashpoints - (1* @mamount));
getitem 29000,@camount;
dispbottom "Now you have Cash points "+#CASHPOINTS+" p.";
close;

L_NoCash:
mes "[ ^336699Cash Exchanger^000000 ]";
mes "^336699=================^000000";
mes "You have ^ff0000Cash Point^000000 not enough.";
close;

L_CashCard:
mes "[ ^336699Cash Exchanger^000000 ]";
mes "Now You have Cash points ^ff0000"+#CASHPOINTS+"^000000 p.";
mes "1 Cash Point = Cash Coin 1ea";
mes "How many do you want to exchange?";
set @pamount,0;
input @pamount;
if (@pamount < 0) goto L_NoCashCard;
if (countitem(29000) < @pamount) goto L_NoCashCard;
set #cashpoints,(#cashpoints + (1* @pamount));
delitem 29000,@pamount;
dispbottom "Now You have Cash points "+#CASHPOINTS+" p.";
close;

L_NoCashCard:
mes "^336699=================^000000";
mes "You have ^ff0000Cash Coin^000000 not enough.";
close;

L_No:
mes "[ ^336699Server Exchanger^000000 ]";
mes "Buy";
close;

OnInit:
waitingroom "Cash Exchange",0;
end;

}

sorry for my bad English

Edited by Rozeniiz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

if the coin is exchanged for 2 = 1 cashpoint, which should be changed?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

how to use this npc?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

a coordinate is required for NPC ...otherwise..players wont be able to locate this NPC...

so..change

- script CashExchange 478,{

into

prontera,155,181,5 script CashExchange 478,{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

so I want the script to work for the transfer was held cashpoint to another player

Here's another example that works for offline players too: kafrapoints_transfer.txt

(just change all #KAFRAPOINTS to #CASHPOINTS)

and the script is able to show the number of cashpoint he has, if anyone can help make it simple script? Thank you.

Add something like

mes "You have " + #CASHPOINTS + " Cash Points.";

Edited by Brian
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...