Forum

> > CS2D > Scripts > Tibia spawn monsters
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia spawn monsters

3 replies
To the start Previous 1 Next To the start

old Tibia spawn monsters

EvO
User Off Offline

Quote
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

old Re: Tibia spawn monsters

TrialAndError
User Off Offline

Quote
Find:

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 = {

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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview