Jump to content
TrinityCore

How to make a NPC show like half HP in game?


yabiange
 Share

Recommended Posts

Are you on 3.3.5 or master branch? 280552 is quite high spellid and is likely only on newer patches. Did you try casting the spell yourself? Maybe it would need to be cast instead of applied as aura.

 

Try the hp column in creature table instead.

https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130009/creature#creature-curhealth

Link to comment
Share on other sites

7 hours ago, Rochet2 said:

Are you on 3.3.5 or master branch? 280552 is quite high spellid and is likely only on newer patches. Did you try casting the spell yourself? Maybe it would need to be cast instead of applied as aura.

 

Try the hp column in creature table instead.

https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130009/creature#creature-curhealth

I used the master. And I\ve tried cast to myself and the npc, still nothing happen.

Change the curhealth, but it has full_health in game. Did I miss something?

Thanks to your reply anyway.

Link to comment
Share on other sites

On 1/8/2022 at 1:11 PM, Aokromes said:

look how the final boss of shadow labyrinth works.

Thank you! It worked!

SET @NPCID = 108767;
SET @GUID = 748407;
SET @HP = 7315;
UPDATE `creature_template` SET `HealthModifier` = 2, `RegenHealth` = 0 WHERE `entry` = @NPCID;
UPDATE `creature` SET `curhealth` = @HP WHERE `guid` = @GUID;

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...