Fix for Boss Limit Glitch [ODIN]

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Fix for Boss Limit Glitch [ODIN]

    CREDITS: andyw for the boss limit script
    Me for posting this.

    ok this fixes the glitcch whereby when u use andyw's boss limit, people can bypass it in boss maps. they can relog in the boss maps: EG: Horntail Cave and the reactor will respawn, and they can kill it again. thus bypassing the limit. Tested in seanpack and works.

    TO FIX THIS. NOTE: ONLY FOR PEOPLE WITH JAVA CODING KNOWLEDGE.

    First make a backup in case anythign happens. then in src/net/sf/odinms/server/maps open Sbossmapmonitor and Bossmapmonitor.

    find this line:

    Code:
      map.resetReactors();
    and comment it (adding a // in front) in both files NOTE: do not comment this line:
    Code:
       pMap.resetReactors();
    they look the same but this one resets the doors (opens zak/papu door)

    then go to src/net/sf/odinms/scripting/npc/npccpnversation.java and add these in:

    Code:
    public void resetReactors() {
                getPlayer().getMap().resetReactors();
            }
    and
    Code:
    public int getCharsOnMap() {
                return getPlayer().getMap().getCharacters().size();
            }
    and then you compile your source.

    then change your boss exit warper npc script EG:Amon for Zak/Crystal of Roots for Horntail/Machine Apparatus for PApu.

    NOTE: this is amon's npc in zakum script. the others should look like this. change :
    Code:
    importPackage(net.sf.odinms.client);
    
    var wui = 0;
    
    function start() {
        cm.sendYesNo("Do you wish to go out from here ?");
    }
    
    function action(mode, type, selection) {
        if (mode == 0 || wui == 1) {
            cm.dispose();
        } else {
            wui = 1;         
                    cm.sendOk ("Bye bye");
            cm.warp(211042300,"sp");
        }
    }
    to

    Code:
    importPackage(net.sf.odinms.client);
    
    var wui = 0;
    
    function start() {
        cm.sendYesNo("Do you wish to go out from here ?");
    }
    
    function action(mode, type, selection) {
        if (mode == 0 || wui == 1) {
            cm.dispose();
        } else {
            wui = 1;         
    		if (cm.getCharsOnMap() < 2) {
    		cm.resetReactors();
    	}       
                    cm.sendOk ("Bye bye");
            cm.warp(211042300,"sp");
        }
    }
    and thats it. now people have to click the npc and get out so that the reactor will respawn. hope this helps for you :)


  2. #2
    Account Upgraded | Title Enabled! HELOHELO is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    341Posts

    Re: [RELEASE] Fix for Boss Limit Glitch

    I need this for titan too can make 1 for titan?

    Code:
      map::resetReactors();
    Code:
       pMap::resetReactors();
    Code:
    public:
    virtual void resetReactors()
    {
    			getPlayer()->getMap()->resetReactors();
    		}
    Code:
    public:
    virtual int getCharsOnMap()
    {
    			return getPlayer()->getMap()->getCharacters()->size();
    		}
    Code:
    importPackage(net::sf::odinms::client);
    
    internal:
    var ^wui;
    
    virtual function ^start()
    {
    	cm::sendYesNo("Do you wish to go out from here ?");
    }
    
    virtual function ^action(mode,  type,  selection)
    {
    	if (mode == 0 || wui == 1)
    	{
    		cm::dispose();
    	}
    	else
    	{
    		wui = 1;
    				cm::sendOk ("Bye bye");
    		cm::warp(211042300,"sp");
    	}
    }
    Code:
    importPackage(net::sf::odinms::client);
    
    internal:
    var ^wui;
    
    virtual function ^start()
    {
    	cm::sendYesNo("Do you wish to go out from here ?");
    }
    
    virtual function ^action(mode,  type,  selection)
    {
    	if (mode == 0 || wui == 1)
    	{
    		cm::dispose();
    	}
    	else
    	{
    		wui = 1;
    		if (cm::getCharsOnMap() < 2)
    		{
    		cm::resetReactors();
    	}
    				cm::sendOk ("Bye bye");
    		cm::warp(211042300,"sp");
    	}

  3. #3
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch

    uh, are thsoe supposed to work? i dont know anything abt titan so i cant help u.

  4. #4
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    some comments please..

  5. #5
    IHF iPlayHard is offline
    MemberRank
    Apr 2008 Join Date
    SingaporeLocation
    600Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    Compiles fine gona test out later.

  6. #6
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    stop pming me with errors, it works ifne for me, seanpack v5 above .

  7. #7
    IHF iPlayHard is offline
    MemberRank
    Apr 2008 Join Date
    SingaporeLocation
    600Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    Yeap it works fine. Thanks for the release :)

  8. #8
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    np, hope it helps you :)

  9. #9
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    i will post an example of the npc scripts soon. bump

  10. #10
    Account Upgraded | Title Enabled! metroix is offline
    MemberRank
    Apr 2008 Join Date
    389Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    sometimes the doors stay close for ever and none is inside.. how i can fix this? or how can i make a temp fix? like a command or something

  11. #11
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    that is a bug with the bossmapmonitor script. try going in the boss map and spawining the boss, or if you are using my script, click the npc and go out.

  12. #12
    Valued Member mbaa24 is offline
    MemberRank
    Jun 2008 Join Date
    USALocation
    127Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    Quote Originally Posted by metroix View Post
    sometimes the doors stay close for ever and none is inside.. how i can fix this? or how can i make a temp fix? like a command or something
    Could this be a result of a player not exiting out of the map? What if someone does go inside but never leaves to reset it? Then, it has to be manually reset, right? And if a GM warps into it, it doesn't activate the reactor right?

    Edit: Maybe somebody could make a reset reactor command. I'll try to see what I can do, but I don't have much knowledge of how to do it.

    Edit: I just realized something. Doesn't disabling the reset reactor in the map monitors make other bosses - such as Papu and Pianus - not spawn? Since they have no 'Door' to go through - such as Zakum and Horntail - then they will never spawn. Just a thought. Can someone clear that up?
    Last edited by mbaa24; 10-07-08 at 04:51 PM.

  13. #13
    Apprentice andyw is offline
    MemberRank
    Jun 2008 Join Date
    22Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    You rocks dude. Great job

  14. #14
    Account Upgraded | Title Enabled! zander145 is offline
    MemberRank
    Apr 2008 Join Date
    Norfolk, VALocation
    966Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    Thanks i guess...

  15. #15
    Account Upgraded | Title Enabled! thegamer1907 is offline
    MemberRank
    May 2008 Join Date
    SingaporeLocation
    464Posts

    Re: [RELEASE] Fix for Boss Limit Glitch [ODIN]

    thanks, hope it helped you alot :)



Page 1 of 2 12 LastLast

Advertisement