GOD Esteve
New Member
- Joined
- May 18, 2011
- Messages
- 87
- Reaction score
- 1
Hello guys.
First of all i am using TFS 1.0
I have this function to my Castle24H to remove all the players that is inside the castle when
the other guild stepin on the throne.
but i have a small problem that i don't khown how to solve,
I will be glad if somebody help me to fix.
Thank You
First of all i am using TFS 1.0
I have this function to my Castle24H to remove all the players that is inside the castle when
the other guild stepin on the throne.
Code:
function doCastleRemoveEnemies()
for index, creature in ipairs(getOnlinePlayers()) do
if isInRange(getThingPos(creature), COH_AREA[1], COH_AREA[2]) then
if getPlayerGuildName(creature) ~= getGlobalStorageValue(COH_STATUS) then
doTeleportThing(creature, exit)
end
end
end
return true
end
but i have a small problem that i don't khown how to solve,
Lua script error: moveevents interface
data/movements/script/castle24.luanStepIn
data/lib/compat.lua:847: attempt to compare number with string stack traceback:
[c]: in ufnction `___le`
data/lib/compact/compact.lua:847 in function `getThingPos`
data/movements/script/castle24.lua:92: in function `doCastleRemoveEnimes`
I will be glad if somebody help me to fix.
Thank You