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

glovalevent Problem

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
Can fix script for tfs 0.3.5 Pl1 ?
PHP:
function onThink(interval, lastExecution)
desdex = 1420 -- Coordenada X de inicio
hastax = 1545 -- Coordenada X de final
desdey = 1058 -- Coordenada Y de inicio
hastay = 1155 -- Coordenada Y de final

for areax = desdex, hastax do
for areay = desdey, hastay do
areapos = {x=areax, y=areay, z=7, stackpos=253}
p = {cid = cid, item = item, pos = pos}
creature = getThingfromPos(areapos)
if creature.itemid > 0 and isPlayer(creature.uid) == 0 and isCreature(creature.uid) == 1 then
doSendMagicEffect(areapos,13)
doRemoveCreature(getThingfromPos(areapos).uid)
else
end
end
end
return TRUE
end

Error console:
Code:
[04/11/2009 00:09:21] Lua Script Error: [GlobalEvent Interface] 
[04/11/2009 00:09:21] data/globalevents/scripts/clean1.lua:onThink

[04/11/2009 00:09:21] luaGetThingFromPos(). Tile not found

[04/11/2009 00:09:21] Lua Script Error: [GlobalEvent Interface] 
[04/11/2009 00:09:21] data/globalevents/scripts/clean1.lua:onThink

[04/11/2009 00:09:21] luaGetThingFromPos(). Tile not found

Help. pleased.
 
I want that the area cleans that this marked

All tiles


desdex = 1420 -- Coordenada X de inicio
hastax = 1545 -- Coordenada X de final
desdey = 1058 -- Coordenada Y de inicio
hastay = 1155 -- Coordenada Y de final
 
Back
Top