Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #16  
Old 05-19-2013, 10:59 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

$npc->SetSpellFocusDMG()
$npc->SetSpellFocusHeal()

These are alternative functions that I added prior to Akka's code (and will stack with the dbase spell scale)

They work fine.

100 = 100% focus ect

Negative values can be used to reduce spell damage or even cause spells to heal if under 100.

Will work on any NPC, pets included.
Reply With Quote
  #17  
Old 05-20-2013, 01:24 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Neat I will give that a try for player pets!



That is exactly what I was looking for thanks Keyan!

Kind of weird for the other way of doing this excludes player pets =(
Reply With Quote
  #18  
Old 05-24-2013, 02:58 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Well I just so happened to test this today and it does indeed work.

You just need to make sure you cast:

$CT was me getting my pet target, really this would affect any NPC I targeted

Code:
sub EVENT_TARGET_CHANGE{
	if($client->GetAggroCount() == 0){
		### Test Scaling ###
		if($name eq "Akkasham"){
			$CT = $client->GetTarget();
			$CT->CastToNPC()->ModifyNPCStat("max_hp", "10000000");
			$CT->CastToNPC()->SetHP($CT->GetMaxHP());
		}
        }
}
Reply With Quote
  #19  
Old 05-24-2013, 03:04 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

modifynpcstat works for sure on pets.. I already use it to mod ALL of their stats

except Spellscale / healscale

I use $npc->SetSpellFocusDMG() for the scaling of spell damage though.
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 04:10 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