[REQ]NPC Health Left[tibia]
34 replies24.10.12 07:22:05 pm
Dear members from
,
I'm being busy with making a nice tibia server.
Iam wondering if anyone has a script for tibia,
that when you shoot a NPC is displays
how much health that monster got left.
Thanks in advance!
PS: I'm searching the whole forum for that kind of script like 2 days already, couldn't find any. I searched even on Turkish and Polish CS2D forums.

I'm being busy with making a nice tibia server.
Iam wondering if anyone has a script for tibia,
that when you shoot a NPC is displays
how much health that monster got left.
Thanks in advance!

PS: I'm searching the whole forum for that kind of script like 2 days already, couldn't find any. I searched even on Turkish and Polish CS2D forums.
»'Molukia' x, *

Put this code at the correct place (See image) in monsters.lua file.
Code:
1
msg2(id,"You have dealt "..dmg.." damage, the monster has "..self.health.." health left.")

Put this code at the correct place (See image) in monsters.lua file.
Code:
1
msg2(id,"You have dealt "..dmg.." damage, the monster has "..self.health.." health left.")
Sweet!
Thank you so much

»'Molukia' x, *

Put this code at the correct place (See image) in monsters.lua file.
Code:
1
msg2(id,"You have dealt "..dmg.." damage, the monster has "..self.health.." health left.")
Hey man,
I want to display the damage at the top of the screen.
this is the code i tried to make for it:
Code:
1
hudtxt2(id,"Dealt "..dmg.." damage, "..self.health.." health left." 320, 400, 0)
But it isn't working.
Please help me.
Thanks in advance.
»'Molukia' x, *
Code:
1
2
2
hudtxt2(id,41, 'Dealt '..dmg..' damage, '..self.health..' health left.', '255255255', 200,250,0)
hudtxtalphafade(id,41,5000,0)
hudtxtalphafade(id,41,5000,0)
>Open monsters.lua
>find function Monster:damage(id, dmg, wpntype)
>find the line with self.health = self.health - dmg
>Paste code under it
>???
>Profit

Code:
1
2
2
hudtxt2(id,41, 'Dealt '..dmg..' damage, '..self.health..' health left.', '255255255', 200,250,0)
hudtxtalphafade(id,41,5000,0)
hudtxtalphafade(id,41,5000,0)
>Open monsters.lua
>find function Monster:damage(id, dmg, wpntype)
>find the line with self.health = self.health - dmg
>Paste code under it
>???
>Profit
Sweet man it's working 100%
Thank you so much!

»'Molukia' x, *
Code:
1
2
2
hudtxt2(id,41, 'Dealt '..dmg..' damage, '..self.health..' health left.', '255255255', 200,250,0)
hudtxtalphafade(id,41,5000,0)
hudtxtalphafade(id,41,5000,0)
This doesn't work for me

My rpg doest work, im edited the code im add
Code:
has been work please edit! 1
addtimer(2000)-- has 2 seconds has show in hud

No annoying animated sigs please. /DC
@
Yates: Yates, when I write this code:
Than it doesn't work and the monster doesn't die. Do you know how I can fix it?

Code:
1
hudtxtalphafade(id,41,5000,0)
Than it doesn't work and the monster doesn't die. Do you know how I can fix it?
The error msg is:
Quote:
LUA ERROR: sys/lua/cs2dtibia/monsters.lua:752: attempt to call global 'hudtxtalphafade' (a nil value)
@
Yates: The id was 41 but i already had another so i changed it to 44 but i still got the same problem.

edited 1×, last 03.01.13 01:42:26 pm