LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
monster_pos = {x=668, y=1049, z=6}
temple_pos = {x=841, y=1013, z=7}
success = math.random(1, 7)
if item.itemid == 1945 and success == 1 then
if doPlayerRemoveMoney(cid, 50000) then
doTransformItem(item.uid, 1946)
addEvent(summonMonster0, 3 * 1000)
doTeleportThing(cid, monster_pos, TRUE)
else
doCreatureSay(cid, "You don't have enough money !", TALKTYPE_ORANGE_1)
end
elseif item.itemid == 1946 then
doTransformItem(item.uid, 1945)
else
doCreatureSay(cid, "Robin Hood did not welcome you this time!", TALKTYPE_ORANGE_1)
doPlayerRemoveMoney(cid, 50000)
end
return true
end
function summonMonster0()
doSummonCreature('Robin Hood', monster_pos)
doSendMagicEffect(monster_pos, 10)
doCreatureSay(cid, "MISSION: Kill Robin Hood. You have five minutes.", TALKTYPE_ORANGE_1)
addEvent(countDown, 20 * 1000)
end
function countDown()
doTeleportThing(cid, temple_pos, TRUE)
end
ERROR:
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/raid/robinhood.lu
Description:
(luaDoTeleportThing) Thing not found
Anyone know what the problem is?
REP++ for those who can help me out!