- Joined
- Apr 1, 2021
- Messages
- 545
- Solutions
- 3
- Reaction score
- 205
Hello I have paid someone to create this code and would like to share it to community as I requested it on support and nobody had it.
Created by @SwagMaster
i tested it and it works instead of despawn feature which nobody uses in 7.4
C++:
void Monster::onThink(uint32_t interval)
{
Creature::onThink(interval);
if(despawn())
{
if(spawn)
{
spawn->removeMonster(this);
spawn->startEvent();
spawn = NULL;
masterRadius = -1;
}
}
updateIdleStatus();
if(isIdle)
return;
Created by @SwagMaster
i tested it and it works instead of despawn feature which nobody uses in 7.4
Last edited: