Code:
function onUse(cid, item, frompos, item2, topos)
if topos.x == 65535 or not(topos.x == 538 and topos.y == 751 and topos.z == 11) then
doPlayerSendCancel(cid, 'Put the metal on the anvil first.')
return 1
end
doSendMagicEffect(topos, 2)
if item2.itemid == 2225 then
doTransformItem(item2.uid, 2088)
return 1
end
end
i want the key to get a action id..