Originally Posted by
Xmaily
1) How can i make him get to 1HP without dying. (when he hits 1 hp he stops taking damage and won't die: Is it a command in a script?)
You need to create a new flag to handle this. I did it like so:
Code:
enum CustomFlags
{
CREATURE_CUSTOMFLAG_CANTDIE = 0x1, // 1
...
};
Code:
bool CantDie()
{
return HasCustomFlag(CREATURE_CUSTOMFLAG_CANTDIE);
}
Code:
if(pVictim->GetHealth() <= damage)
{
if(pVictim->isTrainingDummy() || pVictim->IsCreature() && TO_CREATURE(pVictim)->CantDie())
{
pVictim->SetHealth(1);
return;
}
You get the gist.
Originally Posted by
Xmaily
2) How to make the Unattackable NPC attackable. (Red unatackable: Changing flags some how?)
UNIT_FIELD_FLAGS set to 2.
Originally Posted by
Xmaily
3) How to talk to the pumpkin gameobject to start the event (Right now I have it as a quest and when you pick it up the event starts)
A normal gossip script? Look at how existing scripts do this.
No I can't give you a detailed tutorial on this nor do it for you.