Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2005, 07:36 PM
Dakaar
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default 6.2 bugfix: SetHideMe db entry correction.

On my server, i have given rogues a sort of hideme type ability that lasts untill they attack, break stealth or zone. As a sort of failsafe, I had my server SetHideMe(false); whenever a character enters a zone if he is not an admin.

I had a few other ones for various actions, and what this was causing was that characters would permanently get sethidden due to the fact that sethideme(false) sets your hideme to 1 in the db.

This is an easy fix in client.cpp:

around line 2140

make this block look like this:
if(gmhideme)
{
database.SetHideMe(AccountID(),true);
CreateDespawnPacket(&app);
entity_list.RemoveFromTargets(this);
}
else
{
database.SetHideMe(AccountID(),false);
CreateSpawnPacket(&app);
}

note, the true and false in database.SetHideme() were backwards, the above way is the proper way to do things.
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 12:17 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3