Sex change [NPC & function][Updated, fixed]

Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

Sexy release!11one!1
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

Tried this for 2 different NPCs but it doesn't seem to work. Nothing happens after I get this message "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...". This error shows up too
Any ideas how to fix? o-o
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

You don't have the changeSex() function on the first page. <_<

Would someone post a few screens of the script in action? I can't. >:|
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

Ok! i did it! and its work fine! [fixed a little things...]
i combined 2 npcs together!!
you npc and song npc!!
finally did it and it works!

ok here what you need to change if you wnat it to work perfect!
1 sec i'll post it
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

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. >:|

i can help you using team viewer. ^^
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

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();
}

}
}

the changes bolded

if (status == 9) {
cm.reloadChar();
cm.dispose();
}

you dont need it!
just change the last one status to 20 and add in status == 8
status = 20;
and its fix the autologin for the reg packege too

dont forget to credit me :D

btw i tested it.
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

BTW: regprice dont work, if you put this it wont chek the price and say if you dont have the money and it'll do the operation for free
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

iGoofy are you here....? =/
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

i made mine today. and you didnt changed anything today.. and it has some bugs so i fixed it. and your big error is with the random, choose items, because when you chane from female to male its let you choose female hair and things.[i dont try to flame you]
so i made 0 to 1 and it works fine now
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

There were a few more bugs and I've managed to fix a few so far. I'm getting rid of the most prominent ones and testing the whole thing out myself. VIP works just as planned right now, I'll post everything up once I'm done.
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

so if you changed your sex to male its shows you a male things?
for me its showed female things if i changed to male or oposite
and its because you need to relog to update your sex
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

ok Goofy ^^! you get were to test it? O:
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

As they say, if you want something done the right way, do it yourself. The script now works as it should, and there should be no more errors. Any errors that you get are your own fault.

Also, I suggest you read the script carefully this time or your players will laugh at you.

Remove the changeSex() and reloadchar() functions, add the disconnect() function on the first page please!
 
Re: [RELEASE] Sex change [NPC & function][Updated, fixed]

omg, everytime i build, i tried different places,
i get:

init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Administrator\Desktop\FishyStory v1\build\classes
C:\Documents and Settings\Administrator\Desktop\xxxxxx v1\xxxxxx v1\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:272: cannot find symbol
symbol : class ChannelServer
location: class net.sf.odinms.scripting.npc.NPCConversationManager
ChannelServer cserv = getPlayer().getClient().getChannelServer();
1 error
BUILD FAILED (total time: 0 seconds)
 
Back