Page 1 of 1

Creating a Custom Effect lua (need help)

Posted: Mon Feb 08, 2016 1:17 am
by Izzac
In the status_effects.sql it is hinted
:Effect icons in packet can go from 0-767, so no custom effects should go in that range.

status after 767 seem to be custom "I'm assuming" cause Meditate gives the AGL BOOST icon. which is ID 801

I decided to make a experiement and created a custom lua to Ability folder/Effects folder/Status.lua/Status_Effects.sql, and the Tables to admin mySQL > status_effects 802 added table fire_shot

I made a effect to Corsairs Fire shot by adding these

Effect: fire_shot.lua (added and non existent)
example> http://pastebin.com/14x76LGP

Ability: fire_shot.lua (existent, and linked effect <custom>)
Example> http://pastebin.com/Gsasxzd6

Notes: added EFFECT_FIRE_SHOT and default list of Status on ability use.

Status_effects.sql: line 802 has been added
example: INSERT INTO `status_effects` VALUES (802,'fire_shot',32,0,0,0,0,0,0,0);

Status.lua: added line 802
example: EFFECT_FIRE_SHOT = 802 -- Custom effect for Corsair shot (Fire)


ended note........

After setting this up, the status effects still won't apply in game with @addeffect 802

MSG: Does not affect .

I would like to get this working so i can create a custom system to corsairs abilities.

A side note: the effects work on the shot except the custom.

Re: Creating a Custom Effect lua (need help)

Posted: Mon Feb 08, 2016 1:52 am
by kjLotus
status_effect.h:693 - did you increase MAX_EFFECTID? if you chose 802 for your effect, the max needs to be 803. also keep in mind that addeffect might not show it, because the command tries to use icon 802 for the effect, which doesn't exist of course