Jump to content
TrinityCore

Respawn creature and update data base


Belitharian
 Share

Recommended Posts

Hello,
 
Here's the deal: I have to develop a new system looks like Alterac, for example, we have King Varian Wrynn and two lords to kill. The first lord to Westfall and the second in Goldshire. When a lord is alive, it gives a bonus to the King (damage, life...). The goal is to kill lords before attacking the faction leader.
 
I finished most of the work but I have a problem to solve: the respawn. I work with a `chef_faction` table with the following columns:
  • Faction leader: UInt32 Entry;
  • Lord: UInt32 Entry;
  • Alive: Boolean;
  • Aura: UInt32 Entry;
When the player isn't close to a lord, the JustRespawned() method can't be called because of verification of chunk distance between the NPC and the player.
How can I do to fix it and change the Alive value to false ?
 
Thank you for your answers !
 
Sincerely,
 
- Belitharian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...