• 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!

Yalahar 10th Mission!

Majeski20

New Member
Joined
Apr 21, 2008
Messages
602
Reaction score
4
Location
Sweden
Hello guys! I need help from you. :rolleyes:

When i enter the teleport to the final room i got this error in console.

Code:
[Error - MoveEvents Interface]
data/movements/scripts/yalahar_azerus_quest.lua:onStepIn
Description:
(luaGetThingFromPos) Tile not found

Here is the movement script yalahar_azerus_quest.lua
Code:
function onStepIn(cid, item, position, fromPosition)

--Config-->
local starting = {x = 1058, y = 1022, z = 7, stackpos = 253}
local ending = {x = 1081, y = 1050, z = 7, stackpos = 253}
local checking = {x = starting.x, y = starting.y, z = starting.z, stackpos = starting.stackpos}
local queststatus = getPlayerStorageValue(cid, 9987) --Value ID OF QUEST WHEN YOU HAVE CATCH THE ITEM
local player_pos_entrada = {x = 1073, y = 1046, z = 7}
--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, 9987, 1) --Value ID WHAT THE PLAYER CAN ENTER THE DOOR WHERE ARE THE REWARDS
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

Thanks in advance! Really appreciate it. :p
 
Lua:
doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)


set coordinates :p


i had exactly the same script but changed it for this one

Lua:
function onStepIn(cid, item, position, fromPosition)
	if getCreatureStorage(cid, 50001) == -1 then
		if item.actionid == 1974 then
			doCreatureSay(cid, 'It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.', TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 4765, 1) 
		elseif item.actionid == 1973 then
			local t, f = {}
			for x = 576, 586 do
				for y = 560, 572 do
					local v = getTopCreature({x=x, y=y, z=10}).uid
					if isPlayer(v) then
						f = true
						break
					elseif isMonster(v) then
						table.insert(t, v)
					end
				end
			end
			if not f then
				for i = 1, #t do
					doRemoveCreature(t[i])
				end
			end
			doTeleportThing(cid, {x=579, y=575, z=10})
			doSendMagicEffect({x=579, y=575, z=10}, CONST_ME_TELEPORT)
		end
	else
		doTeleportThing(cid, fromPosition, false)
		doPlayerSendCancel(cid, 'You have already done this quest!')
	end
end
 
Lua:
doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)


set coordinates :p


i had exactly the same script but changed it for this one

Lua:
function onStepIn(cid, item, position, fromPosition)
	if getCreatureStorage(cid, 50001) == -1 then
		if item.actionid == 1974 then
			doCreatureSay(cid, 'It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.', TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 4765, 1) 
		elseif item.actionid == 1973 then
			local t, f = {}
			for x = 576, 586 do
				for y = 560, 572 do
					local v = getTopCreature({x=x, y=y, z=10}).uid
					if isPlayer(v) then
						f = true
						break
					elseif isMonster(v) then
						table.insert(t, v)
					end
				end
			end
			if not f then
				for i = 1, #t do
					doRemoveCreature(t[i])
				end
			end
			doTeleportThing(cid, {x=579, y=575, z=10})
			doSendMagicEffect({x=579, y=575, z=10}, CONST_ME_TELEPORT)
		end
	else
		doTeleportThing(cid, fromPosition, false)
		doPlayerSendCancel(cid, 'You have already done this quest!')
	end
end

Thanks , but i dont understand that one :eek:

what should i type in here?

doTeleportThing(cid, {x=579, y=575, z=10})
doSendMagicEffect({x=579, y=575, z=10},
 
doTeleportThing(cid, {x=579, y=575, z=10})-- Where it teleports the target (i think).
doSendMagicEffect({x=579, y=575, z=10}, -- Where it does the x magic effect.
 
Back
Top