[TYPEDEF T_FOOD_MENU_FIX]
ON=@Dclick
IF (<TOPOBJ.UID>==<SRC>)
SRC.CTAG.RUO.MSG
SRC.SDIALOG d_cook_ruo
RETURN 1
ENDIF

[ITEMDEF i_bolo_str]
ID=i_cake
DEFNAME=i_bolo_str
NAME=Strenght Cake
TYPE=t_food_magica
VALUE=300
WEIGHT=1
SKILLMAKE=SKILL_COOKING 75.0,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=3 i_flour_sack,3 i_reag_mandrake_root

ON=@Create
COLOR=023
MORE1=<EVAL <SRC.COOKING>/100>
TAG.ACAO=MODSTR

ON=@ClientToolTip
SRC.ADDCLILOC 1060485,<EVAL <MORE1>>

[ITEMDEF i_bolo_dex]
ID=i_cake
NAME=Dextery Cake
TYPE=t_food_magica
VALUE=300
WEIGHT=1
SKILLMAKE=SKILL_COOKING 75.0,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=3 i_flour_sack,3 i_reag_blood_moss

ON=@Create
COLOR=0ad
MORE1=<EVAL <SRC.COOKING>/100>
TAG.ACAO=MODDEX

ON=@ClientToolTip
SRC.ADDCLILOC 1060409,<EVAL <MORE1>>

[ITEMDEF i_bolo_int]
ID=i_cake
NAME=Intelligence Cake
TYPE=t_food_magica
VALUE=300
WEIGHT=1
SKILLMAKE=75.0 SKILL_COOKING,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=3 i_flour_sack,3 i_reag_nightshade

ON=@Create
COLOR=3
MORE1=<EVAL <SRC.COOKING>/100>
TAG.ACAO=MODINT

ON=@ClientToolTip
SRC.ADDCLILOC 1060432,<EVAL <MORE1>>

[ITEMDEF i_cheese_maxhits]
ID=i_cheese_wheel
NAME=Life Cheese
TYPE=t_food_magica
VALUE=300
WEIGHT=1
SKILLMAKE=SKILL_COOKING 83.0,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=1 i_cheese_wheel,5 i_potion_heal

ON=@Create
COLOR=023
MORE1=<EVAL (<SRC.COOKING>/100)*3>
TAG.ACAO=MAXHITS

ON=@ClientToolTip
SRC.ADDCLILOC 1060431,<EVAL <MORE1>>

[ITEMDEF i_cheese_maxmana]
ID=i_cheese_wheel
NAME=Magic Power Cheese
TYPE=t_food_magica
SKILLMAKE=SKILL_COOKING 83.0,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=1 i_cheese_wheel,5 i_potion_mana

ON=@Create
COLOR=3
MORE1=<EVAL (<SRC.COOKING>/100)*3>
TAG.ACAO=MAXMANA

ON=@ClientToolTip
SRC.ADDCLILOC 1060439,<EVAL <MORE1>>

[ITEMDEF i_cheese_maxstam]
ID=i_cheese_wheel
NAME=Haste Cheese
TYPE=t_food_magica
SKILLMAKE=SKILL_COOKING 83.0,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=1 i_cheese_wheel,5 i_potion_refresh

ON=@Create
COLOR=0ad
MORE1=<EVAL (<SRC.COOKING>/100)*3>
TAG.ACAO=MAXSTAM

ON=@ClientToolTip
SRC.ADDCLILOC 1060484,<EVAL <MORE1>>

[ITEMDEF i_chicken_magicresist]
ID=i_chicken_leg
NAME=Magic Resistance Chicken
TYPE=t_food_magica
SKILLMAKE=SKILL_COOKING 90.0,SKILL_TASTEID 100.0,T_FOOD_MENU_FIX
RESOURCES=1 i_bird_cooked,5 i_scroll_bless

ON=@Create
COLOR=07a1
MORE1=<EVAL <SRC.COOKING>/100>
TAG.ACAO=MAGICRESISTANCE

ON=@ClientToolTip
SRC.ADDCLILOC 1060451,Magic Resistance,<EVAL <MORE1>>

/////////////////////////////////

[TYPEDEF t_food_magica]
ON=@Dclick
IF (<SRC.FINDID.i_mem_food_magic>)
SRC.SYSMESSAGE You've already eaten something.
ELSE
SRC.FOOD += 10
IF (<SRC.FOOD> > <SRC.MAXFOOD>)
SRC.FOOD=<SRC.MAXFOOD>
ENDIF
TRY SRC.<TAG.ACAO>=<EVAL <SRC.<TAG.ACAO>>+<MORE1>>
SERV.NEWITEM i_mem_food_magic
SRC.EQUIP <NEW>
NEW.MORE1=<MORE1>
NEW.TAG.ACAO=<TAG.ACAO>
CONSUME 1
ENDIF
RETURN 1

////////////////////////////////

[ITEMDEF i_mem_food_magic]
ID=i_memory
NAME=mem food magic
TYPE=t_eq_script

ON=@Create
attr=attr_decay

ON=@Equip
TIMER=<EVAL 60*6>

ON=@Timer
TRY CONT.<TAG.ACAO>=<EVAL <CONT.<TAG.ACAO>>-<MORE1>>
REMOVE
RETURN 1

//////////////////////

[ITEMDEF i_panela_cook]
ID=i_bowl_wood
NAME=Bowl
TYPE=T_FOOD_MENU_FIX
RESOURCES=100 i_ingot_iron
SKILLMAKE=1000.0 SKILL_TINKERING
VALUE=50

[EOF]