C++

Hi,

I have scripted a custom NPC.

Now i want so change the respawn time on dead of the creature.

The new Respawn time is dynamic and come from a table in the database.

I tried with


me->SetRespawnDelay(boss_respawn_time);

me->SetRespawnTime(boss_respawn_time);

It reduced the the respawn time but not correct i think.

When boss_respawn_time = 10 the npc will spawn after 15-20sec

And i have a second question.

How can i write lines to the DBErrors.log file ?

thx for the help /emoticons/default_smile.png

1- Wrong section.

2- spp will answer you that. Seems he is the only one knowing perfectly how that system works.

sLog->outError(LOG_FILTER_SQL

Oh yes, sry my fault /emoticons/default_wink.png

And thx for the fast answer Nay