Mobs

Talk about anything, including games and servers not affiliated with The Mana World.
Post Reply
n1co
Peon
Peon
Posts: 13
Joined: 10 Feb 2007, 19:16

Mobs

Post by n1co »

Good evening, anyone could you it explain me how npc's stages by stages? thank you:)

new_4-1.gat,0,0,0,0 monster Bat 1017,20,0,0,0
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

from http://www.eathena.ws/wiki/index.php/Da ... ustom_Mobs
<map>,<x1>,<y1>,<x2>,<y2>%TAB%monster%TAB%<monster>%TAB%<mob>,<amount>,<delay1>,<delay2>,<event>

map name: name of the map o..o including the .gat Use /where along with the following coordinates
x1: X axis coordinates. It start from the left side of the map, and the higher it gets, the more it gets closer to the right side of the map.
y1: Y axis coodinates. It start from the bottom, and the higher it gets, the more it gets closer to the top of the map.
x2: X axis coordinates. It start from the left side of the map, and the higher it gets, the more it gets closer to the right side of the map.
y2: Y axis coodinates. It start from the bottom, and the higher it gets, the more it gets closer to the top of the map.
These 4 coordinates will make a spawn area where the mob will spawn, however it wont limit its movement, so lets say you put 120,150 on the first pair, and 130,160 pair- That's a 10x10 cell area where the mob will spawn randomly.
*tip tip* If you are as lazy as me, to set a lot of coordinates for your mob, use 0 on all of them. Since the maps doesnt have a walkable cell (0,0), the mobs will spawn randomly all around the map ;3 *tip tip*
monster name: The name of the mob you want to be shown
mob id: the ID of your mob =D!
amount: how many mobs you want to be spawned
delay1: counts the time since a monster defined in this spawn was last respawned.
delay2: counts the time since the monster of this spawn was last killed.
That was extracted from db\script_commands.txt file. Pretty much like gibberish eh? XD! Ok I'll explain it. These two values are used to define the minimun time it must pass before the monster respawn. The times are given in 1/1000ths of a second. It means 1000 = 1 second. One thing is, if delay2 - delay1 = -1 The mob wont respawn till restart o..o
event: this piece of code is generally used with addons, that i'll explain later ;3 that's for advanced scripters ;3. Another thing. From what i read in the db\script_commands.txt files, this is the mob lvl, which you can use to change it quickly then @reloadscript to reload it, w/o reloading the whole map server ;3
Note that the monster type is not determined by the name but by the mob ID. You can find the IDs of the monsters in db/mob_db.txt.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
n1co
Peon
Peon
Posts: 13
Joined: 10 Feb 2007, 19:16

Post by n1co »

really thanks for your answer :)
User avatar
Platyna
Grand Knight
Grand Knight
Posts: 2215
Joined: 19 Nov 2005, 13:19
Location: Poland
Contact:

Post by Platyna »

n1co
Peon
Peon
Posts: 13
Joined: 10 Feb 2007, 19:16

Post by n1co »

Sorry but what is JName ? For translate ?
Post Reply