Forum

> > CS2D > Scripts > [REQ]NPC Health Left[tibia]
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [REQ]NPC Health Left[tibia]

34 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt [REQ]NPC Health Left[tibia]

Runnin
User Off Offline

Zitieren
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.

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

Yates
Reviewer Off Offline

Zitieren
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.")

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

Runnin
User Off Offline

Zitieren
user Yates hat geschrieben
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

alt G

-FQ
User Off Offline

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

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

Runnin
User Off Offline

Zitieren
user Yates hat geschrieben
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.

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

Jynxxx
User Off Offline

Zitieren
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

alt s

-FQ
User Off Offline

Zitieren
please put here an funcion code
1× editiert, zuletzt 26.10.12 10:14:10

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

Jynxxx
User Off Offline

Zitieren
Click Here Lazy >

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

Runnin
User Off Offline

Zitieren
user Jynxxx hat geschrieben
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!

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

connor34
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht