Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-11-2008, 06:38 AM
haecz
Hill Giant
 
Join Date: Apr 2003
Location: x
Posts: 205
Default 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
__________________
there is no spoon!!

Last edited by KLS; 06-15-2008 at 01:11 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:55 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3