Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2012, 05:37 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default Pets and bane

Pets and Swarm pets should be able to hit IMMUNE_MELEE_EXCEPT_BANE mobs

proof: http://everquest.allakhazam.com/db/n...56360625423557

Code:
@@ -796,7 +797,8 @@
                }
        }

-       if(against->SpecAttacks[IMMUNE_MELEE_EXCEPT_BANE]){
+       // Pets should be able to hit bane only mobs
+       if(against->SpecAttacks[IMMUNE_MELEE_EXCEPT_BANE] && !GetOwner()){
                if(weapon_item){
                        if(weapon_item->BaneDmgBody == against->GetBodyType()){
                                banedmg += weapon_item->BaneDmgAmt;
Reply With Quote
  #2  
Old 08-20-2012, 09:45 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

wasn't there a Rule in DB that switched that on and off?
I am pretty sure it was implemented years ago.
Reply With Quote
  #3  
Old 08-20-2012, 10:09 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Code:
common % grep -i Pet ruletypes.h
RULE_BOOL( Character, FeignKillsPet, false)
RULE_CATEGORY( Pets )
RULE_REAL( Pets, AttackCommandRange, 150 )
RULE_BOOL (World, IsGMPetitionWindowEnabled, false)
RULE_INT ( Combat, PetAttackMagicLevel, 30)
RULE_BOOL (NPC, UseItemBonusesForNonPets, true)
RULE_BOOL ( NPC, LiveLikeEnrage, false) // If set to true then only player controlled pets will enrage
RULE_INT ( Aggro, PetSpellAggroMod, 10 )
Not that I can tell :/
Reply With Quote
  #4  
Old 08-20-2012, 10:12 PM
Caryatis2
Banned
 
Join Date: May 2009
Location: earth
Posts: 13
Default

Rules dont do anything if they arent implemented in the code, so if thats the correct code its irrelevant.
Reply With Quote
  #5  
Old 08-20-2012, 10:16 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
Originally Posted by Caryatis2 View Post
Rules dont do anything if they arent implemented in the code, so if thats the correct code its irrelevant.
There are multiple places that Bane is checked, I don't remember seeing anything about a rule for Pet v. Bane. Either way, if there is a rule that I missed, it should probably be set to default since the live like behavior is that pets can hit bane w/o bane weapons.
Reply With Quote
  #6  
Old 08-20-2012, 10:37 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

here you go:

from May 2009 changelog file
KLS: Added Special Attack hit magical 'm' and special attack hit bane 'b', will allow the mobs affected to hit things that require magical or bane weapons to hit



All you need to do is give all pets "b" flag and they will hit bane
at least it should work this way
Reply With Quote
  #7  
Old 08-21-2012, 12:04 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
Originally Posted by ChaosSlayerZ View Post
here you go:

from May 2009 changelog file
KLS: Added Special Attack hit magical 'm' and special attack hit bane 'b', will allow the mobs affected to hit things that require magical or bane weapons to hit



All you need to do is give all pets "b" flag and they will hit bane
at least it should work this way
Well then, I guess we can ignore this then :P
Reply With Quote
Reply


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 06:17 PM.


 

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