Help - Knockdown script

Discussions on development of both the EQ2Emulator LUA Script Engine and Script specifications

Moderator: Team Members

Post Reply
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:

Help - Knockdown script

Post by John Adams » Mon Sep 30, 2013 12:42 am

Maybe it's late, maybe I've sat here too long this weekend :mrgreen: but for the life of me, I cannot remember how to simply knock down an opponent. I'm pretty sure it's just the visual effect of the spell itself, so that part I might get. But what "damage type" would that be to cause this list of effects?

Code: Select all

    --Apply Knockdown
	--Throws target back
	--Stuns target
	--Blurs vision of target
	--Except Epic
I think the throws back is just the visual, but what damage is stun? and I guess we do not have blur vision yet?

I'm also assuming "except epic" would be in the code, but do we need a flag in the script to check?

Thanks for advice.

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

Re: Help - Knockdown script

Post by thefoof » Mon Sep 30, 2013 12:57 am

Hmm well I know epics tend to be affected by these, just for a shorter amount of time and they gain immunity to the effect for awhile after. We probably could hardcode a passive spell to be cast and check for this on calling these effects.

lua:AddControlEffect() - is that what you're looking for?

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

Re: Help - Knockdown script

Post by Jabantiz » Mon Sep 30, 2013 1:00 am

Stun would be AddControlEffect(). As for knock back there is this opcode "OP_PerformPlayerKnockbackMsg" which we don't handle, for a NPC it is probably a visual state like you said, no clue what blurs vision does to NPC's though

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: Help - Knockdown script

Post by John Adams » Mon Sep 30, 2013 1:12 am

Hopefully blurring them makes them less accurate? HA :)

Thanks for the response. I'll check it out tomorrow, see if I can get ONE spell scripted.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests