Hellfire: Fixed
#12
Hello Lemming,

There are several problems with the Berserk spell, but the most important is indeed that attacked monsters are not activated. A fix for that can also be found in our notes, but I'll give the code here.

You will need 14 bytes of free space. We used location 0047A9B2, but that space might not be available to you. If so, find a sequence of 14 'nop' and adjust the call for it (or ask, and I'll gladly help).

This will only work for monsters that are attacked in melee, but that is the most common. In HF, Berserk only works on not magic immune creatures.



Melee Monster vs. Monster

Activation of target monster (for when attacked by Charmed monster):

File Offset 0003CFB6

:0043DBB6 39BE8CDC6900 cmp dword ptr [esi+0069DC8C], edi
change to
:0043DBB6 E8F7CD0300 call 0047A9B2 <- adjust this call if needed
:0043DBBB 90 nop

File Offset 00079DB2

:0047A9B2 90... 14*nop
change to
:0047A9B2 808E28DD6900FF or byte ptr [esi+0069DD28], FF <- code that activates target
:0047A9B9 39BE8CDC6900 cmp dword ptr [esi+0069DC8C], edi
:0047A9BF C3 ret

Sorry for the bad spacing. Can't get it right, it seems.
Reply


Messages In This Thread
Hellfire: Fixed - by NiteFox - 04-23-2003, 11:09 AM
Hellfire: Fixed - by LemmingofGlory - 04-23-2003, 01:51 PM
Hellfire: Fixed - by Zamal - 04-23-2003, 05:16 PM
Hellfire: Fixed - by FoxBat - 04-23-2003, 05:49 PM
Hellfire: Fixed - by Zenda - 04-23-2003, 07:15 PM
Hellfire: Fixed - by LemmingofGlory - 04-24-2003, 05:45 AM
Hellfire: Fixed - by Zenda - 04-24-2003, 09:48 AM
Hellfire: Fixed - by NiteFox - 04-24-2003, 10:07 AM
Hellfire: Fixed - by LemmingofGlory - 04-24-2003, 02:05 PM
Hellfire: Fixed - by Attika - 04-24-2003, 02:53 PM
Hellfire: Fixed - by LemmingofGlory - 04-25-2003, 02:21 AM
Hellfire: Fixed - by Zenda - 04-26-2003, 11:59 AM
Hellfire: Fixed - by LemmingofGlory - 04-26-2003, 09:46 PM
Hellfire: Fixed - by aaa - 04-28-2003, 08:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)