[Help] Zakum Npc [abobis]

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

    [Help] Zakum Npc [abobis]

    Hello.
    In Entrance To zakum altar.
    Abobis Npc
    Not working
    I want him to take me into Zakum

    Abobis NPC
    ID : 2030013

    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(java.lang);
    importPackage(Packages.server);

    /* 
        Adobis
    */
    var status 0;

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

    function 
    action(modetypeselection) {
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
            if (
    mode == 0) {
                
    cm.dispose();
                return;
            }
            if (
    mode == 1) {
                
    status++;
            } else {
                
    status--;
            }
            if (
    status == 0) {
                if (
    cm.getSquadState(MapleSquadType.ZAKUM) == 0) {
                    
    cm.sendSimple("Would you like to assemble a team to take on the mighty Zakum?\r\n#b#L1#Lets get this going!#l\r\n\#L2#No, I think I'll wait a bit...#l");
                } else if (
    cm.getSquadState(MapleSquadType.ZAKUM) == 1) {
                    if (
    cm.checkSquadLeader(MapleSquadType.ZAKUM)) {
                        
    cm.sendSimple("What would you like to do?\r\n\r\n#L1#View current squad members#l\r\n#L2#Close registrations#l\r\n#L3#Start the fight!#l");
                        
    status 19;
                    } else if (
    cm.isSquadMember(MapleSquadType.ZAKUM)) {
                        var 
    noOfChars cm.numSquadMembers(MapleSquadType.ZAKUM);
                        var 
    toSend "The following members make up your squad:\r\n\r\n";
                        for (var 
    1<= noOfCharsi++) {
                            
    toSend += "#L";
                            
    toSend += i;
                            
    toSend += "# ";
                            
    toSend += i;
                            
    toSend += " - ";
                            
    toSend += cm.getSquadMember(MapleSquadType.ZAKUM1).getName();
                            
    toSend += "#l";
                        }
                        
    System.out.println(toSend);
                        
    cm.sendOk(toSend);
                        
    cm.dispose();
                    } else {
                        
    cm.sendSimple("Would you like to join the Zakum squad?\r\n#b#L1#Yes, I'm ready to take him on!#l\r\n\#L2#No, I think I'll wait a bit...#l");
                        
    status 9;
                    }
                } else {
                    if (
    cm.checkSquadLeader(MapleSquadType.ZAKUM)) {
                        
    cm.sendSimple("What would you like to do?\r\n\r\n#L1#View current squad members#l\r\n#L2#Open registrations#l\r\n#L3#Start the fight!#l");
                        
    status 19;
                    } else if (
    cm.isSquadMember(MapleSquadType.ZAKUM)) {
                        var 
    noOfChars cm.numSquadMembers(MapleSquadType.ZAKUM);
                        var 
    toSend "The following members make up your squad:\r\n\r\n";
                        for (var 
    1<= noOfCharsi++) {
                            
    toSend += "#L";
                            
    toSend += i;
                            
    toSend += "# ";
                            
    toSend += i;
                            
    toSend += " - ";
                            
    toSend += cm.getSquadMember(MapleSquadType.ZAKUM1).getName();
                            
    toSend += "#l";
                        }
                        
    System.out.println(toSend);
                        
    cm.sendOk(toSend);
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry but the leader of the squad has closed registrations. Try again next time.");
                        
    cm.dispose();
                    }
                }
            } else if (
    status == 1) {
                if (
    selection == 1) {
                    if (
    cm.createMapleSquad(MapleSquadType.ZAKUM) != null) {
                        
    cm.sendOk("The Zakum Squad has been created, tell your members to signup now.\r\n\r\nTalk to me again to view the current team, to close registrations, or start the fight!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("There was an error, someone may have created a Zakum Squad before you, please inform a GM if this is not the case.");
                        
    cm.dispose();
                    }
                } else if (
    selection == 2) {
                    
    cm.sendOk("Sure, not everyone's up to challenging the might of Zakum.");
                    
    cm.dispose();
                }
            } else if (
    status == 10) {
                if (
    selection == 1) {
                    if (
    cm.numSquadMembers(MapleSquadType.ZAKUM) > 29) {
                        
    cm.sendOk("Sorry, the Zakum Squad is full.");
                        
    cm.dispose();
                    } else {
                        if (
    cm.canAddSquadMember(MapleSquadType.ZAKUM)) {
                            
    cm.addSquadMember(MapleSquadType.ZAKUM);
                            
    cm.sendOk("You have signed up, please wait for further instruction from your squad leader.");
                            
    cm.dispose();
                        } else {
                            
    cm.sendOk("Sorry, but the leader has requested you not to be allowed to join.");
                            
    cm.dispose();
                        }
                    }
                } else if (
    selection == 2) {
                    
    cm.sendOk("Sure, not everyone's up to challenging the might of Zakum.");
                    
    cm.dispose();
                }
            } else if (
    status == 20) {
                if (
    selection == 1) {
                    var 
    noOfChars cm.numSquadMembers(MapleSquadType.ZAKUM);
                    var 
    toSend "The following members make up your squad:\r\n\r\n";
                    for (var 
    1<= noOfCharsi++) {
                        
    toSend += "#L";
                        
    toSend += i;
                        
    toSend += "# ";
                        
    toSend += i;
                        
    toSend += " - ";
                        
    toSend += cm.getSquadMember(MapleSquadType.ZAKUM1).getName();
                        
    toSend += "#l";
                    
    /*toSend += "\r\n";*/
                    
    }
                    
    System.out.println(toSend);
                    
    cm.sendOk(toSend);
                } else if (
    selection == 2) {
                    if (
    cm.getSquadState(MapleSquadType.ZAKUM) == 1) {
                        
    cm.setSquadState(MapleSquadType.ZAKUM2);
                        
    cm.sendOk("Registrations have been closed, please talk to me again to start the fight or re-open them.");
                    } else {
                        
    cm.setSquadState(MapleSquadType.ZAKUM1);
                        
    cm.sendOk("Registrations have been opened, please talk to me again to start the fight or re-open them.");
                    }
                    
    cm.dispose();
                } else if (
    selection == 3) {
                    
    cm.setSquadState(MapleSquadType.ZAKUM2);
                    
    cm.sendOk("I will now take you and your squad to #r#Zakum's Altar#");
                    
    status 29;
                }
            } else if (
    status == 21) {
                if (
    selection 0) {
                    
    cm.removeSquadMember(MapleSquadType.ZAKUMselection 1true);
                    
    cm.sendOk("The selected member has been banned.");
                    
    cm.dispose();
                } else {
                    if (
    cm.getSquadState(MapleSquadType.ZAKUM) == 1) {
                        
    cm.sendSimple("What would you like to do?\r\n\r\n#L1#View current squad members#l\r\n#L2#Close registrations#l\r\n#L3#Start the fight!#l");
                    } else {
                        
    cm.sendSimple("What would you like to do?\r\n\r\n#L1#View current squad members#l\r\n#L2#Open registrations#l\r\n#L3#Start the fight!#l");
                    }
                    
    status 19;
                }
            } else if (
    status == 30) {
                
    cm.warpSquadMembers(MapleSquadType.ZAKUM280030000);
                
    cm.dispose();
            }
        }



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

    Re: [Help] Zakum Npc [abobis]

    Do you have squads working on your server? (probably not, but I'll ask anyway)

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

    Re: [Help] Zakum Npc [abobis]

    Quote Originally Posted by maplefreak26 View Post
    Do you have squads working on your server? (probably not, but I'll ask anyway)
    You right.
    i dont have, so how i edit my script?

  4. #4
    Grand Master StripedCow is offline
    Grand MasterRank
    Jun 2011 Join Date
    813Posts

    Re: [Help] Zakum Npc [abobis]

    fix squads

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

    Re: [Help] Zakum Npc [abobis]

    Quote Originally Posted by StripedCow View Post
    fix squads
    how can i fix it please?

  6. #6
    Elite Member itay2069 is offline
    Member +Rank
    May 2008 Join Date
    Tel-AvivLocation
    186Posts

    Re: [Help] Zakum Npc [abobis]

    leech from other sources..

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

    Re: [Help] Zakum Npc [abobis]

    Quote Originally Posted by itay2069 View Post
    leech from other sources..
    lol O_O
    it's squads i need fix it myself.
    but i need know how?

    i fixed..
    but the Npc no take me to zak altar
    what the prob?
    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;
                }
            }
        }

    Last edited by Cheezpuff; 21-04-12 at 10:18 PM.



Advertisement