EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Spellscale not work in Perl? (https://www.eqemulator.org/forums/showthread.php?t=36846)

Kayen 05-19-2013 10:59 PM

$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.

NatedogEZ 05-20-2013 01:24 AM

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 =(

Akkadius 05-24-2013 02:58 AM

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());
                }
        }
}


NatedogEZ 05-24-2013 03:04 AM

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.


All times are GMT -4. The time now is 01:44 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.