View Single Post
  #1  
Old 07-25-2008, 02:04 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default Bug Fix: Show pet buffs icons in pet window

This fix is to display the spell icons for buffs on your pet in the pet window.



I found the 6.2 opcode for this in the same packet collect that had the 6.2
charm opcode in it and was able to figure out the struct enough to get it to
work. The Opcode is the same for both 6.2 and Titanium.

Add:

Code:
OP_PetBuffWindow=0x4e31
to both patch_6.2.conf and patch_Titanium.conf, and apply this source code patch.

http://www.rama.demon.co.uk/petbuffwindow.patch

Let me know if it doesn't work as it should.

One thing I noticed is you can't remove beneficial spells by clicking on them. I don't know
whether this is meant to be possible. I did a packet collect on the 6.2 client and couldn't
see any packets being sent when I clicked on a buff.

As well as sending the buff packet when buffs are applied and fade, it is sent to the client
every tic in BuffProcess(). I did this because I couldn't get the buffs to show up again when
you logged off with a buffed pet and logged back on. I tried sending them from Client::FinishConnState2,
but that didn't work.
Reply With Quote