if(player->isProtected())
{
Player* movingPlayer = movingCreature->getPlayer();
if(movingPlayer && !movingPlayer->isProtected())
{
player->sendCancelMessage(RET_NOTMOVABLE);
return false;
}
}
if(movingCreature->getNpc() && !Spawns::getInstance()->isInZone(movingCreature->masterPos, movingCreature->masterRadius, toPos)){
player->sendCancelMessage(RET_NOTENOUGHROOM);
return false;
}
Under:
C++:if(player->isProtected()) { Player* movingPlayer = movingCreature->getPlayer(); if(movingPlayer && !movingPlayer->isProtected()) { player->sendCancelMessage(RET_NOTMOVABLE); return false; } }
add:
C++:if(movingCreature->getNpc() && !Spawns::getInstance()->isInZone(movingCreature->masterPos, movingCreature->masterRadius, toPos)){ player->sendCancelMessage(RET_NOTENOUGHROOM); return false; }
I think a moderator cleaned your thread. I posted a solution after your message which I'm now quoting, but the reply is still above yours. Try what I posted.A week later and I still here, BUMP!
I think a moderator cleaned your thread. I posted a solution after your message which I'm now quoting, but the reply is still above yours. Try what I posted.
You could add it as a flag/parameter. Something like pushable="true". But I cannot help you with it right now since I'm at workYeah, some mod moved my BUMP posts and it bugged yours, even with you posting after me, your post go up.
I compiled again and... IT WORKED! thanks a lot man, your were the only one who tried help me and the only one who did it
I have a last request (if you can't do it, no problem, you already helped a lot).
Is it possible make it work only to a specific NPC? I want that players be able to move only a specific NPC.
Solved! @Ziker did it to me, I'm very grateful to him.