Add /unwarpable command

GMs should use this before going to weird places where their non-GM
buddies might warp to them and get stuck.
This commit is contained in:
2020-12-28 16:24:24 +01:00
parent 81d0964971
commit fc45775666
3 changed files with 17 additions and 0 deletions

View File

@@ -528,6 +528,10 @@ void BuddyManager::reqBuddyWarp(CNSocket* sock, CNPacketData* data) {
if (otherPlr->onMonkey)
goto fail;
// does the player disallow warping?
if (otherPlr->unwarpable)
goto fail;
// otherPlr->instanceID should always be INSTANCE_OVERWORLD at this point
PlayerManager::sendPlayerTo(sock, otherPlr->x, otherPlr->y, otherPlr->z, otherPlr->instanceID);
return;