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

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-20-2003, 01:27 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default Teleport doors bug

Here's a new one for those who are bored

Doors work great in most cases. But we're if you have a teleport door that requires a key item, you have a problem. The person who uses the key will be teleported correctly, but if he is in a group the rest will be told they don't have the key or that the lock can't be picked....

So here is the fix (and yes its 5.0 and 4.4):

In doors.cpp Doors::HandleClick

change...
Code:
		if((GetKeyItem()==0 && GetLockpick()==0) || (GetKeyItem() == sender->GetItemAt(0))) {
		//door not locked, or door is locked & client is using key 
			if(!IsDoorOpen()) {
to

Code:
	if((GetKeyItem()==0 && GetLockpick()==0) 
		|| (GetKeyItem() == sender->GetItemAt(0))
		|| (IsDoorOpen() && opentype == 58))
	{ 
		//door not locked, or door is locked & client is using key or door is open
			if(!IsDoorOpen() || opentype == 58)
and near the end of the function

Code:
    if(!isopen) {
        close_timer->Start();
        isopen=true;
    }
    else {
        close_timer->Disable();
        isopen=false;
    }
should be

Code:
    if(!isopen || opentype == 58) 
	{
        close_timer->Start();
        isopen=true;
    }
    else {
        close_timer->Disable();
        isopen=false;
    }
This allows characters to follow the one with the key. What it should do is leave the teleport door "open" for 10 seconds to allow the next person to teleport.... this will reset the timer and allow another 10 seconds for the next... then 10 more... etc etc until the entire group has gone. Then it will be locked again and require the key.
__________________
Maybe I should try making one of these servers...
Reply With Quote
 

Thread Tools
Display Modes

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