English Tibia script thread (Post tibia requests here)

347 replies
Goto Page
To the start Previous 1 2 ... 17 18 Next To the start
06.04.17 01:40:08 pm
Up
Goo
User
Offline Off
Can you guys give hints on how to do that?
Functions that need to be edited?
06.04.17 02:01:43 pm
Up
Yates
Reviewer
Offline Off
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.
06.04.17 04:23:13 pm
Up
Goo
User
Offline Off
OK this is good for monsters.lua?
Code:
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}, 
     },
06.04.17 05:04:18 pm
Up
Yates
Reviewer
Offline Off
I have no idea because I have no idea what you're going to code in the functions.
06.04.17 06:32:21 pm
Up
Goo
User
Offline Off
But is it close enough?
06.04.17 06:45:07 pm
Up
Yates
Reviewer
Offline Off
No idea. You tell me.
06.04.17 07:25:57 pm
Up
Goo
User
Offline Off
I don't know I think it is! What do you think?
07.11.17 08:24:52 pm
Up
Melve
User
Offline Off
I have a problem with my npc setpos.
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?
To the start Previous 1 2 ... 17 18 Next To the start