[DIALOG d_cook_ruo]
300,180
src.closealldialogs

PAGE 1
resizepic 10 10 3600 500 400
checkertrans 10 10 500 400
button 30 40 4005 4006 1 0 2
dtext 65 40 1152 Strength cake
button 30 70 4005 4006 1 0 3
dtext 65 70 1152 Dextery cake
button 30 100 4005 4006 1 0 4
dtext 65 100 1152 Intelligence cake
button 30 130 4005 4006 1 0 5
dtext 65 130 1152 Maxhits cheese
button 30 160 4005 4006 1 0 6
dtext 65 160 1152 Maxmana cheese
button 30 190 4005 4006 1 0 7
dtext 65 190 1152 Maxstamina cheese
button 30 220 4005 4006 1 0 8
dtext 65 220 1152 Magical resistance chicken
button 30 250 4005 4006 1 0 9
dtext 65 250 1152 Enchanted Apple

resizepic 30 290 3600 400 110
checkertrans 30 290 400 110
IF !(<ISEMPTY <CTAG.LASTITEM.COOK>>)
dtext 50 310 88 Last item: <SERV.ITEMDEF.<CTAG.LASTITEM.COOK>.NAME>
dtext 50 330 88 Resources: <SERV.ITEMDEF.<CTAG.LASTITEM.COOK>.RESMAKE>
button 50 360 4005 4006 1 0 1
dtext 80 360 88 Make last
tilepic 300 330 <SERV.ITEMDEF.<CTAG.LASTITEM.COOK>.ID>
ENDIF

resizepic 10 400 3600 500 100
checkertrans 10 400 500 100
dtext 220 410 33 Messages:
IF !(<ISEMPTY <CTAG.RUO.MSG>>)
dhtmlgump 30 430 440 60 0 0 <DEF.BFONT_WHITE><CTAG.RUO.MSG>
ENDIF

[DIALOG d_cook_ruo BUTTON]
ON=0
CTAG.RUO.MSG

ON=1
IF !(<CANMAKESKILL <CTAG.LASTITEM.COOK>>)
CTAG.RUO.MSG You don't have the necessary skill levels required to make this item .
ELIF !(<CANMAKE <CTAG.LASTITEM.COOK>>)
CTAG.RUO.MSG You don't have the necessary materials to make this item.
ELSE
IF (<ACTION>==-1)
MAKEITEM <CTAG.LASTITEM.COOK>
CTAG.RUO.MSG You start to craft the item.
ELSE
CTAG.RUO.MSG You can only do this when you're less occupied.
ENDIF
ENDIF
SDIALOG d_cook_ruo

ON=2 9
CALL RUO_COOK_SELECT <HVAL <ARGN>-1>
IF !(<FINDID.i_panela_cook>)
CTAG.RUO.MSG You must have a bowl to make this item.
ELIF !(<CANMAKESKILL <LOCAL.ITEM>>)
CTAG.RUO.MSG You don't have the necessary skill levels required to make this item (<SERV.ITEMDEF.<LOCAL.ITEM>.SKILLMAKE>).
ELIF !(<CANMAKE <LOCAL.ITEM>>)
CTAG.RUO.MSG You don't have the necessary materials to make this item (<SERV.ITEMDEF.<LOCAL.ITEM>.RESMAKE>)
ELSE
IF (<ACTION>==-1)
MAKEITEM <LOCAL.ITEM>
CTAG.RUO.MSG You start to craft the item.
CTAG.LASTITEM.CARP <LOCAL.ITEM>
ELSE
CTAG.RUO.MSG You can only do this when you're less occupied.
ENDIF
ENDIF
SDIALOG d_cook_ruo

[FUNCTION RUO_COOK_SELECT]
IF (<ARGN>==1)
LOCAL.ITEM=i_bolo_str
ELIF (<ARGN>==2)
LOCAL.ITEM=i_bolo_dex
ELIF (<ARGN>==3)
LOCAL.ITEM=i_bolo_int
ELIF (<ARGN>==4)
LOCAL.ITEM=i_cheese_maxhits
ELIF (<ARGN>==5)
LOCAL.ITEM=i_cheese_maxmana
ELIF (<ARGN>==6)
LOCAL.ITEM=i_cheese_maxstam
ELIF (<ARGN>==7)
LOCAL.ITEM=i_chicken_magicresist
ELIF (<ARGN>==8)
LOCAL.ITEM=i_enchanted_apple
ENDIF

[EOF]