Food explanation assistance

Post Reply
Izzac
Posts: 31
Joined: Sat Sep 06, 2014 1:49 am

Food explanation assistance

Post by Izzac » Thu Jan 28, 2016 6:08 pm

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

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Food explanation assistance

Post by whasf » Thu Jan 28, 2016 7:06 pm

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

Izzac
Posts: 31
Joined: Sat Sep 06, 2014 1:49 am

Re: Food explanation assistance

Post by Izzac » Fri Jan 29, 2016 12:34 am

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

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Food explanation assistance

Post by kjLotus » Fri Jan 29, 2016 1:58 am


Izzac
Posts: 31
Joined: Sat Sep 06, 2014 1:49 am

Re: Food explanation assistance

Post by Izzac » Fri Jan 29, 2016 2:47 pm

http://pastebin.com/qem3D9pn


Didn't know how to share the info, so thank you for pointing that out.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Food explanation assistance

Post by whasf » Fri Jan 29, 2016 3:59 pm

In OnEffectLoose you should delete the mod, not add it again (probably a copy/paste error on your part).
-- Whasf

Izzac
Posts: 31
Joined: Sat Sep 06, 2014 1:49 am

Re: Food to enchantment, dedication to enchantment, custom t

Post by Izzac » Fri Jan 29, 2016 5:56 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Food explanation assistance

Post by kjLotus » Fri Jan 29, 2016 7:45 pm

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)

Izzac
Posts: 31
Joined: Sat Sep 06, 2014 1:49 am

Re: Food explanation assistance

Post by Izzac » Sat Jan 30, 2016 8:28 pm

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

Post Reply