Forum

> > CS2D > Scripts > Tibai monsters.lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibai monsters.lua

4 replies
To the start Previous 1 Next To the start

old Tibai monsters.lua

Xcover
User Off Offline

Quote
Can anywon help me with monstes.lua how do to monster spawn in

     spwawn1 = {199, 97}, spawn2 = {223, 198}, Only

This is my monster

     
1
2
3
4
{	name = 'Desert Wolf', health = 200, image = 'gfx/rpg_qwe/desert_wolf.png', scalex = 1, scaley = 1,
		atk = 2.0, def = 1.5, spd = 15, atkspd = 9, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 200, runat = 20, spwawn1 = {199, 97}, spawn2 = {223, 198},
		exp = 500, money = 800, loot = {}, 
	},
The monste spawn enywher plz help

Sry for me bad english
edited 1×, last 05.07.12 08:52:29 am

old Re: Tibai monsters.lua

Jynxxx
User Off Offline

Quote
You spelled spawn wrong
1
spwawn1 = {199, 97}

Should be like this.
1
spawn1 = {199, 97}

old Re: Tibai monsters.lua

SkullzOrig
User Off Offline

Quote
If you want it to spawn in certain places onlyyou have to add the position X and Y also including a name of that position
     ex.
     local SPAWNS = {
          FULLMAP = {{0, 0}, {150, 150}},
     }

CONFIG.MONSTERS = {
     {
     name = 'Zombie',
     health = 1000,
     image = 'gfx/SkullzTibia/monsters/Zombie.png',           scalex = 1, scaley = 1,
     r = 255, g = 255, b = 255,
     atk = 10,
     def = 15,
     spd = 17,
     atkspd = 20,
     x = 0, y = 0, ang = 0, imgang = 0,                runat = 10,
     spawnchance = {['rpg_mapb'] = {5}},
     spawn = {
     ['rpg_mapb'] ={SPAWNS.FULLMAP}
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview