[Add On] Gender NPC

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Account Inactive Odsmk is offline
    InactiveRank
    May 2010 Join Date
    The dead plainsLocation
    52Posts

    [Add On] Gender NPC


    RaGEZONE Recommends

    RaGEZONE Recommends

    Meh, nothing too special. It is my newly made gender NPC.

    Alien gender is what it says, but the rare equips are like items you can't wear as either gender. Kind of weird, but I guess that is what happens when you have v95 or whatever items in a lower version server.


    PHP Code:
    function start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(modetypeselection) {
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
            if (
    status >= && mode == 0) {
                
    cm.dispose();
                return;
            }
            if (
    mode == 1)
                
    status++;
            else
                
    status--;
            if (
    status == 0) {
                
    cm.sendNext("#eHello! I am the #dXStory#k gender man.");
            } else if (
    status == 1) {
                
    cm.sendSimple("#eWhat gender would you like to be? It costs 10,000,000 mesos to change! Alien allows you to wear both #rmale#k + #rfemale#k equips, and some special rare equips. If you buy Alien, you will have to pay 5 #i4002000#.\r\n\r\n#b#L0#Male#l\r\n#L1#Female#l\r\n#L2#Alien#l");
            } else if (
    selection == 0) {
                if (
    cm.getPlayer().getMeso() >= 10000000) {
                    if (
    cm.getPlayer().getGender() == 0) {
                        
    cm.sendOk("#eYou are already #rmale#k silly!");
                        
    cm.dispose();
                    } else {
                        
    cm.getPlayer().setGender(0);
                        
    cm.gainMeso(-10000000)
                        
    cm.reloadChar();
                        
    cm.dispose();
                    }
                } else {
                    
    cm.sendOk("#eYou do not have 10,000,000 mesos.");
                    
    cm.dispose();
                }
            } else if (
    selection == 1) {
                if (
    cm.getPlayer().getMeso() >= 10000000) {
                    if (
    cm.getPlayer().getGender() == 1) {
                        
    cm.sendOk("#eYou are already #rfemale#k silly!");
                        
    cm.dispose();
                    } else {
                        
    cm.getPlayer().setGender(1);
                        
    cm.gainMeso(-10000000)
                        
    cm.reloadChar();
                        
    cm.dispose();
                    }
                } else {
                    
    cm.sendOk("#eYou do not have 10,000,000 mesos.");
                    
    cm.dispose();
                }
            } else if (
    selection == 2) {
                if (
    cm.itemQuantity(4002000) >= 5) {
                    if (
    cm.getPlayer().getGender() == 2) {
                        
    cm.sendOk("#eYou are already #rAlien#k silly!");
                        
    cm.dispose();
                    } else {
                        
    cm.getPlayer().setGender(2);
                        
    cm.gainItem(4002000, -5);
                        
    cm.reloadChar();
                        
    cm.dispose();
                    }
                } else {
                    
    cm.sendOk("#eYou do not have 5 #i4002000#.");
                    
    cm.dispose();
                }
            }
        }



  2. #2
    Alpha Member XxОsirisxX is offline
    Alpha MaleRank
    Aug 2009 Join Date
    2,730Posts

    Re: [Add On] Gender NPC

    There is male, female and transsexual in MapleStory, if you set it at a different number than 0 and 1, you can use any cloth as far as I recall. What the heck is alien? You know, aliens does have sex too.

  3. #3
    Account Upgraded | Title Enabled! Sharky is offline
    True MemberRank
    Dec 2010 Join Date
    Ur Mom's Pants.Location
    927Posts

    Re: [Add On] Gender NPC

    I got bored, wanted to shorten it a bit.
    PHP Code:
    var status 0;

    function 
    start() {
        
    cm.sendNext("#eHello! I am the #dXStory#k gender man.");
    }

    function 
    action(m,t,s) {
        
    status++;
        if(
    != 1){
            
    cm.dispose();
            return;
        }
        if (
    status == 1)
            
    cm.sendSimple("#eWhat gender would you like to be? It costs 10,000,000 mesos to change! Alien allows you to wear both #rmale#k + #rfemale#k equips, and some special rare equips. If you buy Alien, you will have to pay 5 #i4002000#.\r\n\r\n#b#L0#Male#l\r\n#L1#Female#l\r\n#L2#Alien#l");
        else if (
    status == 2){
            if(
    cm.getPlayer().getGender() != s)
                if(
    cm.getMeso() >= 10000000){
                    if(
    == 2)
                        if(
    cm.itemQuantity(4002000) >= 5)
                            
    cm.gainItem(4002000, -5);
                        else {
                            
    cm.sendOk("You don't have 5 #i4002000#.");
                            
    cm.dispose();
                        }
                    else
                        
    cm.gainMeso(-10000000);
                    
    cm.getPlayer().setGender(s);
                    
    cm.reloadChar(); // took out the cm.sendOk here because you can't reload and have the npc say something.
                
    } else
                    
    cm.sendOk("You don't have 10,000,000 mesos.");
                
    cm.dispose();
            else {
                
    cm.sendNext("You are already that Gender! Pick again.");
                
    status 0;
            }
        }

    Last edited by Sharky; 21-02-11 at 10:14 PM.

  4. #4
    Account Inactive Odsmk is offline
    InactiveRank
    May 2010 Join Date
    The dead plainsLocation
    52Posts

    Re: [Add On] Gender NPC

    Quote Originally Posted by XxОsirisxX View Post
    There is male, female and transsexual in MapleStory, if you set it at a different number than 0 and 1, you can use any cloth as far as I recall. What the heck is alien? You know, aliens does have sex too.
    2 = alien

    Please read what I said. I call it alien, you call it transsexual.

  5. #5
    return null; mertjuh is offline
    True MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,277Posts

    Re: [Add On] Gender NPC

    This has already been released for like a billion times.

  6. #6
    Account Upgraded | Title Enabled! Sharky is offline
    True MemberRank
    Dec 2010 Join Date
    Ur Mom's Pants.Location
    927Posts

    Re: [Add On] Gender NPC

    Quote Originally Posted by mertjuh View Post
    This has already been released for like a billion times.
    I don't think it matters as long as you release a more efficient or innovative one. Which this is not =/

  7. #7
    Account Inactive EroticPatches is offline
    InactiveRank
    Jun 2010 Join Date
    92Posts

    Re: [Add On] Gender NPC

    PHP Code:
    status = -1;

    function 
    start() {
        
    cm.sendNext("#eHello! I am the #dXStory#k gender man.");
    }

    function 
    action(modetypeselection) {
        
    status++;
        if (
    mode != 1) {
            
    cm.dispose();
            return;
        } 
        if (
    status == 0) {
            
    cm.sendSimple("#eWhat gender would you like to be? It costs 10,000,000 mesos to change! Alien allows you to wear both #rmale#k + #rfemale#k equips, and some special rare equips. If you buy Alien, you will have to pay 5 #i4002000#.\r\n\r\n#b#L0#Male#l\r\n#L1#Female#l\r\n#L2#Alien#l");
        } else {
            
    msg = ["#eYou are already #r"+selection == "male" selection == "female" "Alien"+"#k silly!""#eYou do not have 5 #i4002000#.""#eYou do not have 10,000,000 mesos."];
            if (
    cm.getPlayer().getGender() == selection || selection == && cm.getItemQuantity(4002000) != || selection != && cm.getPlayer().getMeso() < 10000000) { 
                
    cm.sendOk(cm.getPlayer().getGender() == selection msg[0] : selection == && cm.getItemQuantity(4002000) != msg[1] : msg[2]); 
            } else 
                
    cm.getPlayer().setGender(selection);
                if (
    selection == 2)
                    
    cm.gainItem(4002000, -5);
                else 
                    
    cm.gainMeso(-10000000)
                
    cm.reloadChar();
            
    cm.dispose();       
        }

    Last edited by EroticPatches; 21-02-11 at 10:13 PM.

  8. #8
    Account Upgraded | Title Enabled! Sharky is offline
    True MemberRank
    Dec 2010 Join Date
    Ur Mom's Pants.Location
    927Posts

    Re: [Add On] Gender NPC

    Quote Originally Posted by EroticPatches View Post
    PHP Code:
    status = -1;

    function 
    start() {
        
    cm.sendNext("#eHello! I am the #dXStory#k gender man.");
    }

    function 
    action(modetypeselection) {
        
    status++;
        if (
    mode != 1) {
            
    cm.dispose();
            return;
        } 
        if (
    status == 0) {
            
    cm.sendSimple("#eWhat gender would you like to be? It costs 10,000,000 mesos to change! Alien allows you to wear both #rmale#k + #rfemale#k equips, and some special rare equips. If you buy Alien, you will have to pay 5 #i4002000#.\r\n\r\n#b#L0#Male#l\r\n#L1#Female#l\r\n#L2#Alien#l");
        } else {
            
    msg = ["#eYou are already #r"+selection == "male" selection == "female" "Alien"+"#k silly!""#eYou do not have 5 #i4002000#.""#eYou do not have 10,000,000 mesos."];
            if (
    cm.getPlayer().getGender() == selection || selection == && cm.getItemQuantity(4002000) != || selection != && cm.getPlayer().getMeso() < 10000000) { 
                
    cm.sendOk(cm.getPlayer().getGender() == selection msg[0] : selection == && cm.getItemQuantity(4002000) != msg[1] : msg[2]); 
            } else 
                
    cm.getPlayer().setGender(selection);
                if (
    selection == 3)
                    
    cm.gainItem(4002000, -5);
                else 
                    
    cm.gainMeso(-10000000)
                
    cm.reloadChar();
            
    cm.dispose();       
        }

    There's no selection 3, which you have used multiple times, and if the player chose an alien, they don't lose mesos ;)

    Edit::
    My bad, they weren't supposed to lose mesos. I'll fix my script as well.
    Last edited by Sharky; 21-02-11 at 10:12 PM.

  9. #9
    Account Inactive EroticPatches is offline
    InactiveRank
    Jun 2010 Join Date
    92Posts

    Re: [Add On] Gender NPC

    Quote Originally Posted by Sharky View Post
    There's no selection 3, which you have used multiple times, and if the player chose an alien, they don't lose mesos ;)
    I've mixed selection 3 with 2.

  10. #10
    while(true) spam(); kevintjuh93 is offline
    ModeratorRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,121Posts

    Re: [Add On] Gender NPC

    boolean geythread = getThread(this).isGay();
    System.out.println(geythread);
    Code:
    true
    Posted via Mobile Device

  11. #11
    Account Inactive Odsmk is offline
    InactiveRank
    May 2010 Join Date
    The dead plainsLocation
    52Posts

    Re: [Add On] Gender NPC

    Reasons this thread is being flamed:

    It has been released before
    It can be recoded

    My response:
    I made this one.
    I coded this one.

    You can remake any NPC anyway you want. I don't care if it has been released before. I am releasing my work, which I thought was the point of this section.

    Sorry I did not release something "beneficial" to you guys, that is not my reason for releasing. If you don't like the thread, don't post in it.

  12. #12
    Alpha Member XxОsirisxX is offline
    Alpha MaleRank
    Aug 2009 Join Date
    2,730Posts

    Re: [Add On] Gender NPC

    Quote Originally Posted by Odsmk View Post
    Reasons this thread is being flamed:

    It has been released before
    It can be recoded

    My response:
    I made this one.
    I coded this one.

    You can remake any NPC anyway you want. I don't care if it has been released before. I am releasing my work, which I thought was the point of this section.

    Sorry I did not release something "beneficial" to you guys, that is not my reason for releasing. If you don't like the thread, don't post in it.
    There is only 1 troll post, which was Kevin's post, and there is 0 flames. You're being so sensitive.

    Good job if you made this on your own, that means you're learning. You can release what ever you wants, I been seen more useless stuff released and even not working ones. This is is way more decent that what I see when it's matter of scripting releases.

  13. #13
    Account Inactive Remixes is offline
    InactiveRank
    Jan 2011 Join Date
    RaGEZONELocation
    258Posts

    Re: [Add On] Gender NPC

    Quote Originally Posted by Odsmk View Post
    Reasons this thread is being flamed:

    It has been released before
    It can be recoded

    My response:
    I made this one.
    I coded this one.

    You can remake any NPC anyway you want. I don't care if it has been released before. I am releasing my work, which I thought was the point of this section.

    Sorry I did not release something "beneficial" to you guys, that is not my reason for releasing. If you don't like the thread, don't post in it.
    You didn't have any flames as XxOshriroxX said you have 0 flames and i think this is a pretty good idea.

  14. #14
    return null; mertjuh is offline
    True MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,277Posts

    Re: [Add On] Gender NPC

    Omg, I miss the old RageZone...

  15. #15
    Account Inactive Ken is offline
    InactiveRank
    Mar 2011 Join Date
    MapleStoryLocation
    25Posts

    Re: [Add On] Gender NPC

    This Is Working But The Alien Is Not Working! Removed The Alien This PHP Will Be Great. Good Luck
    Keep on this.




Page 1 of 2 12 LastLast

Advertisement