I'm trying to make it so I use a pick on a blood stain (ID 1901) and it teleports you to this position.
The Blood Stain has the action ID 1000 in the map editor - "16:22 You see a bloodspot.
ItemID: [1901], ActionID: [1000]."
2553 is a pick.
The XML is
and it's not working at all, no errors or anything
Can anyone help?
The Blood Stain has the action ID 1000 in the map editor - "16:22 You see a bloodspot.
ItemID: [1901], ActionID: [1000]."
2553 is a pick.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = { x =1048 , y = 1003 , z = 7 }
if itemEx.actionid == 2553 then
doTeleportThing(cid, pos)
end
return true
end
XML:
<action actionid="1000" event="script" value="quests/use_pick.lua"/>
and it's not working at all, no errors or anything
Can anyone help?