Jump to content
Sign in to follow this  
Guardian452

LazyScript help... does "ifKillShot" work?

Recommended Posts

I'm playing around with LazyScript and trying to make my own Form... but I'm having a little trouble with one of the modifiers.

An example in the LazyRogue bundle uses "ifKillShot" as a modifier for evisc, but in my own Form it's not doing anything. Instead I'm having it check to see if the target HP is below 20%.

Am I wrong in thinking that ifKillShot is supposed to determine if evisc will kill the target with 1 hit?

While the HP check works, I would imagine ifKillShot would compensate as I leveled and got stronger weapons and would then trigger at a higher amount of health left on the mob... right?

Here's my Form so far:

Spoiler

evasion-ifPlayer<50%hp
kick-ifTargetIsCasting
#evisc-ifKillShot
evisc-1cp-ifTarget<20%hp
snd-=1cp-ifNotHasBuff=snd
expose-2cp-ifTarget>50%hp-ifNotTargetHasDebuff=expose
evisc-5cp
ss

Thoughts?

Share this post


Link to post
Share on other sites
6 hours ago, kick1234567890 said:

Check the lua, addon commands are always defined there.

 

  Hide contents

lazy faggit

Thanks for the tip. I'll check it out.

No need for that last part tho. I doubt you walk around all day calling people that just for asking a question. If you do, much love to the next person that socks you in the jaw.

Share this post


Link to post
Share on other sites

Hello, trying to read into the lua code it looks as if lazyscript is relying upon Mobinfo2 addon for hp  values:

            if (not MobHealth_GetTargetCurHP) then
                if (not sayNothing) then
                    lazyScript.p(MOBINFO2_NOT_INSTALLED)
                end
                return nil
            end

Looks like an interesting addon though

 

Share this post


Link to post
Share on other sites
1 hour ago, wurzlsepp said:

Hello, trying to read into the lua code it looks as if lazyscript is relying upon Mobinfo2 addon for hp  values:

            if (not MobHealth_GetTargetCurHP) then
                if (not sayNothing) then
                    lazyScript.p(MOBINFO2_NOT_INSTALLED)
                end
                return nil
            end

Looks like an interesting addon though

 

I've never gotten an error for not having Mobinfo2. Seems like it also uses MobHealth... which I do have.

I didn't dig too far into the lua, since I can't follow the code all that well... but I'm guessing it uses that as part of the "Deathtimator" (or however it's spelled) to show how long until the mob kicks the bucket.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×