Jump to content
  • 0

Coin Script


Werdio

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Hi,

I want to add a itemscript for a silver coin.

I should looks like this:

onklick getzeny 1.000.000

I just want to make a usable coin item where you get zeny on klicking.

Thank you and sorry for my badass English :S

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   12
  • Joined:  08/22/12
  • Last Seen:  

This are the scripts I used to use years ago:

671,Silver,Silver Coin,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if((Zeny+(50000000))<(1000000001)){set Zeny,Zeny+(50000000);}else{dispbottom "Your zeny would go above 1,000,000,000 if you use this!"; getitem 671,1; } },{},{}
673,Gold,Gold Coin,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if((Zeny+(100000000))<(1000000001)){set Zeny,Zeny+(100000000);}else{dispbottom "Your zeny would go above 1,000,000,000 if you use this!"; getitem 673,1; } },{},{}
675,Platinum,Platinum Coin,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if((Zeny+(500000000))<(1000000001)){set Zeny,Zeny+(500000000);}else{dispbottom "Your zeny would go above 1,000,000,000 if you use this!"; getitem 675,1; } },{},{}
677,Bronze,Bronze Coin,2,,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if((Zeny+(10000000))<(1000000001)){set Zeny,Zeny+(10000000);}else{dispbottom "Your zeny would go above 1,000,000,000 if you use this!"; getitem 677,1; } },{},{}

You might have to change the values to your needs.

Edited by Kyo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

how about silver coin exchanger npc :) with check weight

prontera,150,150,5	script	Platinum Exchanger	872,{

mes	"[Coin Exchanger]";
mes	"I Can Change Coins and Zeny";
next;
mes	"[Coin Exchanger]";
mes	"Do You Want To Continue?";
menu "Yes",-,"No",G_no;
next;
mes	"[Coin Exchanger]";
mes	"What Do You Want?";
mes	"1,000,000 = 1 Silver Coin";
menu "Silver Coin To Zeny",-,"Zeny To Silver Coin",ztc;
next;
mes	"[Coin Exchanger]";
mes	"Put the Number of Coin you Need";
input .@t;
if( .@t < 0 )||( countitem(675) < .@t ){ close; }
set Zeny,Zeny+1000000*.@t;
delitem 675,.@t;
ztc:
mes	"[Coin Exchanger]";
mes	"Put The Number of Coin to be Change";
input .@t;
if (checkweight(675,.@t)) {
if( Zeny < 1000000*.@t ){ close; }
set Zeny,Zeny-1000000*.@t;
getitem 675,.@t;
} else {
mes "You don't have enough space in your inventory.";
}
close;

G_no:
mes "[Coin Exchanger]";
mes "Please use my service next time";
close;
end;
}

Edited by eJay
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  248
  • Reputation:   1
  • Joined:  06/27/12
  • Last Seen:  

Thanks alot :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  01/12/13
  • Last Seen:  

Posted · Hidden by Euphy, January 12, 2013 - Non-English
Hidden by Euphy, January 12, 2013 - Non-English

graças, ami me serviu be :)

Link to comment

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