As some of you already know you need an vial of blood to get down to the pits of inferno, and i'm not so skilled at lua scripts.
Can someone tell me what is wrong in this code? I will be grateful.
actions.xml
Can someone tell me what is wrong in this code? I will be grateful.
PHP:
local newpos = {x=398, y=1385, z=9}
local splash = {x=398, y=1386, z=8}
local stoneUID = 20201
local bloodId = 2016
local bloodType = 2
function onUse(cid, item, frompos, item2, topos)
local blood = getThingfromPos(splash)
if item.uid == 20201 and item.itemid == 1409 and blood.itemid == 2016 and blood.type == 2 then
doTeleportThing(cid, newpos)
doSendMagicEffect(newpos, CONST_ME_TELEPORT)
else
end
end
actions.xml
PHP:
<action uniqueid="10201" script="PitsOfInferno/blood.lua" />