EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Fix: Feign Death opcode and indiff /con (https://www.eqemulator.org/forums/showthread.php?t=11376)

Mongrel 01-15-2004 06:13 AM

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.

Trumpcard 01-15-2004 07:08 AM

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

Thanks!

EDIT: Ok, merged. Thanks again


All times are GMT -4. The time now is 11:06 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.