Morlad
Mega USER
Hi ..
My script ... kilck scroll and teleport..
data/actions/tpscoll.lua
Actions.xml
Rep plx.
My script ... kilck scroll and teleport..
PHP:
local tpPos = {x=1000, y=1000, z=7} -- Where teleporting
data/actions/tpscoll.lua
PHP:
local tpPos = {x=1000, y=1000, z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getCreatureCondition(cid, CONDITION_INFIGHT) == true then
doRemoveItem(item.uid, 1)
end
doTeleportThing(cid, tpPos)
return TRUE
end
Actions.xml
PHP:
<action itemid="8300" event="script" value="tpscroll.lua"/>
Rep plx.
Last edited: