EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Distance check to Consented Corpses (https://www.eqemulator.org/forums/showthread.php?t=25063)

haecz 04-11-2008 06:38 AM

Distance check to Consented Corpses
 
/Corpse on contented corpses do not have a Distance check.

Change:

Quote:

Originally Posted by PlayerCorpse.cpp - Line 1087
if(strcmp(this->GetOwnerName(), itr->c_str()) == 0) {
GMMove(client->GetX(), client->GetY(), client->GetZ());
pIsChanged = true;
consented = true;
}
}
if(!consented)
client->Message(0, "You do not have permission to move this corpse.");
}



To:
Quote:

Originally Posted by PlayerCorpse.cpp - Line 1087
if(strcmp(this->GetOwnerName(), itr->c_str()) == 0) {
if (DistNoRootNoZ(*client) <= dist2) {
GMMove(client->GetX(), client->GetY(), client->GetZ());
pIsChanged = true;
}
else {
client->Message(0, "Corpse is too far away.");
}
consented = true;
}
}
if(!consented)
client->Message(0, "You do not have permission to move this corpse.");
}
}

PS. Yes putting the distance check with the consent check (&&) does make more sense, feel free to edit that ;)

Scorpious2k 06-18-2008 10:21 AM

This will be in version 1113.


All times are GMT -4. The time now is 06:23 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.