Nimakin bugged

Results 1 to 1 of 1
  1. #1
    Enthusiast cljnilsson is offline
    MemberRank
    Jul 2017 Join Date
    26Posts

    Nimakin bugged

    I was trying to make a styler NPC and succeeded but I noticed that when I try to change hair color on some hairs I crash, mostly female ones.

    I thought my script was somehow flawed so I tried with the Nimakin NPC, only to have the same problem.

    I found this thread: http://forum.ragezone.com/f566/solve...pt-dc-1013548/
    Which seems to experience the same issue as me, except his solution is to have a clean MoopleDEV script, and I am running moopledev and have not modified the NPC. It is possible that he is referring to an older version of the script?

    PHP Code:
    /*   This file is part of the OdinMS Maple Story Server
        Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
                 Matthias Butz <matze@odinms.de>
                 Jan Christian Meyer <vimes@odinms.de>

        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU Affero General Public License as
        published by the Free Software Foundation version 3 as published by
        the Free Software Foundation. You may not use, modify or distribute
        this program under any other version of the GNU Affero General Public
        License.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU Affero General Public License for more details.

        You should have received a copy of the GNU Affero General Public License
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
    */
    /*
     * [MENTION=1333344765]name[/MENTION]         NimaKIN
     * @Author:      Signalize
     * [MENTION=806871]NPC[/MENTION]:         9900000
     * [MENTION=326977]Purpose[/MENTION]:     Hair/Face/Eye Changer -- May set job as GM too
     * @GMSPurpose:  Sets one's job as a GM.
     * @Map:         180000000
     */
    var status 0;
    var 
    beauty 0;
    var 
    haircolor = Array();
    var 
    skin = [012345910];
    var 
    fhair= [310003101031020310303104031050310603107031080310903110031110311203113031140311503116031170311803119031200312103122031230312403125031260312703128031290313003131031320313303134031350314003141031420314403145031460314703148031490315103152031530315403155031560315703158031590316003161031620316303164031650316703168031690317003171031720317303174031750317603177031780317903180031810];
    var 
    hair = [30000300103002030030300403005030060300703008030090301103012030130301403015030160301703018030190302003021030220302303024030250302603027030280302903030030310303203033030340303503036030370304003041030420304403045030460304703048030490305103052030530305403055030560305703058030590306003061030620306303064030650306603067030680306903070030710307203073030740307503076030770307803079030800308103082030840];
    var 
    hairnew = Array();
    var 
    face = [20000200012000220003200042000520006200072000820009200102001120012200132001420016200172001820019200202002120022200232002420026];
    var 
    fface = [210002100121002210032100421005210062100721008210092101021011210122101321014210162101721018210192102021021210222102421025];
    var 
    facenew = Array();
    var 
    colors = Array();

    function 
    start() {
        
    cm.sendSimple("Hey there, I can change your look. What would you like to change?\r\n#L0#Skin#l\r\n#L1#Hair#l\r\n#L5#Female Hair#l\r\n#L2#Hair Color#l\r\n#L3#Eye#l\r\n#L6#Female Eyes#l\r\n#L4#Eye Color#l\r\n#L7#Set GM job#l");
    }

    function 
    action(modetypeselection) {
        
    status++;
        if (
    mode != || cm.getPlayer().gmLevel() < 1){
            
    cm.dispose();
            return;
        }
        if (
    status == 1) {
            
    beauty selection 1;
            if (
    selection == 0)
                
    cm.sendStyle("Pick one?"skin);
            else if (
    selection == || selection == 5) {
                for 
    each(var i in selection == hair fhair)
                    
    hairnew.push(i);
                
    cm.sendStyle("Pick one?"hairnew);
            } else if (
    selection == 2) {
                for(var 
    08k++)
                    
    haircolor.push(cm.getPlayer().getHair() + k);
                
    cm.sendStyle("Pick one?"haircolor);
            } else if (
    selection == || selection == 6) {
                for 
    each(var j in selection == face fface)
                    
    facenew.push(j);
                
    cm.sendStyle("Pick one?"facenew);
            } else if (
    selection == 4) {
                for(var 
    09i++)
                    
    colors.push(cm.getPlayer().getFace() + (i*100));
                
    cm.sendStyle("Pick one?"colors);
            } else if (
    selection == 7) {
                
    cm.changeJobById(910);
                
    cm.dispose();
            }
        } else if (
    status == 2){
            if (
    beauty == 1)
                
    cm.setSkin(skin[selection]);
            if (
    beauty == || beauty == 6)
                
    cm.setHair(hairnew[selection]);
            if (
    beauty == 3)
                
    cm.setHair(haircolor[selection]);
            if (
    beauty == || beauty == 7)
                
    cm.setFace(facenew[selection]);
            if (
    beauty == 5)
                
    cm.setFace(colors[selection]);
            
    cm.dispose();
        }





Advertisement