- Joined
- Apr 7, 2008
- Messages
- 312
- Reaction score
- 0
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]
Chill at least it works o.o
Chill at least it works o.o
I'm extremely disappointed at the moment. I thought I had done a better job of writing thing, but it seems I kind of FAILED.
I'm going to slap my computer around a bit and try to get a server up to test it. >:|
if (status == 0) {
cm.sendNext("Ah hello, hello! I'm #bDr. #p" + cm.getNpc() + "##k. I've recently graduated from MMU and I'm ready to perform plastic surgery! Don't worry, I graduated #rmagna cum laude#k, and I've performed over 50 successful surgeries while still in school! So, what do you say? Do you want to change your sex?");
}
if (status == 1) {
cm.sendSimple("Fabulous! I'm offering #b2#k packages for sex changes, so pick one and I'll get started!\r\n#b#L0#Regular Package (" + regprice + " mesos).#l\r\n#L1#VIP Package (" + vipprice +"mesos).#l#k");
}
if (status == 2) {
if (selection == 0) {
cm.sendYesNo("You want the #bRegular Package#k, correct? For " + regprice + " mesos, I can change your sex and I'll even throw in a nice hairstyle and eyes as a small gift from me! Ready to #ego under the knife#k?");
reg = true;
}
if (selection == 1) {
cm.sendYesNo("You want the #bVIP Package#k, correct? For " + vipprice + " mesos I'll change your sex and I'll let you choose any new hairstyle or eyes that you want to have afterwards! Alright, are you ready?");
vip = true;
}
}
if (status == 3 && reg == true) {
if (cm.getMeso() >= 10000) {
cm.sendNext("Alright, #b#h ##k. Take a deep breath and breath in this gas. You'll begin to feel sleepy a...\r\n#p " + cm.getNpc() + "#'s voice fades...");
doreg = true;
} else {
cm.sendOk("I'm sorry, #h #, I don't think you have enough mesos for the #bRegular Package#k. Come back with #b" + regprice + "#k mesos and we'll talk.");
}
}
if (status == 3 && vip == true) {
if (cm.getMeso() >= 1000) {
cm.sendNext("Alright, #b#h ##k. Take a deep breath and breath in this gas. You'll begin to feel sleepy a...\r\n#p " + cm.getNpc() + "#'s voice fades...");
dovip = true;
} else {
cm.sendOk("I'm sorry, #h #, I don't think you have enough mesos for the #bVIP Package#k. Come back with #b" + vipprice + "#k mesos and we'll talk.");
}
}
if (status == 4 && doreg == true) {
cm.changeSex();
cm.gainMeso(-1000);
cm.gainItem(2022043, 10);
if (cm.getGender() == 1) {
cm.setHair(regfemale[possible]);
cm.setFace(21000);
} else {
cm.setHair(regmale[possibletwo]);
cm.setFace(20000);
}
cm.sendNext("The operation was a success! Congratulations, #h #, you are now the opposite sex! I had one of the local hair stylists come in and give you an awesome new hairdo and I gave you a new face while I was waiting for the sleeping gas to wear off. Enjoy your new body! Also, before I forget, here's a sack of #bFruity Candy#k as a little treat for not dying!");
status = 20;
} else if (status == 4 && dovip == true) {
cm.changeSex();
cm.gainMeso(-1000);
cm.gainItem(2022043, 20);
cm.sendNext("Eureka! The operation was a complete success! Here you are, #h #, a sack of #bFruity Candy#k as a special treat for lining my wallet. Get ready, it's time to #eselect your new look#k.");
vipcont = true;
}
if (status == 5 && vipcont == true) {
if (cm.getGender() == 1) {
cm.sendStyle("Pick your new hairstyle. Try to go with one that suits your new sex. One that screams 'I'M A TRANNY!'", vipfemale);
} else {
cm.sendStyle("Pick your new hairstyle. Try to go with one that suits your new sex. One that screams 'I'M A TRANNY!'", vipmale);
}
}
if (status == 6) {
if (cm.getGender() == 1) {
cm.setHair(vipfemale[selection]);
} else {
cm.setHair(vipmale[selection]);
}
cm.sendNext("I hope you're happy with your new hairstyle! Time to select your new face.")
}
if (status == 7) {
if (cm.getGender() == 1) {
cm.sendStyle("Time for you to select a new face. Choose any you want, free of charge. Make sure you find one that suits the new you!", vipeyesf);
} else {
cm.sendStyle("Time for you to select a new face. Choose any you want, free of charge. Make sure you find one that suits the new you!", vipeyesm);
}
}
if (status == 8) {
if (cm.getGender() == 1) {
cm.setFace(vipeyesf[selection]);
} else {
cm.setFace(vipeyesm[selection]);
}
cm.sendNext("Alright then, I believe we're all finished here! Come back if you ever feel like changing your sex again. I could use some more money!");
status = 20;
}
if (status == 20) {
cm.reloadChar();
cm.dispose();
}
}
}
if (status == 9) {
cm.reloadChar();
cm.dispose();
}
I don't understand, dani. I'm fixing it up myself.