English Tibia spawn monsters

3 replies
Goto Page
To the start Previous 1 Next To the start
02.01.14 11:32:03 am
Up
EvO
User
Offline Off
Hey , i will edit tibia mod and how add new monsters.

Code to monsters is:
Spoiler >


And how set spawn? In x is 0 and in y is 0 , where create spawn monsters at a given location? Thanks for help
02.01.14 11:49:37 am
Up
TrialAndError
User
Offline Off
Find:

Code:
1
2
3
4
5
6
local SPAWNS = {
     FULLMAP = {{0, 0}, {150, 150}},
     BOTTOMHALF = {{0, 100}, {150, 150}},
     ONIXCAVE = {{165, 30}, {184, 48}},
     YOURSHIT = {{x,y},{x,y}}, -- Change name and the pos
},


And then add your monster to the CONFIG.MONSTERS = {

Code:
1
2
3
4
5
6
7
8
9
CONFIG.MONSTERS = {

name = 'Djin', health = 180, image = 'gfx/weiwen/pokemon/e3.png', scalex = 1.0, scaley = 1.0, 
          atk = 2.2, def = 1.0, spd = 9, atkspd = 7, x = 0, y = 0, ang = 0, imgang = 0, runat = 0, 

spawnchance = {['rpg_mapb'] = {30}}, 
spawn = {
               ['rpg_mapb'] = {SPAWNS.YOURSHIT}
          exp = 19, money = 110, loot = {{chance = 50, id = 104}},
edited 1×, last 02.01.14 12:02:56 pm
02.01.14 06:03:02 pm
Up
EvO
User
Offline Off
ok and how to get x and y?
02.01.14 08:40:54 pm
Up
TrialAndError
User
Offline Off
From Editor, find tile position of the tiles that you want.

You go on the tile and you will see Tile Position x|y
To the start Previous 1 Next To the start