Forum

> > CS2D > Scripts > [REQ]NPC Health Left[tibia]
Forums overviewCS2D overview Scripts overviewLog in to reply

English [REQ]NPC Health Left[tibia]

34 replies
Page
To the start Previous 1 2 Next To the start

old [REQ]NPC Health Left[tibia]

Runnin
User Off Offline

Quote
Dear members from us,

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.

old Re: [REQ]NPC Health Left[tibia]

Yates
Reviewer Off Offline

Quote
IMG:https://i.imgur.com/FqrE1.png

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

old Re: [REQ]NPC Health Left[tibia]

Runnin
User Off Offline

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


Sweet!
Thank you so much

old G

-FQ
User Off Offline

Quote
Yates write here all code i dont see yours pic. Thanks.

old Re: [REQ]NPC Health Left[tibia]

Runnin
User Off Offline

Quote
user Yates has written
Put this code at the correct place (See image) in monsters.lua file.
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:

1
hudtxt2(id,"Dealt "..dmg.." damage, "..self.health.." health left." 320, 400, 0)

But it isn't working.
Please help me.
Thanks in advance.

old Re: [REQ]NPC Health Left[tibia]

Jynxxx
User Off Offline

Quote
1
2
hudtxt2(id,41, 'Dealt '..dmg..' damage, '..self.health..' health left.', '255255255', 200,250,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

old s

-FQ
User Off Offline

Quote
please put here an funcion code
edited 1×, last 26.10.12 10:14:10 am

old Re: [REQ]NPC Health Left[tibia]

Jynxxx
User Off Offline

Quote
Click Here Lazy >

old Re: [REQ]NPC Health Left[tibia]

Runnin
User Off Offline

Quote
user Jynxxx has written
1
2
hudtxt2(id,41, 'Dealt '..dmg..' damage, '..self.health..' health left.', '255255255', 200,250,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!

old Re: [REQ]NPC Health Left[tibia]

connor34
User Off Offline

Quote
1
2
hudtxt2(id,41, 'Dealt '..dmg..' damage, '..self.health..' health left.', '255255255', 200,250,0)
hudtxtalphafade(id,41,5000,0)

This doesn't work for me It does'nt display at all.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview