Forum

> > CS2D > Scripts > Tibia script thread (Post tibia requests here)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia script thread (Post tibia requests here)

347 replies
Page
To the start Previous 1 217 18 Next To the start

old Re: Tibia script thread (Post tibia requests here)

Yates
Reviewer Off Offline

Quote
If you copy/paste monsters, you'll need to assign an extra variable possibly called owner, which is used to make sure the monster ignores this person. Then edit the movement functions to move around the owner until the owner is attacked or has attacked, then let it roam freely and attack near by people in a certain range of the owner. You might need to assign an extra boolean variable called attack or something to state whether it should attack or ignore players.

Find the equip function in functions, then when the player equips or removes a certain armour spawn your friendly monster.

This is the real basics of how it might work. The rest is up to you.

old Re: Tibia script thread (Post tibia requests here)

Mami Tomoe
User Off Offline

Quote
OK this is good for monsters.lua?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ --35 friendly
		name = 'Bee', 
		health = 1, 
		image = 'gfx/terraria/minions/Bee.png', 
		scalex = 1, 
		scaley = 1, 
		r = 255, 
		g = 255, 
		b = 255, 
		atk = 6, 
		def = 1, 
		spd = 10,
		atkspd = 5, 
		x = 0, 
		y = 0, 
		ang = 0, 
		imgang = 0, 
		runat = 10, 
		size = 32,
		isSpawn = false,
		isMinion = true
		isOwner = 0
		spawnchance = {['rpg_terraria'] = {75}}, 
		spawn = {
			['rpg_terraria'] = {SPAWNS.FULLMAP}
		}, 
		exp = 0, 
		money = 0, 
		loot = {}, 
		spc = {500, function(self)
		end}, 
	},
To the start Previous 1 217 18 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview