//
//   Svay's Forge Mixer v0.1b
//

[ITEMDEF i_mixer]
NAME=Forge Mixer
ID=i_forge
ON@CREATE
ATTR=00010
COLOR=00b00
CATEGORY=SPECIAL
SUBSECTION=Forge Mixer
DESCRIPTION=Forge Mixer

ON=@DCLICK
DIALOG d_mixer
return 1

[DIALOG d_mixer]
50,50 //
gumppic 56 32 2619
gumppic 100 32 2801
gumppic 527 32 2602
gumppic 56 75 2603
gumppic 100 75 2604
gumppic 527 75 2605
gumppic 56 391 2606
gumppic 100 391 2607
gumppic 527 391 2608
gumppic 235 160 1418
resizepic 83 77 3000 300 300 
text 250 50 1674 0
text 100 77 98 1

button 83 80 4005 4005 1 0 1

[DIALOG d_mixer TEXT]
Forge Mixer Menu
Iron + Rusty

[DIALOG d_mixer BUTTON]
ONBUTTON=1
IF (<SRC.RESTEST 5 i_ingot_iron> && <SRC.RESTEST 5 i_ingot_rusty> && (<src.mining> >= 500))
        SRC.CONSUME=5 i_ingot_iron
        SRC.CONSUME=5 i_ingot_rusty
        SRC.NEWITEM=i_ingot_copper
        SRC.ACT.AMOUNT=5
        SRC.ACT.BOUNCE
        SRC.MESSAGE That will be 5 Iron and 5 Rusty ingots.
        SOUND 0F7
        RETURN 1
ELSE
SRC.MESSAGE Fuck you
ENDIF