Functions that need to be edited?
Forum
CS2D Scripts Tibia script thread (Post tibia requests here)Functions that need to be edited?
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.
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
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}, 	},
Im using this method:
x*32+16 and y*32+16 but i can't see any npc on the map and theres not any lua error.
Can anybody help me?