ON INIT {
 SETNAME [description_pick_axe]
 SET_MATERIAL WOOD
 SET_GROUP PROVISIONS
 SET_GROUP "BLUNT"
 SET_PRICE 150
 SET_STEAL 80
PLAYERSTACKSIZE 5
 //SET_THROW_DAMAGE 2
 SET_WEIGHT 1
 ACCEPT
}

ON INVENTORYUSE {
 IF (^INPLAYERINVENTORY != 1) ACCEPT
 PLAY pickaxe
 SENDEVENT -fir CUSTOM 300 "PICKAXE"
 TIMERtest -m 1 800 GOTO useless
 ACCEPT
}

ON CUSTOM {
IF (^$PARAM1 == "USED") TIMERtest OFF
ACCEPT
}

>>useless
play "noDig"
ACCEPT

//    important
//rajouter le test sur la direction du joueur. initialiser la variable dans le script player global