function onUse(cid, item, fromPosition, itemEx, toPosition)
local thing = getThingfromPos({x=1001, y=1003, z=6, stackpos=1})
if thing.uid ~= 0 and isInArray({1, 2, 3}, getItemWeaponType(thing.uid)) then
if getTileItemById({x=999, y=1003, z=6}, 2156).uid ~= 0 then
if...