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!

Understanding the MonsterSetBase.txt and Monster.txt

Joined
Apr 28, 2005
Messages
6,965
Reaction score
2,482
I know this has been posted before, but I thought I'd make it a little more detailed.
_____________________________________________________________________________

So, you want to know how to add spawns to your server and edit the monster's attributes? All the information you need is in this thread.

Understanding the Monster Set Base

Well first off, lets break down the code of a spawn thats in every server, the Lorencia Wizard Shop spawn.

Code:
[COLOR=DarkRed]254[/COLOR]    [COLOR=DarkOrange]0[/COLOR]    [COLOR=Olive]0[/COLOR]    [COLOR=Teal]118[/COLOR]    [COLOR=Blue]113[/COLOR]    [COLOR=SlateGray]3[/COLOR] // Wizard Pasi => Lorencia

254
- This number represents the monster ID number in the monster.txt. If you open the monster.txt, you'll find Pasi indexed as number 254.
Code:
253    1    "PotionGirl"            2    50        0    15    30    70    20    10    30    0    0    0    5    400    1500    10    0    200    10    0    0    0    0    0    0[COLOR=DarkRed]
254    1    "WizardPasi"            2    50        0    15    30    70    20    10    30    0    0    0    5    400    1500    10    0    200    10    0    0    0    0    0    0[/COLOR][SIZE=2]
255    1    "BarmaidLiaman"            2    50        0    15    30    70    20    10    30    0    0    0    5    400    1500    10    0    200    10    0    0    0    0    0    0[/SIZE]
This is how you find out which number you should put here.

---

The next number, 0, tells us which map we are going to spawn the monster in. Since we're spawning Wizard Pasi in Lorencia, we should use the number "0". Here is a list of all the map numbers (excluding the newer maps).
Code:
[COLOR=Red]0[/COLOR] = lorencia
 [COLOR=red]1[/COLOR] = dungeon
 [COLOR=red]2[/COLOR] = devias
 [COLOR=red]3[/COLOR] = noria
 [COLOR=red]4[/COLOR] = losttower 
 [COLOR=red]6[/COLOR] = Arena
 [COLOR=red]7[/COLOR] = Atlans
 [COLOR=red]8[/COLOR] = Tarkan
 [COLOR=red]9[/COLOR] = Devil Square 
 [COLOR=red]10[/COLOR] = Icarus
 [COLOR=red]11[/COLOR] = Blood Castle I
 [COLOR=red]12[/COLOR] = Blood Castle II
 [COLOR=red]13[/COLOR] = Blood Castle III
 [COLOR=red]14[/COLOR] = Blood Castle IV
 [COLOR=red]15[/COLOR] = Blood Castle V
 [COLOR=red]16[/COLOR] = Blood Castle VI
So, if we wanted to spawn our little Pasi in Devias, we would use the number 2 instead of 0.

---

The third number, 0, tells us how the monster is going to move. Since we don't want Pasi to move, we put 0 here. If we wanted him to move around, we would put a 20 or 30 here.

--

The fourth number, 118, tells us the X coordinate of where on the map he is going to spawn. To find out this number, look in the bottom left part of the screen while in-game. The first number is the X, and the second number is the Y.

--

The fifth number, 113, tells us the Y coordinate of where on the map Pasi is going to spawn. Again, to find out this number, look in the bottom left part of the screen. The second number is the Y coordinate.

--

The sixth and last number, 3, tells us which direction the monster is going to face. Here is a diagram of which numbers make the monsters face which direction.
Code:
    7  6  5            NW  N  NE
    8     4            W         E
    9  2  3            SW  S  SE
So if we wanted to make Pasi face North instead of south, we would put a 6 instead of a 2.

--

Adding even more spawns.

Now when adding spawns, what happens when we add a lot of lines to the monster set base? Oops! We get a 4200 (255) error. It means that there are too many lines in the monster set base for the GameServer to load. How do we fix this? Well we do it like this;

