Page 3 of 3

Re: Guardian Spells

Posted: Thu Jun 12, 2014 5:53 am
by Dello0000
AoE's dont seem to work for me (Just DD with a radius) Now im guessing ill need something in the script instead of Target? AoE maybe? Like i said i dunno and its not working, if its imlemented can you tell me the code, in fact, just edit this one for me and tell me any other info ill need in the other tabs please :p

Code: Select all

function cast(Caster, Target, DDType, MinDmg, MaxDmg)

    if MaxDDVal ~= nil and MinDDVal < MaxDDVal then
        SpellDamage(Target, DDType, math.random(MinDDVal, MaxDDVal))
    else
        SpellDamage(Target, DDType, MinDDVal)
    end
end
[EDIT]Tried replacing Target / DDType with AoE, didn't break the spell but it didn't work, so I'm out of ideas at the moment, i might find a working aoe on a scout but until i get to them ill leave the tank ones.

Also, here http://www.eq2emulator.net/wiki/index.p ... pellDamage has the parameter for critical hits, I'm looking for Hit Bonus, Could that be scripted or would that be added to the Tiers tab? Because 99.99 still miss. or would it just be 99? please explain that, and also if it works :)

[EDIT]http://eq2emulator.net/wiki/index.php/L ... trolEffect At the bottom there is a list of the control types, I take it those ones work but other ones like knockdown, throwback and blur vision ect don't? or if they do what are there ID's?

Thanks again.

Re: Guardian Spells

Posted: Thu Jun 12, 2014 10:37 am
by Jabantiz
No need to change any thing for an AoE spell, script will look the same as a direct damage spell. If it is not working there is something wrong in the server we will have to check out.

Never seen a spell miss 99% of the time, what spell are you using and on whom, also your level and the targets level?

Knockback
BlurVision
These functions really only effect the player though.

Re: Guardian Spells

Posted: Thu Jun 12, 2014 12:26 pm
by thefoof
Make sure the AOE's radius is set properly, and max targets.

Re: Guardian Spells

Posted: Thu Jun 12, 2014 5:09 pm
by Dello0000
Thanks guys.

The Hit Bonus with a value of 99% will still miss about the same as if the hit bonus was 0.

AoE's did work, if im correct in thinking, but they dont seem to work now. If you look at the guardian and the berserker topics ull see the names of the AoE's, Guardian "Assault" for instance.

Also, iv got a char ingame but cant restart the server "There is already a pending restart. Please wait." i think the server has got some startup issues. :p

Re: Guardian Spells

Posted: Thu Jun 12, 2014 5:30 pm
by Zcoretri
Dello0000 wrote:Thanks guys.
The Hit Bonus with a value of 99% will still miss about the same as if the hit bonus was 0.
I doubt hit bonus is coded in.

Re: Guardian Spells

Posted: Thu Jun 12, 2014 5:30 pm
by thefoof

Code: Select all

    function cast(Caster, Target, DDType, MinDmg, MaxDmg)

        if MaxDDVal ~= nil and MinDDVal < MaxDDVal then
            SpellDamage(Target, DDType, math.random(MinDDVal, MaxDDVal))
        else
            SpellDamage(Target, DDType, MinDDVal)
        end
    end
The problem is your script I think. MaxDDVal and MinDDVal aren't declared so it never gets past the MaxDDVal ~= nil. Try this.

Code: Select all

    function cast(Caster, Target, DDType, MinDmg, MaxDmg)
            SpellDamage(Target, DDType, MinDmg, MaxDmg)
    end
EDIT: It gets past the first check because of the else *facepalm*, but the point about param names is still valid. MinDDVal == 0.

Re: Guardian Spells

Posted: Thu Jun 12, 2014 5:40 pm
by Dello0000
Thanks for spotting that foof!

Script Author : John Adams

I guess we know who to blame :D

But yeah, i assumed it was just the normal MinVal, MaxVal not DDVal.

Iv changed the script, should work but im tired and going to bed now.

Also, bruiser doesn't have many spells so ill skip that class and start on the monk tomorrow, iv done a few starting from scratch so that all the tiers are ingame before claiming them finished. ill post a topic on the monk tomorrow. :)

[EDIT] http://eq2emulator.net:9301/eq2db/edito ... ell_script doesnt work either, it may have something to do with range? and or target? Do AoE's damage around the caster if the target of the spell IS the caster? if target = caster, and range = 0 in order for it to work ill sort all the melee aoe's that arent working tomorrow along with continuing the monks ability's.

Good night.

Re: Guardian Spells

Posted: Sat Jun 14, 2014 8:46 am
by John Adams
Dello0000 wrote: Script Author : John Adams

I guess we know who to blame :D
You can try, but many scripts were automatically created as "placeholders" in 2008. My name was the default name (back when we used to use template.lua).