Spellscale not work in Perl?
Code:
quest::modifynpcstat("spellscale",900); Anyone else have problems with this? I've scaled all stats on an NPC.. but when it comes to spells it only takes the spellscale from the database value set for that NPC. Side note... my source is up to date as well. |
Quote:
This is what I used in my stuff the day I put it in: Code:
$NPC->ModifyNPCStat("spellscale", $SD[$NPC->GetLevel()][$NTYPE][22] * $SZD{$zonesn}[$instanceversion][9]); |
Thank you Akkadius I will try using entity like that.
|
Hmm.. did what you said... maybe its an issue with the NPC.
I am trying to scale "Spellscale" on player pets. I tried just scaling the pets spell damage with the database .. set it to 150 and still doesn't work. Works for normal NPCs though... I spawned the pet with #dbspawn 1315 (the pet as an NPC it works!) The NPC as a Player PET the scaling DOES NOT work. So I wasn't doing it wrong.. just seems to be a problem somewhere in the code for player pets maybe? I'll have to check it later. |
From Attack.cpp
Code:
if(other->IsNPC() && !other->IsPet()) This makes spellscale NOT work for pets I am guessing. Is this intended? |
I edited that and it didn't help... still not sure why I can't spellscale Player pets. (database and quest don't work)
|
stupid question - what IS a spellscale? what it suppose to do?
|
Scales how much damage an NPC will do with spells.
100 = Normal damage 50 = Half damage 150 = 50% more dmg.. ect ect You can scale damage with Perl in a boss fight for example. I am trying to figure out why spellscale doesn't work for pets. |
It was originally intended to perform scaling on the fly through Perl scripts.
So one issue is making entirely new spell sets for NPC's (Fuck that). Use a Cleric spell set and you can scale it for example, have it do 5x the damage if you wish (500) and you can reuse the same spellset. healscale does the same thing but for only healing spells. Natedog, pet is derived from mob so you may need to do a $mob->CastToNPC()->ModifyNPCStat("stuff", value); Don't take my syntax as verbatim, you may want to check the reference sheet but that is how you would handle it for pets. |
got it ;)
how does it works with dots and debuffs? do those also get scaled? non stat buffs? like SoW? |
Quote:
That covers like 80% of spells that can even make use of scaling, SoW is not a good example, buffs aren't really either because NPC's are like 1% impacted by a stat buff when it comes to scaling. However if you are going to get tricky with fights such as using charms or other fancy spells you are usually going to tie that into your fight specially. |
One thing to note though Akkadius... spellscale on pets doesn't even work through the database.
Will try Casting it though. (Talking player pets btw) |
Quote:
|
The perl handling works... but the damage never scales. (For player pets that is) :(
|
Quote:
|
All times are GMT -4. The time now is 09:37 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.