Code:
  [COLOR=Red]125[/COLOR]  [COLOR=SandyBrown]6[/COLOR]  [COLOR=YellowGreen]20[/COLOR]  [COLOR=SeaGreen]21[/COLOR]   [COLOR=MediumTurquoise]116[/COLOR]   [COLOR=RoyalBlue]23[/COLOR]  [COLOR=Purple]110[/COLOR]   [COLOR=Gray]-1[/COLOR]   [COLOR=Lime]20[/COLOR]
What does this line mean exactly? Well once again lets break it down!

125 - This is the index number for the Blood Castle 6 Orc Warrior. If you look in the monster.txt, you'll find this;
Code:
124    1    "SpiritSorcerer5"        90    32000    0    400    460    450    0    720    260    4    150    4    6    400    1800    10    2    150    50    4    0    8    8    8    8
[COLOR=Red]125    1    "OrcWarrior6"            76    17000    0    260    290    210    0    460    150    3    0    1    3    400    2000    10    2    300    200    3    0    6    6    6    6[/COLOR]
126    1    "OrcArcher6"            81    20000    0    320    350    270    0    520    160    3    0    5    7    400    1600    10    2    300    200    3    0    6    6    6    6
--

6 - This is the map number we're spawning the orcs on. Since we spawning the orcs in the stadium, we use the number 6.

--

20 - This is how the orcs are going to move. Since they are monsters and we want them to move around, we put a 20 here.

--

21 - This is the first X coordinate. What do I mean by the first X coordinate? We'll get to that in a second.

--

116 - This is the first Y coordinate.

--


23 - This is the second X coordinate. Now heres where the trick comes in. We use two sets of coordinates because we're going to spawn the orcs in a set range of coordinates. This spreads the orcs out and allows us to add more in one area so they won't stack on top of each other and be unable to move.

--

110 - This is the second Y coordinate.

--

-1 - Heres a new number type, a negative. What does this mean? It means when the monster spawns, it will be facing in a random direction instead of a set direction.

--

20 - Heres the last new value on the line. This number tells us how many orcs are going to spawn in the area. We are spawning 20 orcs, so we put 20 here. If we wanted to spawn 50 orcs, we would put a 50 here.

Line Types

See that number before all of the spawns in the monster set base? Well that tells us how the line types are going to be handled. Heres a list.
Code:
0 - type mapnumber distance x y dir
2 - type mapnumber distance x y dir (Better used for single spots)
3 - type mapnumber distance x y dir total (can handle 2 x and 2 y coords - used to spawn all the way between those coords)
   - type mapnumber distance x1 y1 x2 y2 dir total
4 - type mapnumber distance x y dir (Better used for NPC only)
Example;
Code:
1
3    0    30    180    90    226    244    -1    45 // Spider => Lorencia
2    0    30    180    90    226    244    -1    40 // Budge Dragon => Lorencia
2    0    30    135    20    240    88    -1    20 // Budge Dragon => Lorencia
0    0    30    135    20    240    88    -1    45 // Bull Fighter => Lorencia
6    0    30    95    168    175    244    -1    20 // Lich => Lorencia
14    0    30    95    168    175    244    -1    15 // Skeleton Warrior => Lorencia
14    0    30    134    212    144    224    -1    30// Skeleton Warrior => Lorencia
1    0    30    8    11    94    244    -1    45 // Hound => Lorencia
4    0    30    8    11    94    244    -1    45 // Elite Bull Fighter => Lorencia
7    0    30    8    11    60    80    -1    15 // Giant => Lorencia
end
The number at the top tells the GameServer how the line is going to be handled, and the END statement at the end of the list tells the GameServer that the line is over and gets the GameServer ready to load the next line.
_______________________________________

Understanding the Monster.txt

So you open up the monster.txt and all you see is a bunch of numbers. What do these mean? Lets break it down! I'll only be telling you what the first few numbers are.

Code:
[COLOR=Red]1[/COLOR]    [COLOR=Magenta]1[/COLOR]    [COLOR=Orange]"Hound"[/COLOR]   [COLOR=Lime]9[/COLOR]    [COLOR=Blue]140[/COLOR]
1 - The first number, as we went over earlier, tells us the ID number of the monster. This is the number we need to use when adding the spawns to the monster set base.

