[Release]Reward Exchanger NPC- The Second!
What does this npc do? It exchanges Gold Maple Leaves for Items.
Items to exchange
Trade 1 Gold Maple Leaf for 1b mesos
Exchange 1b Mesos for 1Golden Maple Leaf
Exchange 1Leaf for 30 Silver Slimes Summoning bags(each bag contains 1 slime)
Exchange 4Leafs for 1 Horntail Victory Squad Boostup card.
Exchange 1Leaf for 4Chaos Scrolls
Exchange 1Leaf for 1 Horntail Head C Summoning bag.
Put this code into your NPC. Note: If you put this npc into a quest npc, it wont work!
Code:
// Credits to Hawksking(Hamza),Moogra,xChibi & Mages4Ever
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hello #h #! I can exchange your Gold Maple Leaf for great items! Here is the option list. \r\n#L1# I would like to trade my #b#v4000313##k for 1 billion mesos!#l \r\n#L2# I would like to exchange 1 billion mesos for a #b#v4000313##k!#l \r\n#L3# I would like to exchange 1 #b#v4000313##k for 30 Silver Slimes Summoning bags.#l \r\n#L4# I would like to exchange 4 #b#v4000313##k for a Horntail Victory powerboost card!#l \r\n#L5# I would like to exchange 4 #b#v4000313##k for 6 Chaos Scrolls 60%.#l \r\n#L6# I would like to exchange 1 #b#v4000313##k for a Horntail Head C summoning bag!#l");
} else if (status == 1) {
if (selection == 1) {
if (cm.haveItem(4000313, 1)) {
cm.gainMeso(+1000000000);
cm.gainItem(4000313, -1);
cm.sendOk("Thanks! Enjoy playing and have fun!");
} else {
cm.sendOk("I'm sorry but you don't have enough #b#v4000313##k!");
}
cm.dispose();
} else if (selection == 2) {
if (cm.getMeso() >= 1000000000) {
cm.gainMeso(-1000000000);
cm.gainItem(4000313, 1);
cm.sendOk("Thanks buddy! You are awsome, see ya later #h # ");
} else {
cm.sendOk("Hey umm... you don't have enough #b#v4000313##k. ");
}
cm.dispose();
} else if (selection == 3) {
if (cm.haveItem(4000313, 1)) {
cm.gainItem(2101024, 30);
cm.gainItem(4000313, -1);
cm.sendOk("Thank you for your bartering #b#v4000313##k!");
} else {
cm.sendOk("I'm sorry but... you don't have enough #b#v4000313##k!");
}
cm.dispose();
} else if (selection == 4) {
if(cm.haveItem(4000313, 4)) {
cm.gainItem(2022108, 1);
cm.gainItem(4000313, -4);
cm.sendOk("Thanks for your #b#v4000313##k!");
} else {
cm.sendOk("I'm sorry but can't exchange anything if you don't have any #b#v4000313##k!");
}
cm.dispose();
} else if (selection == 5) {
if (cm.haveItem(4000313, 1)) {
cm.gainItem(2049***, 4); // edit **** to 100
cm.gainItem(4000313, -1);
cm.sendOk("Thank you for your bartering #b#v4000313##k!");
} else {
cm.sendOk("I'm sorry but... you don't have enough #b#v4000313##k!");
}
cm.dispose();
} else if (selection == 6) {
if(cm.haveItem(4000313, 1)) {
cm.gainItem(21000***, 1); // edit *** to 032
cm.gainItem(4000313, -1);
cm.sendOk("Thanks for your #b#v4000313##k!");
} else {
cm.sendOk("I'm sorry but can't exchange anything if you don't have any #b#v4000313##k!");
}
cm.dispose();
}
else{
cm.sendOk("All right. Happy Mapling!!");
}
}
}
}
Credits
HawksKing- Editing & Adding more Items and text in the second release.
Moogra - He made the mesos for 1 golden leaf part and golden leaf to 1bil part
Mages4Ever - Help fix the npc with any bugs in it
xChibi - Scripting it
You may add this to any npc.
Yes this may be edited and release but credits needed.
Re: [Release]Reward Exchanger NPC- The Second!
Re: [Release]Reward Exchanger NPC- The Second!
2049****
21000***
Which numbers are these?
(Credits Woot o_O)
Re: [Release]Reward Exchanger NPC- The Second!
JThanx for giving credits for my script since i made it O_o
Re: [Release]Reward Exchanger NPC- The Second!
Quote:
Originally Posted by
Mages4ever
2049****
21000***
Which numbers are these?
(Credits Woot o_O)
problem accured, when ever i edit it... it just shows up ****
Re: [Release]Reward Exchanger NPC- The Second!
Code:
cm.gainMeso(+1000000000);
sorry but does that work?
cuz i'm only used to
Code:
cm.gainMeso(1000000000);
and
Code:
cm.gainMeso(-1000000000);
Re: [Release]Reward Exchanger NPC- The Second!
It dosn't give anything to you... it its like you add +1 and then subtract 1 and answer is 0, so dont edit anything and i edited the code read the orange text
Re: [Release]Reward Exchanger NPC- The Second!
cm.gainMeso(+1000000000);
This works.
I've used it before.
Re: [Release]Reward Exchanger NPC- The Second!
Re: [Release]Reward Exchanger NPC- The Second!
Quote:
Originally Posted by
zzlawlzz
Code:
cm.gainMeso(+1000000000);
sorry but does that work?
cuz i'm only used to
Code:
cm.gainMeso(1000000000);
and
Code:
cm.gainMeso(-1000000000);
+ = Positive
- = Negative
nuff to say.
@TS:
So much credits and well...
Re: [Release]Reward Exchanger NPC- The Second!
Re: [Release]Reward Exchanger NPC- The Second!
Re: [Release]Reward Exchanger NPC- The Second!
Quote:
Originally Posted by
HawksKing
Exchange 1b Mesos for 1b mesos
1b mesos to 1b mesos?isnt that the same?
Re: [Release]Reward Exchanger NPC- The Second!
You dont get the script do you Darkz111?
1b Mesos for 1 golden leaf which is worth 1 bil which u can use to hold ur mesos.
thats the purpose of the npc and link to the original script would ya plz :p
Also everyone plz not that this script only works with the version+ that includes chaos scroll
you can remove it tho. if you cant o_o well tough luck ^_^
Re: [Release]Reward Exchanger NPC- The Second!
If you want to delete something pm me.