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.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2004, 06:13 AM
Mongrel
Hill Giant
 
Join Date: Jul 2003
Location: Germany
Posts: 232
Default Fix: Feign Death opcode and indiff /con

Feign Death is working for the most part, however the opcode was still wrong and tabbed out.

The new opcode for Feign Death is 0x022F (obviously you would change this in eq_opcodes.h)

And here's a small fix to make NPCs regard you indifferently when you're feigned.

zone/client_process.cpp:

In Client::HandlePacket look for the OP_Consider opcode

Code:
case OP_Consider: {
and change the following lines

Code:
if(database.GetServerType() == 1) {
	if (!tmob->IsNPC() )
		con->pvpcon = tmob->CastToClient()->GetPVP();
}

QueuePacket(outapp);
safe_delete(outapp);
break;
to:

Code:
if(database.GetServerType() == 1) {
	if (!tmob->IsNPC() )
		con->pvpcon = tmob->CastToClient()->GetPVP();
}

// Mongrel: If we're feigned show NPC as indifferent
if (tmob->IsNPC())
{
	if (feigned)
		con->faction = FACTION_INDIFFERENT;
}

QueuePacket(outapp);
safe_delete(outapp);
break;
Note: The same could be done with Invis and InvisToUndead. However, ITU isn't implemented yet (would need a flag "invistoundead", similar to the "invisible" flag, a rather large change in code), so I'm leaving this out for now.
Reply With Quote
  #2  
Old 01-15-2004, 07:08 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Good fix... I'll get it in tonight...

Thanks!

EDIT: Ok, merged. Thanks again
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
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 03:00 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