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

Problem w POI

andegrand

New Member
Joined
Nov 13, 2009
Messages
25
Reaction score
0
Witam,

Mam problem z POI a dokładnie wyskakuje mi taki błąd:

HTML:
[04/12/2009 15:28:36] Lua Script Error: [MoveEvents Interface] 
[04/12/2009 15:28:36] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn

[04/12/2009 15:28:36] luaGetPlayerItemCount(). Player not found

[04/12/2009 15:28:36] Lua Script Error: [MoveEvents Interface] 
[04/12/2009 15:28:36] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn

[04/12/2009 15:28:36] ...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: attempt to compare boolean with number
[04/12/2009 15:28:36] stack traceback:
[04/12/2009 15:28:36] 	...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: in function <...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:1>

[04/12/2009 15:28:40] Lua Script Error: [MoveEvents Interface] 
[04/12/2009 15:28:40] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn

[04/12/2009 15:28:40] luaGetPlayerItemCount(). Player not found

[04/12/2009 15:28:40] Lua Script Error: [MoveEvents Interface] 
[04/12/2009 15:28:40] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn

[04/12/2009 15:28:40] ...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: attempt to compare boolean with number
[04/12/2009 15:28:40] stack traceback:
[04/12/2009 15:28:40] 	...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: in function <...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:1>
[04/12/2009 15:28:48] Arth Enth has logged out.

Oto plik z błędem:

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

Czy byłby ktoś tak miły i mi pomógł ? :)

Pozdrawiam
 
Code:
local tibleId = 1970
local pos = {x=32791, y=32327, z=10}
function onStepIn(cid, item, position, fromPosition)
    if isPlayer(cid) == TRUE then
        if getPlayerItemCount(cid, tibleId) >= 1 then
             doTeleportThing(cid, pos, TRUE)
             doSendMagicEffect(pos, 10)
        else
            doTeleportThing(cid, fromPosition, TRUE)
			doSendMagicEffect(position, 10)
        end
    end
    return TRUE
end
 
Back
Top