<action itemid="2273" script="ground_uh.lua"/>
function onUse(cid, item, frompos, item2, topos)
if frompos.x ~= CONTAINER_POSITION then
doPlayerSendCancel(cid, "You cannot use this rune from the ground.")
return true
end
end
pos.z > 65000 something means it's in the inventory
pos.z <= 65000 something means that it's on the map
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2273 then
if frompos.x ~= CONTAINER_POSITION then
doPlayerSendCancel(cid, "You cannot use this rune from the ground.")
else
HOW TO RUN UH RUNE LUA SCRIPT FROM SPELLS HERE?
end
end
end
<action itemid="2273" script="ground_uh.lua"/>
function onUse(cid, item, frompos, item2, topos)
if frompos.x ~= CONTAINER_POSITION then
doPlayerSendCancel(cid, "You cannot use this rune from the ground.")
return true
end
end