Guardian Spells

Creating the Spells and Abilities for EQ2Emulator

Moderator: Team Members

Dello0000
Posts: 175
Joined: Fri May 30, 2014 9:18 am
EQ2Emu Server: MHM Laneth
Characters: Dello - Dellos
Location: Scotland!
Contact:

Re: Guardian Spells

Post by Dello0000 » Thu Jun 12, 2014 5:53 am

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.
I cant see it killing the server but it may have an incorrect tooltip. Muhahaha :twisted:

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Guardian Spells

Post by Jabantiz » Thu Jun 12, 2014 10:37 am

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.

User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

Re: Guardian Spells

Post by thefoof » Thu Jun 12, 2014 12:26 pm

Make sure the AOE's radius is set properly, and max targets.

Dello0000
Posts: 175
Joined: Fri May 30, 2014 9:18 am
EQ2Emu Server: MHM Laneth
Characters: Dello - Dellos
Location: Scotland!
Contact:

Re: Guardian Spells

Post by Dello0000 » Thu Jun 12, 2014 5:09 pm

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
I cant see it killing the server but it may have an incorrect tooltip. Muhahaha :twisted:

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Guardian Spells

Post by Zcoretri » Thu Jun 12, 2014 5:30 pm

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.

User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

Re: Guardian Spells

Post by thefoof » Thu Jun 12, 2014 5:30 pm

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.

Dello0000
Posts: 175
Joined: Fri May 30, 2014 9:18 am
EQ2Emu Server: MHM Laneth
Characters: Dello - Dellos
Location: Scotland!
Contact:

Re: Guardian Spells

Post by Dello0000 » Thu Jun 12, 2014 5:40 pm

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.
I cant see it killing the server but it may have an incorrect tooltip. Muhahaha :twisted:

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Guardian Spells

Post by John Adams » Sat Jun 14, 2014 8:46 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest