I'm a newbie in scripting so please bear with me,
basically the concept is to exchange an ordinary item to a costume item.
Costing the player the ordinary item + 1,000,000 zeny
also with a chance of 50% to succeed.
Here's what I've come up with, but it doesn't go through, anyone please fix it?
Or maybe if you have a working costume exchanger npc laying around, please link it to me
prontera,106,93,6 script Costume Exchanger 49,{
mes "[ Costume Exchanger ]";
mes "Hello there!";
mes "I can help you exchange your item into a costume by chance";
mes "Do you want to continue?";
next;
switch(select("Costume Exchange:Maybe next time.")) {
case 1:
if((countitem(5389)>=1) && (Zeny < 1000000)) {
progressbar "ffff00",7;
delitem 5389,1;
set Zeny, Zeny-1000000;
mes "[ Costume Exchanger ]";
if(rand(100)<10) {
mes "Here you are!";
getitem 20146,1;
close;
}
}
case 2:
mes "[ Costume Exchanger ]";
mes "Come and see me again!";
close;
}
}
Question
kevinyrchua
Hi,
I'm a newbie in scripting so please bear with me,
basically the concept is to exchange an ordinary item to a costume item.
Costing the player the ordinary item + 1,000,000 zeny
also with a chance of 50% to succeed.
Here's what I've come up with, but it doesn't go through, anyone please fix it?
Or maybe if you have a working costume exchanger npc laying around, please link it to me
prontera,106,93,6 script Costume Exchanger 49,{ mes "[ Costume Exchanger ]"; mes "Hello there!"; mes "I can help you exchange your item into a costume by chance"; mes "Do you want to continue?"; next; switch(select("Costume Exchange:Maybe next time.")) { case 1: if((countitem(5389)>=1) && (Zeny < 1000000)) { progressbar "ffff00",7; delitem 5389,1; set Zeny, Zeny-1000000; mes "[ Costume Exchanger ]"; if(rand(100)<10) { mes "Here you are!"; getitem 20146,1; close; } } case 2: mes "[ Costume Exchanger ]"; mes "Come and see me again!"; close; } }
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.