You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack (2) Thread Tools
Old 07-07-2008   2 links from elsewhere to this Post. Click to view. #1 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

[RELEASE] Fix for Boss Limit Glitch [ODIN]

Your Ad Here
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 :)
thegamer1907 is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 07-07-2008   #2 (permalink)
Account Upgraded | Title Enabled!
 
Rank: Member +
Join Date: May 2008
Posts: 277
Thanked 1 Time in 1 Post

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");
	}
HELOHELO is offline   Reply With Quote

Endorsement
Old 07-07-2008   #3 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

Re: [RELEASE] Fix for Boss Limit Glitch

uh, are thsoe supposed to work? i dont know anything abt titan so i cant help u.
thegamer1907 is offline   Reply With Quote

Endorsement

Old 07-07-2008   #4 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

some comments please..
thegamer1907 is offline   Reply With Quote
Old 07-07-2008   #5 (permalink)
Enjoy the Process
 
iPlayHard's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Singapore
Posts: 611
Thanked 0 Times in 0 Posts

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

Compiles fine gona test out later.
__________________
iPlayHard is offline   Reply With Quote
Old 07-07-2008   #6 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

stop pming me with errors, it works ifne for me, seanpack v5 above .
thegamer1907 is offline   Reply With Quote
Old 07-07-2008   #7 (permalink)
Enjoy the Process
 
iPlayHard's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Singapore
Posts: 611
Thanked 0 Times in 0 Posts

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

Yeap it works fine. Thanks for the release :)
__________________
iPlayHard is offline   Reply With Quote
Old 07-08-2008   #8 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

np, hope it helps you :)
thegamer1907 is offline   Reply With Quote
Old 07-10-2008   #9 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

i will post an example of the npc scripts soon. bump
thegamer1907 is offline   Reply With Quote
Old 07-10-2008   #10 (permalink)
Extreme Member
 
Rank: Member +
Join Date: Apr 2008
Posts: 414
Thanked 0 Times in 0 Posts

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
metroix is offline   Reply With Quote
Old 07-10-2008   #11 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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.
thegamer1907 is offline   Reply With Quote
Old 07-10-2008   #12 (permalink)
Alpha
 
Rank: Member
Join Date: Jun 2008
Location: USA
Posts: 142
Thanked 0 Times in 0 Posts

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

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; 07-10-2008 at 03:51 PM.
mbaa24 is offline   Reply With Quote
Old 07-10-2008   #13 (permalink)
Member
 
Rank: Hobbit
Join Date: Jun 2008
Posts: 31
Thanked 0 Times in 0 Posts

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

You rocks dude. Great job
andyw is offline   Reply With Quote
Old 07-10-2008   #14 (permalink)
Full time combatent.
 
zander145's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Portsmouth, VA
Posts: 1,037
Thanked 0 Times in 0 Posts

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

Thanks i guess...
zander145 is offline   Reply With Quote
Old 07-11-2008   #15 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

thanks, hope it helped you alot :)
thegamer1907 is offline   Reply With Quote
Old 07-12-2008   #16 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

i ran through the codes, all works fine. bump
thegamer1907 is offline   Reply With Quote
Old 07-12-2008   #17 (permalink)
=)
 
Rank: Member +
Join Date: Apr 2008
Location: Far, far away
Posts: 1,387
Thanked 1 Time in 1 Post

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

This doesn't work, what if you die and it's a phailed run.

Better, change the map of players who log out in boss maps (pretty simple)
RMZero213 is offline   Reply With Quote
Old 07-12-2008   #18 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
Rank: Member +
Join Date: May 2008
Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts

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

Originally Posted by RMZero213 View Post
This doesn't work, what if you die and it's a phailed run.

Better, change the map of players who log out in boss maps (pretty simple)
you have a point, however changing the map will mean that if they dc or smth, they will be out. i'm now changing the script such that if there is nobody in the map it will reset the reactors automatically
thegamer1907 is offline   Reply With Quote
Old 07-12-2008   #19 (permalink)
Average Member
 
Rank: Hobbit
Join Date: Jun 2008
Posts: 57
Thanked 0 Times in 0 Posts

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

How about if someone was hacking zak and we ban them? It won't get reseted? Since they aren't leaving. They got banned inside..
krazyaznkid4 is offline   Reply With Quote
Old 07-12-2008   #20 (permalink)
RaGEZONER
 
Rank: Hobbit
Join Date: Jul 2008
Location: Singapore
Posts: 82
Thanked 0 Times in 0 Posts

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

what happen if a grp of party (6 member) did this
1)5 member log out of game
2)last member click npc to go out to reset the reactor, he will come back later somehow
3)rest of the member log in

