What prob with my Npc?

Results 1 to 7 of 7
  1. #1
    Elite Member Cheezpuff is offline
    Member +Rank
    Jul 2011 Join Date
    Former programmLocation
    238Posts

    What prob with my Npc?

    I fixed my Abobis NPC.
    But the npc dont take to zak Altar :(?

    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 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/>.
     */

    importPackage(net.sf.odinms.tools);
    importPackage(net.sf.odinms.client);

    /* Adobis
        Zakum entrance
     */
    var status 0;
    var 
    price 2000000;
    var 
    map = Array(240010501);

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

    function 
    action(modetypeselection) {
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
            if (
    mode == && status == 0) {
                
    cm.dispose();
                return;
            }
            if (
    mode == 1)
                
    status++;
            else
                
    status--;
            if (
    status == 0) {
                
    cm.sendSimple("Welcome to Entracnce to Zakum Altar ! Would you like to go inside and fight #bZakum#k ? If you want to fight him you need #b#t4001017##k, so you can summon Zakum .\r\n\#L2#I already have a #b#t4001017##k , Let me in!#l");
            } else if (
    status == 1) {
                if (
    selection == 1) {
                    if(
    cm.getMeso() >= 20000000) {
                        
    cm.gainMeso(-20000000);
                        
    cm.gainItem(40010171);
                        
    cm.sendOk("Enjoy!");
                    } else {
                        
    cm.sendOk("You don't have enough mesos to buy eye of fire!");
                    }
                    
    cm.dispose();
                } else if (
    status == 2) {
                } else if (
    selection == 2  && cm.getLevel() >= 50) {
                    if (
    cm.getBossLog('ZAKUM') < 5)
                    {
                        
    cm.warp(2800300000);
                        
    cm.setBossLog('ZAKUM');
                        
    cm.dispose();
                    }
                    else
                    {
                        
    cm.sendOk("You can only enter Zakum Altar 2 times every 24 hours!");
                        
    mode 1;
                        
    status = -1;
                    }
                    
                }
                else{
                    
    cm.sendOk("You are not in the right levels to get inside (Level 50+) !");
                    
    mode 1;
                    
    status = -1;
                }
            }
        }

    ty for helpers


  2. #2
    I have an ass and a hat. maplefreak26 is offline
    Grand MasterRank
    Sep 2008 Join Date
    1,098Posts

    Re: What prob with my Npc?

    Do you have the Boss Log?

  3. #3
    Elite Member Cheezpuff is offline
    Member +Rank
    Jul 2011 Join Date
    Former programmLocation
    238Posts

    Re: What prob with my Npc?

    Quote Originally Posted by maplefreak26 View Post
    Do you have the Boss Log?
    what O_O?
    my script good, but only no warp
    need find the prob in script

  4. #4
    I have an ass and a hat. maplefreak26 is offline
    Grand MasterRank
    Sep 2008 Join Date
    1,098Posts

    Re: What prob with my Npc?

    Quote Originally Posted by Cheezpuff View Post
    what O_O?
    my script good, but only no warp
    need find the prob in script
    You clearly don't know what I'm asking you, do you?
    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 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/>. 
     */ 

    importPackage(net.sf.odinms.tools); 
    importPackage(net.sf.odinms.client); 

    /* Adobis 
        Zakum entrance 
     */ 
    var status 0
    var 
    price 2000000
    var 
    map = Array(240010501); 

    function 
    start() { 
        
    status = -1
        
    action(100); 


    function 
    action(modetypeselection) { 
        if (
    mode == -1) { 
            
    cm.dispose(); 
        } else { 
            if (
    mode == && status == 0) { 
                
    cm.dispose(); 
                return; 
            } 
            if (
    mode == 1
                
    status++; 
            else 
                
    status--; 
            if (
    status == 0) { 
                
    cm.sendSimple("Welcome to Entracnce to Zakum Altar ! Would you like to go inside and fight #bZakum#k ? If you want to fight him you need #b#t4001017##k, so you can summon Zakum .\r\n\#L2#I already have a #b#t4001017##k , Let me in!#l"); 
            } else if (
    status == 1) { 
                if (
    selection == 1) { 
                    if(
    cm.getMeso() >= 20000000) { 
                        
    cm.gainMeso(-20000000); 
                        
    cm.gainItem(40010171); 
                        
    cm.sendOk("Enjoy!"); 
                    } else { 
                        
    cm.sendOk("You don't have enough mesos to buy eye of fire!"); 
                    } 
                    
    cm.dispose(); 
                } else if (
    status == 2) { 
                } else if (
    selection == 2  && cm.getLevel() >= 50) { 
                        
    cm.warp(2800300000); 
                } else { 
                    
    cm.sendOk("You are not in the right levels to get inside (Level 50+) !"); 
                    
    mode 1
                    
    status = -1
                } 
            } 
        } 


  5. #5
    Elite Member Cheezpuff is offline
    Member +Rank
    Jul 2011 Join Date
    Former programmLocation
    238Posts

    Re: What prob with my Npc?

    Quote Originally Posted by maplefreak26 View Post
    You clearly don't know what I'm asking you, do you?
    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 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/>. 
     */ 

    importPackage(net.sf.odinms.tools); 
    importPackage(net.sf.odinms.client); 

    /* Adobis 
        Zakum entrance 
     */ 
    var status 0
    var 
    price 2000000
    var 
    map = Array(240010501); 

    function 
    start() { 
        
    status = -1
        
    action(100); 


    function 
    action(modetypeselection) { 
        if (
    mode == -1) { 
            
    cm.dispose(); 
        } else { 
            if (
    mode == && status == 0) { 
                
    cm.dispose(); 
                return; 
            } 
            if (
    mode == 1
                
    status++; 
            else 
                
    status--; 
            if (
    status == 0) { 
                
    cm.sendSimple("Welcome to Entracnce to Zakum Altar ! Would you like to go inside and fight #bZakum#k ? If you want to fight him you need #b#t4001017##k, so you can summon Zakum .\r\n\#L2#I already have a #b#t4001017##k , Let me in!#l"); 
            } else if (
    status == 1) { 
                if (
    selection == 1) { 
                    if(
    cm.getMeso() >= 20000000) { 
                        
    cm.gainMeso(-20000000); 
                        
    cm.gainItem(40010171); 
                        
    cm.sendOk("Enjoy!"); 
                    } else { 
                        
    cm.sendOk("You don't have enough mesos to buy eye of fire!"); 
                    } 
                    
    cm.dispose(); 
                } else if (
    status == 2) { 
                } else if (
    selection == 2  && cm.getLevel() >= 50) { 
                        
    cm.warp(2800300000); 
                } else { 
                    
    cm.sendOk("You are not in the right levels to get inside (Level 50+) !"); 
                    
    mode 1
                    
    status = -1
                } 
            } 
        } 

    oh Boss Log, sorry didnt see that.
    i missed it :(.
    but ty anyways
    i check the script


    *well ty working.
    but the npc not check if got EYE OF FIRE

  6. #6
    I have an ass and a hat. maplefreak26 is offline
    Grand MasterRank
    Sep 2008 Join Date
    1,098Posts

    Re: What prob with my Npc?

    Quote Originally Posted by Cheezpuff View Post
    but the npc not check if got EYE OF FIRE
    Do it yourself. You'll never learn if you don't try something.

  7. #7
    Elite Member Cheezpuff is offline
    Member +Rank
    Jul 2011 Join Date
    Former programmLocation
    238Posts

    Re: What prob with my Npc?

    Quote Originally Posted by maplefreak26 View Post
    Do it yourself. You'll never learn if you don't try something.
    nvm... im fine
    I forgot my cluster [ty]



Advertisement