Some codes *npcs*
2 posters
Page 1 of 1
Some codes *npcs*
Gender Changer NPC :
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.sendYesNo(" Hello #b#h ##k, do you want to change your gender? It takes you only 2Bill to change . ");
} else if (status == 1) {
if (cm.getChar().getGender() == 0) {
if (cm.getMeso() > 2000000000) {
cm.getChar().setGender(1);
cm.gainMeso(-2000000000);
cm.sendOk(" You have changed your gender. Come back again to change back . Happy Being Emo .\r\n#d Note: You have to change Map for it to take effect. ");
cm.dispose();
cm.reloadChar();
} else {
cm.sendOk("Sorry you do not have 2bill mesos. Train harder..");
cm.dipose();
}
} else if (cm.getChar().getGender() == 1) {
if (cm.getMeso() > 2000000000) {
cm.getChar().setGender(0);
cm.gainMeso(-2000000000);
cm.sendOk(" You have changed your gender . Come back again to change back . Happy Being Emo . \r\n#d Note: You have to change Map for it to take effect. ");
cm.dispose();
cm.reloadChar();
} else {
cm.sendOk("Sorry you do not have 2bill mesos. Train harder..");
cm.dispose();
}
}
}
}
}
-------------------------------------------
That all i can find So Please add this to the server
{ Binso Want to be a Girl i can use the command *gm command* but too lazy so add this!}
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.sendYesNo(" Hello #b#h ##k, do you want to change your gender? It takes you only 2Bill to change . ");
} else if (status == 1) {
if (cm.getChar().getGender() == 0) {
if (cm.getMeso() > 2000000000) {
cm.getChar().setGender(1);
cm.gainMeso(-2000000000);
cm.sendOk(" You have changed your gender. Come back again to change back . Happy Being Emo .\r\n#d Note: You have to change Map for it to take effect. ");
cm.dispose();
cm.reloadChar();
} else {
cm.sendOk("Sorry you do not have 2bill mesos. Train harder..");
cm.dipose();
}
} else if (cm.getChar().getGender() == 1) {
if (cm.getMeso() > 2000000000) {
cm.getChar().setGender(0);
cm.gainMeso(-2000000000);
cm.sendOk(" You have changed your gender . Come back again to change back . Happy Being Emo . \r\n#d Note: You have to change Map for it to take effect. ");
cm.dispose();
cm.reloadChar();
} else {
cm.sendOk("Sorry you do not have 2bill mesos. Train harder..");
cm.dispose();
}
}
}
}
}
-------------------------------------------
That all i can find So Please add this to the server
{ Binso Want to be a Girl i can use the command *gm command* but too lazy so add this!}
binso- Admin
- Posts : 52
Points : 5299
Join date : 2010-02-07
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|