What does some of the variables mean in this line?
target:addStatusEffect(EFFECT_FOOD,0,0,===10800===,4350);
I intentionally put spaces there to show where im having needs to understand
Food explanation assistance
Re: Food explanation assistance
From status_effect.cpp line 31:
Code: Select all
EFFECT id, uint16 icon, uint16 power, uint32 tick, uint32 duration, uint32 subid, uint16 subPower, uint16 tier
-- Whasf
Re: Food explanation assistance
Thank you Wasf, Because of this support i finally understood a bit of the Enchantment effect.
But since I wrote the script and even made the lua for the Item, It doesn't seem to execute properly.
I'll leave the script here maybe someone or you can assist me to why this lua won't work and execute as an Item.
I been trying to make the enchantment gear work for hydra pieces.
Lua Link: http://www.mediafire.com/download/yr9o4 ... arness.rar
But since I wrote the script and even made the lua for the Item, It doesn't seem to execute properly.
I'll leave the script here maybe someone or you can assist me to why this lua won't work and execute as an Item.
I been trying to make the enchantment gear work for hydra pieces.
Lua Link: http://www.mediafire.com/download/yr9o4 ... arness.rar
Re: Food explanation assistance
In OnEffectLoose you should delete the mod, not add it again (probably a copy/paste error on your part).
-- Whasf
Re: Food to enchantment, dedication to enchantment, custom t
IS there anyway to fix the enchantment effect? I tried using it to the item as a food base without the food effect, just replaced the effect with enchantment, I also tried making a different name non-existent lua effect, and linked it to that item, I also have tried using a similar setup to Dedication effect to item. The Effect lua for Enchantment is erased and blank like Dedication and Food, they to are blank lua's.
So the question is, is it broken? cause i tried many ideas to get it working.
So the question is, is it broken? cause i tried many ideas to get it working.
Re: Food explanation assistance
your script's onEffectGain/Lose won't run because your EFFECT_ENCHANTMENT is sending it to the script for dragon steak (that's what the 4350 is)
Re: Food explanation assistance
Ahh i see, so it was linking to a SQL as a usable, i was wondering what the numbers were, for. So i tried this method.
It still doesn't seem to use though i finally got the right ID from usable item's SQL.
http://pastebin.com/NVTiZe2f
Edite#1: It Is working now ^^
thanks for pointing that out Kj
It still doesn't seem to use though i finally got the right ID from usable item's SQL.
http://pastebin.com/NVTiZe2f
Edite#1: It Is working now ^^
thanks for pointing that out Kj