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

Linux I can not log in the server error.

Dexter171

New Member
Joined
Apr 25, 2008
Messages
56
Reaction score
1
Ejop has logged in.

[Error - CreatureScript Interface]
data/creaturescripts/scripts/login.lua:eek:nLogin
Description:
data/creaturescripts/scripts/login.lua:12: attempt to call global 'isInArray' (a nil value)
stack traceback:
data/creaturescripts/scripts/login.lua:12: in function <data/creaturescripts/scripts/login.lua:6>
Ejop has logged out.
Prosze o pomoc
 
Code:
function isInArray(array, value, caseSensitive)
     if(caseSensitive == nil or caseSensitive == false) and type(value) == "string" then
         local lowerValue = value:lower()
         for _, _value in ipairs(array) do
             if type(_value) == "string" and lowerValue == _value:lower() then
                 return true
             end
         end
     else
         for _, _value in ipairs(array) do
             if (value == _value) then return true end
         end
     end
     return false
end
Next time post in English, if you want to post in Polish: http://otland.net/forums/support.501/
If your English isn't good enough, you can use google translate: https://translate.google.com/
 
Ejop has logged in.

[Error - CreatureScript Interface]
data/creaturescripts/scripts/login.lua:eek:nLogin
Description:
data/lib/050-function.lua:366: attempt to call global 'getCreatureCondition' (a nil value)
stack traceback:
data/lib/050-function.lua:366: in function 'isPlayerGhost'
data/creaturescripts/scripts/login.lua:62: in function <data/creaturescripts/scripts/login.lua:6>
Ejop has logged out.
:(
 
You can remove this in login.lua
Code:
if(not isPlayerGhost(cid)) then
     doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
Or change it to
Code:
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
 
Thanks a lot! it works !! You can still help with this?
Ejop has logged in.

[Error - NpcScript Interface]
data/npc/scripts/Benjamin.lua:eek:nCreatureSay
Description:
data/npc/lib/npcsystem/npchandler.lua:569: attempt to call global 'getDistanceTo' (a nil value)
stack traceback:
data/npc/lib/npcsystem/npchandler.lua:569: in function 'isInRange'
data/npc/lib/npcsystem/npchandler.lua:394: in function 'onCreatureSay'
data/npc/scripts/Benjamin.lua:7: in function <data/npc/scripts/Benjamin.lua:7>
 
Change
Code:
local distance = getDistanceTo(cid) or -1
To
Code:
local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid))
 
[Error - NpcScript Interface]
data/npc/scripts/A Prisoner.lua
Description:
data/npc/scripts/A Prisoner.lua:2: attempt to index global 'NpcHandler' (a nil value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/A Prisoner.lua


[Error - NpcScript Interface]
data/npc/scripts/Banshee Queen.lua
Description:
data/npc/scripts/Banshee Queen.lua:2: attempt to index global 'NpcHandler' (a nil value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/Banshee Queen.lua


[Error - NpcScript Interface]
data/npc/scripts/The Bone Master.lua
Description:
data/npc/scripts/The Bone Master.lua:2: attempt to index global 'NpcHandler' (a nil value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/The Bone Master.lua


[Error - NpcScript Interface]
data/npc/scripts/The Dream Master.lua
Description:
data/npc/scripts/The Dream Master.lua:2: attempt to index global 'NpcHandler' (a nil value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/The Dream Master.lua


[Error - NpcScript Interface]
data/npc/scripts/A Ghostly Guardian.lua
Description:
data/npc/scripts/A Ghostly Guardian.lua:2: attempt to index global 'NpcHandler' (a nil value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/A Ghostly Guardian.lua


[Error - NpcScript Interface]
data/npc/scripts/The Crone.lua
Description:
data/npc/scripts/The Crone.lua:2: attempt to index global 'NpcHandler' (a nil value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/The Crone.lua
:S
 
Ok Thanks, fixed a problem with the npc, but I have another ... help?
[Error - Action Interface]
data/actions/scripts/other/teleport.lua:eek:nUse
Description:
attempt to index a number value
stack traceback:
[C]: in function 'doTileQueryAdd'
data/actions/scripts/other/teleport.lua:27: in function <data/actions/scripts/other/teleport.lua:5>
 
The OTX Server Version 2 60
local UP_FLOORS = {1386, 3678, 5543, 8599, 10035}
local FIELDS = {1497, 1499, 11095, 11096}
local DRAW_WELL = 1369

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == DRAW_WELL and item.actionid ~= 100) then
return false
end

local check = false
fromPosition.stackpos = STACKPOS_GROUND
if(isInArray(UP_FLOORS, item.itemid)) then
fromPosition.z = fromPosition.z - 1
fromPosition.y = fromPosition.y + 1
if(doTileQueryAdd(cid, fromPosition, 38, false) ~= RETURNVALUE_NOERROR) then
local field = getTileItemByType(fromPosition, ITEM_TYPE_MAGICFIELD)
if(field.uid == 0 or not isInArray(FIELDS, field.itemid)) then
fromPosition.y = fromPosition.y - 2
else
check = true
end
end
else
fromPosition.z = fromPosition.z + 1
end

if(not check and doTileQueryAdd(cid, fromPosition, 38, false) ~= RETURNVALUE_NOERROR) then
local field = getTileItemByType(fromPosition, ITEM_TYPE_MAGICFIELD)
if(field.uid == 0 or not isInArray(FIELDS, field.itemid)) then
return false
end
end

local pos, dir = getCreaturePosition(cid), SOUTH
if(pos.x < fromPosition.x) then
dir = EAST
elseif(pos.x == fromPosition.x) then
if(pos.y == fromPosition.y) then
dir = getCreatureLookDirection(cid)
elseif(pos.y > fromPosition.y) then
dir = NORTH
end
elseif(pos.x > fromPosition.x) then
dir = WEST
end

doTeleportThing(cid, fromPosition, false)
doCreatureSetLookDirection(cid, dir)
return true
end
]
 
Back
Top