Ir para conteúdo

Featured Replies

Postado

Alguem pode me ajudar a corrigir esse bugzinho!

Citar

[16:3:57.773] [Error - GlobalEvent Interface]
[16:3:57.775] data/globalevents/scripts/expulsarctf.lua:onThink
[16:3:57.775] Description:
[16:3:57.776] data/globalevents/scripts/expulsarctf.lua:27: attempt to call global 'getTileThingByPos' (a nil value)
[16:3:57.777] stack traceback:
[16:3:57.778]   data/globalevents/scripts/expulsarctf.lua:27: in function <data/globalevents/scripts/expulsarctf.lua:12>
[16:3:57.779] [Error - GlobalEvents::think] Couldn't execute event: CTF

 

 

 function removeBattle(cid)
    return doRemoveCondition(cid, CONDITION_INFIGHT)
end

function getTileHardcoreInfo(pos)
	if getTileInfo(pos).hardcore then
		return true
	end
	return false
end

function onThink(cid, interval, lastExecution)
	for _, name in ipairs(getOnlinePlayers()) do
		local cid = getPlayerByName(name)
		if getGlobalStorageValue(16705) <= 0 then
			for z = 6,7 do
			posx = {x=328,y=117,z=z}
			posy = {x=389,y=155,z=z}
				if isInArea(getCreaturePos(cid),posx,posy) then
					if not (getPlayerStorageValue(cid, 16700) == "Verde" or getPlayerStorageValue(cid, 16700) == "Vermelho") then
						doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
					end
				end
			end
		end
		
		local pos, tile = getThingPos(cid), getTileThingByPos(getThingPos(cid))
        if getTilePzInfo(pos) or getTileInfo(pos).hardcore then
			removeBattle(cid)
		end
	end
    return true
end

 

 

 

Tópico RESOLVIDO!!

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo