Page 1 of 1

Mobs

Posted: 13 Feb 2007, 17:48
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

Posted: 13 Feb 2007, 18:26
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.

Posted: 13 Feb 2007, 19:03
by n1co
really thanks for your answer :)

Posted: 13 Feb 2007, 21:12
by Platyna

Posted: 13 Feb 2007, 21:16
by n1co
Sorry but what is JName ? For translate ?