ibkfly
New Member
- Joined
- Jan 1, 2010
- Messages
- 69
- Reaction score
- 4
Lua:
function onStepIn(cid, item, position, lastPosition)
local portal = {x = 1375, y = 500, z = 9}
local finishedqueststorage = 14001
local player = Player(cid)
if (player:getStorageValue(finishedqueststorage) == 14001) then
doTeleportThing(player, portal)
doSendMagicEffect(portal, CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The magic field has thrown you into the daedric abyss!")
else
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You are not prepared for facing the dangers of the dungeon.")
end
return true
end
error in console as thread title says. Any suggestions?