Feel free to edit LOL
[ITEMDEF i_ore_throwable]
DEFNAME=i_ore_throwable
ID=i_ore_iron
NAME=throwable ore
WEIGHT=1
TYPE=t_weapon_fence
DAM=10,15
SKILL=MINING 60.0
REQSTR=1
TWOHANDS=N
ON=@Create
HITPOINTS={2 5}
ON=@DCLICK
IF (<SRC.mining> > 100.0)
SRC.SYSMESSAGE Whom do you wish to throw this iron ore at?
TARGET
RETURN 1
ELSEIF (<SRC.mining> < 100.0)
SRC.SYSMESSAGE You don't have enough mining skill to use this.
RETURN 1
ENDIF
ENDIF
ON=@TARGON_CHAR
SRC.ANIM 11
SOUND 0145
SRC.TARG.EFFECT=0,0f51,2,1,0
SRC.TARG.HITPOINTS=<SRC.TARG.HITPOINTS>+(-10)
SRC.CONSUME 1 i_ore_throwable
SRC.SYSMESSAGE You have thrown an ore into <SRC.TARG.NAME>.
SRC.TARG.SYSMESSAGE <src.name> threw an iron ore at you.
RETURN 1
ON=@TARGON_SELF
SRC.SYSMESSAGE Why would you throw an iron ore at yourself?
RETURN 1
ON=@TARGON_ITEM
SRC.SYSMESSAGE That isn't a creature.
RETURN 1
ON=@TARGON_GROUND
RETURN 1
CATEGORY=JOYCE ITEMS
SUBSECTION=Blacksmiths
DESCRIPTION=Ore (Small Pile)