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

Poi Magicwalls ERROR

Axelor

Member
Joined
Sep 2, 2010
Messages
505
Reaction score
9
PHP:
[18:7:31.732] [Error - MoveEvents Interface]
[18:7:31.732] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn
[18:7:31.732] Description:
[18:7:31.732] (luaGetPlayerItemCount) Player not found

[18:7:31.733] [Error - MoveEvents Interface]
[18:7:31.733] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn
[18:7:31.733] Description:
[18:7:31.733] ...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: attempt to compare boolean with number
[18:7:31.733] stack traceback:
[18:7:31.733]   ...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: in function <...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:1>

Some1 know how to fix this?
 
Last edited:
Post your scritpt, MagicWallEntrance.lua

PHP:
function onStepIn(cid, item, pos)
	local position = {x=412, y=1414, z=9}
	local position2 = {x=398, y=1380, z=9}
	
		if (getPlayerItemCount(cid, 1970) < 1) then
			doTeleportThing(cid, position)
			doSendMagicEffect(position,10)
		else

			doTeleportThing(cid, position2)
						doSendMagicEffect(position2,10)
		end
end
 
LUA:
function onStepIn(cid, item, pos)
	if isPlayer(cid) then
		if getPlayerItemCount(cid, 1970) < 1 then
			doTeleportThing(cid, {x=412, y=1414, z=9})
			doSendMagicEffect({x=412, y=1414, z=9}, 10)
		else
			doTeleportThing(cid, {x=398, y=1380, z=9})
			doSendMagicEffect({x=398, y=1380, z=9}, 10)
		end
	end
end
 
LUA:
function onStepIn(cid, item, pos)
	if isPlayer(cid) then
		if getPlayerItemCount(cid, 1970) < 1 then
			doTeleportThing(cid, {x=412, y=1414, z=9})
			doSendMagicEffect({x=412, y=1414, z=9}, 10)
		else
			doTeleportThing(cid, {x=398, y=1380, z=9})
			doSendMagicEffect({x=398, y=1380, z=9}, 10)
		end
	end
end

thx fixed, no errors anymore
 
Back
Top