• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Error Script

Naaano201

Member
Joined
Jun 5, 2011
Messages
241
Reaction score
8
Location
Barcelona
I hope somebody can help me, im writing the correct actionID and i'm getting this error.

Code:
[0:15:51.049] [Error - MoveEvents Interface]
[0:15:51.050] data/movements/scripts/azerus/yalahar_azerus_quest.lua:onStepIn
[0:15:51.050] Description:
[0:15:51.051] (luaGetThingFromPos) Tile not found

yalahar_azerus_quest.lua
Code:
function onStepIn(cid, item, position, fromPosition)

--Config-->
local starting = {x = 111, y = 749, z = 9, stackpos = 253}
local ending = {x = 129, y = 770, z = 9, stackpos = 253}
local checking = {x = starting.x, y = starting.y, z = starting.z, stackpos = starting.stackpos}
local queststatus = getPlayerStorageValue(cid, 102504) --Value ID DA QUEST QUANDO VOCE JA PEGO O ITEM
local player_pos_entrada = {x = 120, y = 768, z = 9}
--EndConfig-->

--Do not touch this--
if getPlayerLookDir(cid) == 0 then
newdir = 2
elseif getPlayerLookDir(cid) == 1 then
newdir = 3
elseif getPlayerLookDir(cid) == 2 then
newdir = 0
else
newdir = 1
end
--Don't edit this unless you know what you are doing.

if item.actionid == 1974 and queststatus == -1 then
doCreatureSay(cid, "It seems by defeating Azarus you have stopprd this army from entering your world! Better leave this ghastly place forever.", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 102504, 1) --Value ID PARA QUE O PLAYER POSSA ENTRA NA PORTA ONDE ESTAUM AS RECOMPENSA
return TRUE
end

if item.actionid == 1973 and queststatus == -1 then
totalmonsters = 0
monster = {}

repeat
creature = getThingfromPos(checking)

if creature.itemid > 0 then
if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
totalmonsters = totalmonsters + 1
monster[totalmonsters] = creature.uid
end
end

checking.x = checking.x + 1

if checking.x > ending.x then
checking.x = starting.x
checking.y = checking.y + 1
end

until checking.y > ending.y

if totalmonsters ~= 0 then
current = 0
repeat
current = current + 1
doRemoveCreature(monster[current])
until current >= totalmonsters
end

doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)

else
doMoveCreature(cid, newdir)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Someone has already done this quest.')
end
end
 
Last edited:
local starting = {x = 111, y = 749, z = 9, stackpos = 253}
local ending = {x = 129, y = 770, z = 9, stackpos = 253}

Those config values are incorrect, I guess.
 
Back
Top