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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-02-2002, 02:32 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default Quick fix for proccing weapons

I found the 'beneficial spell' flag in the spells structure today (unknown_4[1]), you can drop it into the weapon proc code easily to make beneficial spells cast on you and aggressive spells cast on the target. It gets rid of that nasty 'is this spell avatar' bodge I put in

Here's the code to go near the bottom of client::attack() in attack.cpp :-

Code:
extern bool spells_loaded;
if(spells_loaded)
{
   // Check who to cast the effect on. Beneficial or grouponly (1 or 2) = us, agressive spell (0) = them
   if(spells[weapon->common.spellId].unknown_4[1] != 0)
      SpellFinished(weapon->common.spellId, GetID(), 10, 0);
   else
      SpellFinished(weapon->common.spellId, other->GetID(), 10, 0);
}
K.
Reply With Quote
 


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 08:13 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3