This script is the POI, serves to use the vial of blood in gravestone and be teleportado to another place, more does not work with me. Could Someone tell me in detail what are these Positions???
./data/movements/movements.xml
./data/movements/scripts/gravestone.lua
The fact is that I use the vial and nothing happens, maybe I have the wrong positions by not knowing, help me!
./data/movements/movements.xml
XML:
<movevent type="AddItem" tileitem="1" uniqueid="10200" event="script" value="gravestone.lua"/>
LUA:
function onAddItem(moveitem, tileitem, pos, cid)
if getItemInfo(moveitem.itemid).group == 11 then
doRemoveItem(moveitem.uid)
if moveitem.itemid == 2016 and moveitem.type == 2 then
[B]local v = getTopCreature({x=847,y=1281,z=8}).uid[/B]
if not isPlayer(v) then
[B]v = getTopCreature({x=848,y=1281,z=8}).uid[/B]
end
if isPlayer(v) then
doSendMagicEffect(getThingPos(v), CONST_ME_DRAWBLOOD)
[B]doTeleportThing(v, {x=847, y=1280, z=9})
doSendMagicEffect({x=847, y=1280, z=9}, 10)[/B]
doCreatureSay(v, "Muahahahaha...", TALKTYPE_ORANGE_1, false, 0, pos)
doCreatureSay(v, "Muahahahaha...", TALKTYPE_ORANGE_1)
end
end
end
end
The fact is that I use the vial and nothing happens, maybe I have the wrong positions by not knowing, help me!