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

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 06-18-2008, 10:21 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

This will be in version 1113.
__________________
Maybe I should try making one of these servers...
Reply With Quote
Reply


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 07:54 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3