- Joined
- Jul 2, 2008
- Messages
- 210
- Reaction score
- 3
Hey Guys
i Maded a Cool Karma Seller, Because Some guys at My Server Said i cant enter your shop So i made a karma seller, each karma costs 5million you can change the price
1st how to change the karma price
find at the npc script
and change the 5 million to the price you want at the npc like :
and then find at the npc script
and change the 5000000 to the price u choosed like :
and then find at the npc script
and change the 5000000 to the price u choosed like :
Traa The Price Has Been Changed
2nd Npc Script
This kills the point of karma Dont even Use it ill change my shop to Meso ticket Shop
i Maded a Cool Karma Seller, Because Some guys at My Server Said i cant enter your shop So i made a karma seller, each karma costs 5million you can change the price
1st how to change the karma price
find at the npc script
PHP:
One Karma worths #b5 million mesos#k.
PHP:
One Karma worths #b20 million mesos#k.
PHP:
fee = cm.getText() * 5000000;
PHP:
fee = cm.getText() * 20000000;
PHP:
cm.gainMeso(selected * -5000000);
PHP:
cm.gainMeso(selected * -20000000);
Traa The Price Has Been Changed
2nd Npc Script
PHP:
/*Npc=You Choose Job= Karma Seller! Author 3esah*/
var status = 0;
var selected;
var fee;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0) {
cm.sendOk("cya.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hi I'm Mia I sell Karma!");
} else if (status == 1) {
cm.sendGetText("So Tell Me How much Karma do you want? One Karma worths #b5 million mesos#k.");
} else if (status == 2) {
selected = cm.getText();
fee = cm.getText() * 5000000;
cm.sendYesNo("Do you want to buy " + selected + " Karma for " + fee + " mesos, #h #?");
} else if (status == 3) {
if (cm.getMeso() < fee || cm.getText() < 0) {
cm.sendOk("You don't have enough money or the amount of Karma you have entered is incorrect.");
cm.dispose();
} else {
cm.gainKarma(selected);
cm.gainMeso(selected * -5000000);
cm.sendNext("Thanks! You now have " + selected + " more Karma and " + fee + " mesos have been deducted from your account.");
}
} else if (status == 4) {
cm.sendOk("cya!")
cm.dispose();
}
}
}
Last edited: