destroyer667
Member
- Joined
- Nov 21, 2007
- Messages
- 290
- Reaction score
- 6
For some reason this script isn't working. Using Avesta 0.6.3 (Uniqueid on grave stone 1408 is 9901 i checked)
i get 0 errors in console when i use blood on grave stone.
i get 0 errors in console when i use blood on grave stone.
Lua:
<action uniqueid="9901" script="poi/bloodgrave.lua"/>
Lua:
local newpos = {x = 32791, y = 32332, z = 10}
local splash = {x = 32791, y = 32334, z = 9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local blood = getTileItemById(splash, 2025)
if blood.uid > 0 and blood.type == 2 then
doRemoveItem(blood.uid)
doSendMagicEffect(getThingPos(cid), CONST_ME_DRAWBLOOD)
doTeleportThing(cid, newpos)
doCreatureSay(cid, 'Muahaha..',16)
doSendMagicEffect(newpos, CONST_ME_MORTAREA)
return 1
end
end
Last edited: