Page 1 of 1
Food explanation assistance
Posted: Thu Jan 28, 2016 6:08 pm
by Izzac
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
Re: Food explanation assistance
Posted: Thu Jan 28, 2016 7:06 pm
by whasf
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
Re: Food explanation assistance
Posted: Fri Jan 29, 2016 12:34 am
by Izzac
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
Re: Food explanation assistance
Posted: Fri Jan 29, 2016 1:58 am
by kjLotus
Re: Food explanation assistance
Posted: Fri Jan 29, 2016 2:47 pm
by Izzac
http://pastebin.com/qem3D9pn
Didn't know how to share the info, so thank you for pointing that out.
Re: Food explanation assistance
Posted: Fri Jan 29, 2016 3:59 pm
by whasf
In OnEffectLoose you should delete the mod, not add it again (probably a copy/paste error on your part).
Re: Food to enchantment, dedication to enchantment, custom t
Posted: Fri Jan 29, 2016 5:56 pm
by Izzac
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.
Re: Food explanation assistance
Posted: Fri Jan 29, 2016 7:45 pm
by kjLotus
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
Posted: Sat Jan 30, 2016 8:28 pm
by Izzac
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