Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Spawning freedom

Initiate Mage
Joined
Sep 3, 2008
Messages
4
Reaction score
0
I have found a way to make it so in-game, if you use !spawn and the hp to exp ratio is unproportionate, it will still spawn the
monster. If you're such a professional developer, and you decide to flame this because it's so easy, go straight to hell because i'm
TRYING to help everyone who's just starting with developing private servers.

A pre-made copy of our work would be located

Method 1: Spawning freedom for a SINGLE monster. (do not do this with monsters that will spawn regularly)

Ok, if your deciding to do this MANUALLY, open up any monster XML and copy paste this code into that XML. All parts that need
to be edited by YOU will be highlighted in red:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<imgdir name="[COLOR="red"]monsterid(name of xml file)[/COLOR].img">
	<imgdir name="info">
		<int name="bodyAttack" value="1"/>
		<int name="level" value="1"/>
		<int name="maxHP" value="1"/>
		<int name="maxMP" value="1"/>
		<int name="speed" value="-20"/>
		<int name="PADamage" value="1"/>
		<int name="PDDamage" value="1"/>
		<int name="MADamage" value="1"/>
		<int name="MDDamage" value="1"/>
		<int name="acc" value="1"/>
		<int name="eva" value="1"/>
		<int name="exp" value="2147483647"/>
		<int name="undead" value="0"/>
		<int name="pushed" value="1"/>
		<int name="boss" value="0"/>
		<string name="elemAttr" value="L3"/>
		<float name="fs" value="10.0"/>
		<int name="summonType" value="0"/>
		<string name="link" value="[COLOR="Red"]if its a copy of a monster (like 9500100 is) add this[/COLOR]"/>
	</imgdir>
</imgdir>

For the premade, replace all that I listed, AND the name to the monster ID of the monster your changing.
After all of that, place this file in your mob.wz folder and start or if your server is already running you HAVE to restart it or the
WZs won't update. When your ingame, use !spawn <the ID of the monster you changed> hp <any number between 1 and 2147483647> exp <any number between 1 and 2147483647>
*dont include < and >

Method 2: Spawning freedom for any monster.

If your doing this manually, first, browse to the folder (whatever your repack is)\src\net\sf\odinms\client\messages and open up
CommandProcessor.java in notepad. Look for this part in that file and delete ALL of it, no more no less. Delete this and ONLY this
or your build will fail.
Code:
		double newExpRatio = ((double) newhp / newexp);
		if (newExpRatio < oldExpRatio && newexp > 0) {
			mc.dropMessage("The new hp/exp ratio is better than the old one. (" + newExpRatio + " < " +
						oldExpRatio + ") Please don't do this");
			return true;
		}

Ok, once you've done this, Build odinms.jar and replace the old jar with the new one. after this, start your server and play it.
If this is done correctly, it will let you spawn any monster (as a gm) without any hp or exp limits!

For the premade, go to your server folder, then to src\odinms\net\sf\client\messages and place my premade
CommandProcessor.java in that folder. Recompile, replace the jars and start or restart your server. It should allow you to spawn
any monster with as much health and exp you want (withing the boundries of 1 - 2147483647 that is =D).

All credit goes to ME Ivaneee of ragezone.
Have fun spawning monsters!
 
Master Summoner
Loyal Member
Joined
Nov 30, 2007
Messages
511
Reaction score
0
Re: [Release] Spawning freedom

am pro dev
so ez fak dis rls /flameflameflame

*goes to hell*
 
Newbie Spellweaver
Joined
Sep 5, 2008
Messages
83
Reaction score
0
Re: [Release] Spawning freedom

hey moogra go to your homepage
 
Experienced Elementalist
Loyal Member
Joined
Apr 23, 2008
Messages
240
Reaction score
0
Re: [Release] Spawning freedom

Can't you just take the check out of the command?

I spawn 1000000 exp snails all the time...
EDIT: lol.. i didn't read the second part.
 
Master Summoner
Loyal Member
Joined
May 5, 2008
Messages
532
Reaction score
0
Re: [Release] Spawning freedom

Awesome! I like it!
 
Initiate Mage
Joined
Sep 3, 2008
Messages
4
Reaction score
0
Re: [Release] Spawning freedom

Can't you just take the check out of the command?

I spawn 1000000 exp snails all the time...
EDIT: lol.. i didn't read the second part.
Uh... I did that. Read the whole post and look carefully in method 2.
-.-
Also, people might want to do this for only 1 monster so the GMs they have on their server dont go crazy.

You may spawn 1000000 exp snails but do they have 1 hp? That's the genius in this.
 
Banned
Banned
Joined
Jun 8, 2007
Messages
165
Reaction score
8
Re: [Release] Spawning freedom

You shouldn't do this with XML's for the single mob release. You should do like this:
Code:
if(!mobid==100100){ //replace mobid and the number.
//ratio check here
}
 
Back
Top