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.
http://www.rama.demon.co.uk/petwindow.jpg 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 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. |
After looking over this again, the call to SendPetBuffsToClient in Mob::BuffFadeByEffect is redundant, since BuffFadeByEffect calls BuffFadeBySlot, and the pet window buff packet is already sent in that routine.
So, after applying the patch, you can delete these lines: spells.cpp, Line 2614: Code:
void Mob::BuffFadeByEffect(int effectid, int skipslot) |
Another great submission. If you keep this up, we're going to have a whole slew of functionality that wasn't there before just by connecting a few missing op_codes. Keep up the great work!
|
Nice, I'll get this all sorted out and in submission in a few days.
|
Wow, thought i'd never see the buffs on pets again - Thanks again!
|
I remember on live not being able to click off beneficial spells from pet. So its all good. Good work.
|
Something I'm changing: not sending a pet buff update every client buff tic. I don't see the point really, also adding a pet buff update at connect finishing since without the buff tic update it wont show up on zoning without it.
Save roughly 2k/min per client connected this way which may not be a lot but if we keep adding things like it because they're "not a lot" they add up. |
Thanks KLS! Every bit helps! Sounds like some really nice adjustments.
|
Bravo! Even "little" developments like this is an exciting progression!
I'm always excited when things like this get added in. The work on Opcodes in recent weeks has been phenomenal! Thanks for your work on this! |
does anyone have this patch it seems to be not on the site anymore.
|
It's been incorporated into the official source and binaries for a while, so I was tidying up my webspace and deleted it. If you aren't running recent code and still need it, I'll see if I can find it and re-upload it when I get home from work (7 or 8 hours from now).
|
I still got it:
petbuffwindow.patch |
All times are GMT -4. The time now is 06:09 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.