4)everyone in that boss run just take turn to repeat the process
alex_soh is offline   Reply With Quote
Old 07-17-2008   #21 (permalink)
Average Member
 
Rank: Hobbit
Join Date: Jun 2008
Location: Quiting
Posts: 58
Thanked 0 Times in 0 Posts

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

I was looking for it
__________________
Quiting...
Dukiz is offline   Reply With Quote
Old 07-23-2008   #22 (permalink)
Extreme Member
 
pokkax's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 363
Thanked 0 Times in 0 Posts

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

well..there isn't a need for this...in fact this cause some people to abuse the cm.resetreactor as they can ask 1 ppl to go out and fight the boss again-.-

use this in maplecharacter.java instead
Code:
		if (channelserver) {
			MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
			ret.map = mapFactory.getMap(ret.mapid);
			if (ret.map == null) { //char is on a map that doesn't exist warp it to henesys
				ret.map = mapFactory.getMap(100000000);
                            } else if (ret.map.getId() >= 103000800 && ret.map.getId() <= 103000805) { // KPQ
				ret.map = mapFactory.getMap(103000890);
			} else if (ret.map.getId() >= 922010000 && ret.map.getId() <= 922011000) { // LPQ
				ret.map = mapFactory.getMap(922010000);
                        } else if (ret.map.getId() == 100000005) { // MushMon
				ret.map = mapFactory.getMap(100000000);
			} else if (ret.map.getId() == 105070002) { // Zombie MushMon
				ret.map = mapFactory.getMap(105070001);
			} else if (ret.map.getId() >= 809050000 && ret.map.getId() <= 809050015) { // LMPQ
				ret.map = mapFactory.getMap(809050017);
			} else if (ret.map.getId() >= 920010000 && ret.map.getId() <= 920011100) { // OPQ
				ret.map = mapFactory.getMap(920011200);
			} else if (ret.map.getId() == 280030000) { // Zakum's Altar
				ret.map = mapFactory.getMap(211000000);
			} else if (ret.map.getId() == 220080001) { // Origin of the Clock Tower
				ret.map = mapFactory.getMap(220080000);
              		} else if (ret.map.getId() == 800010100) { // Zipangu: Hall of Mushroom
				ret.map = mapFactory.getMap(800000000);
                        } else if (ret.map.getId() == 240060200) { // Cave of Life: Horned Tail's Cave
				ret.map = mapFactory.getMap(240040700);
			} else if (ret.map.getId() >= 801040001 && ret.map.getId() <= 801040100) { // Showa dungeon
				ret.map = mapFactory.getMap(801040000);
			} else if (ret.map.getId() >= 211041500 && ret.map.getId() <= 211042300) { // Elnath dungeon
				ret.map = mapFactory.getMap(211041400);
			}
__________________
pokkax is offline   Reply With Quote
Old 07-23-2008   #23 (permalink)
Extreme Member
 
Rank: Member +
Join Date: Apr 2008
Posts: 414
Thanked 0 Times in 0 Posts

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

im getting problems that sometimes when ppl come out doors dosent open again till i restart the server
(no one is inside)
anyone know how to fix it?
metroix is offline   Reply With Quote
Old 07-26-2008   #24 (permalink)
GFx
 
Yeeha's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Australia
Posts: 262
Thanked 0 Times in 0 Posts

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

I got the same problem as Metriox
__________________
Yeeha is offline   Reply With Quote
Old 07-26-2008   #25 (permalink)
Extreme Member
 
pokkax's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 363
Thanked 0 Times in 0 Posts

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

Originally Posted by metroix View Post
im getting problems that sometimes when ppl come out doors dosent open again till i restart the server
(no one is inside)
anyone know how to fix it?
this is because you commented out
map.resetReactors();
hence,the reactor for door will not auto reset instead this FIX uses a NPC to reset reactor where mapler can abuse it!

I STRONGLY DONT RECOMMEND THIS!
__________________
pokkax is offline   Reply With Quote
 

Bookmarks

Thread Tools


LinkBacks (?)
LinkBack to this Thread: http://forum.ragezone.com/f427/release-fix-for-boss-limit-glitch-odin-426895/
Posted By For Type Date
[OdinMS]Releases,Guides,Repacks,Revs,orials,HTML-PHP,Tools,Handbook - Maplestory Releases - ServerFiles.org This thread Refback 04-12-2009 08:49 PM
OdinMS Source Releases,Guides,Repacks,Revs,Tutorials,HTML-PHP,Tools,Handbook - GameCheetah This thread Refback 03-26-2009 02:07 PM



Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274