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

Solved checkArea and toPosition in boss.lua

davidmemo

New Member
Joined
Mar 28, 2011
Messages
37
Reaction score
0
this is my msg error
check_Area_to_Position.png

i update the code from https://github.com/PrinterLUA/FORGOTTENSERVER-ORTS
but the error still appears :/
 
if player:getStorageValue(boss.storage) ~= 1 or not checkArea(boss.fromPos, boss.toPosition) then
~~

toPos doesn't exist in the table.
 
if player:getStorageValue(boss.storage) ~= 1 or not checkArea(boss.fromPos, boss.toPosition) then
~~

toPos doesn't exist in the table.
this is my boss.lua i dont undestand :c

Code:
for x = fromPosition.x, toPosition.x do

function onStepIn(cid, item, position, fromPosition)
 
It's fixed 1 day ago
https://github.com/PrinterLUA/FORGOTTENSERVER-ORTS/blob/master/data/movements/scripts/killing in the name of/boss.lua

Before it was
Code:
if player:getStorageValue(boss.storage) ~= 1 or not checkArea(boss.fromPos, boss.toPos) then
Instead of
Code:
if player:getStorageValue(boss.storage) ~= 1 or not checkArea(boss.fromPos, boss.toPosition) then
Which made the second parameter toPosition (function checkArea(fromPosition, toPosition)) a nil value since boss.toPos didn't exist.
 
Back
Top