EmOstory Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Some codes *npcs*

2 posters

Go down

Some codes *npcs* Empty Some codes *npcs*

Post  binso Wed Feb 10, 2010 11:18 am

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
{ Arrow Binso Want to be a Girl i can use the command *gm command* but too lazy so add this!}
binso
binso
Admin
Admin

Posts : 52
Points : 5299
Join date : 2010-02-07

Back to top Go down

Some codes *npcs* Empty Re: Some codes *npcs*

Post  [Owner]Dan[: Fri Feb 12, 2010 5:06 pm

Thanks for the code.. will add it to the server later..

[Owner]Dan[:
Admin
Admin

Posts : 57
Points : 5290
Join date : 2010-01-31

https://emostory.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum