Jump to content
  • 0

Coin Script


Question

Posted

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

4 answers to this question

Recommended Posts

Posted (edited)

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
Posted (edited)

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
Posted · Hidden by Euphy, January 12, 2013 - Non-English
Hidden by Euphy, January 12, 2013 - Non-English

graças, ami me serviu be :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...