--

1 - This next number I have no clue what it means. Every line in the monster.txt has a one here, so theres nothing much to edit here.

--

"Hound" - This is the name of the monster on the line.

--

9 - This is the monster's level. The reason you would want to edit this is to edit how much experience the monster will give. The higher level the monster, the more experience you'll get. The level doesn't affect the other stats in any way.

--

140 - This is how much hit points the monster will have.
______________________________________________________________

Credits

ppsito80 - Information on adding more than one monster on one line.
enXio - Map ID number list.
iod - The direction numbers.
Ron - Compiling the guide.
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Jul 23, 2005
Messages
1,402
Reaction score
3
Thanks. Planning on remaking a bunch of the guides to make them easier to understand.

good idea?

i can help you with this if you need it

btw, awesome guide, its really easy to understand ;)
 
Newbie Spellweaver
Joined
Apr 20, 2006
Messages
41
Reaction score
0
Ron, can u upload here the monster.txt in english version like what u have in the upper part..thanks!
 
Banned
Banned
Joined
May 24, 2006
Messages
590
Reaction score
0
this is so old.... here i let u a tool (easy monster)
 
Banned
Banned
Joined
May 24, 2006
Messages
590
Reaction score
0
this guide is old man... that info comes with the monster.txt and monstersetbase.txt
 
Newbie Spellweaver
Joined
Apr 20, 2006
Messages
41
Reaction score
0
good guide!! now i can put all the mobs in LORENCIA wahhehe! Maraming Salamat poh!! (THANK YOU VERY MUCH!!)

youre a filipina, im a filipino too...im from mindanao...

thanks RON!
 
Joined
Apr 28, 2005
Messages
6,965
Reaction score
2,482
this guide is old man... that info comes with the monster.txt and monstersetbase.txt

Once again, this isn't a guide on telling you how to add spawns. This is a guide that goes to helping you understand the server files better, finding out what exactly everything means. This can be used as a guide on how to add spawns yes, but it was meant to help you understand what the lines in the monster set base mean.
 
Newbie Spellweaver
Joined
Apr 20, 2006
Messages
41
Reaction score
0
Once again, this isn't a guide on telling you how to add spawns. This is a guide that goes to helping you understand the server files better, finding out what exactly everything means. This can be used as a guide on how to add spawns yes, but it was meant to help you understand what the lines in the monster set base mean.

i agree! and i rate this thread 100/10! this guide helped me a lot.. thank u ron! anyways, i hope u can give us guide in understanding item.txt and eventbag.txt..Ron, thanks for the english monster.txt..can u add item.txt in english translation? thanks!
 
Joined
Jan 9, 2005
Messages
669
Reaction score
83
me in mindanao also (cagayan de oro city)

anyways i would like to thank again for a great great great guide!!!!

it helps me a lot!!

please make more guides...!!!

more power!!!

Salamat poh!!!
 
Initiate Mage
Joined
Mar 14, 2007
Messages
1
Reaction score
0
Re: [Guide] Understanding the MonsterSetBase.txt and Monster.txt

man i need your help,
i have a MonsterSetBase and Monster files not at english i have at chnies or something
how i can change it please answer fast

sorry about the noob english Jackov:sweatdrop
 
Joined
Mar 5, 2004
Messages
58
Reaction score
0
Re: [Guide] Understanding the MonsterSetBase.txt and Monster.txt

1 1 Hound . may be the second "1" means phisical boddies under 1 mob id? for example if it's 10 then when you'll put to spawn 1 hound, 10 will appear, but i'm not sure ^^. Just 1 of many ideas ^^
 
Newbie Spellweaver
Joined
Jun 10, 2006
Messages
22
Reaction score
7
Re: [Guide] Understanding the MonsterSetBase.txt and Monster.txt

WOW, this is the best guid i never saw befor. Verry easy to understand for noobs or for begginers like me xD

Thanks again bro and keep your great job!
 
Back
Top