Creating a Custom Effect lua (need help)
Posted: Mon Feb 08, 2016 1:17 am
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.
: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.