Seção incorreta, tópico movido.
Mais atenção da próxima vez.
info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

Seção incorreta, tópico movido.
Mais atenção da próxima vez.
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

tente trocar essa parte:
<movevent type="StepIn" actionid="2941" event="script"><![CDATA[
domodlib('arena_config')
if getPlayerAccess(cid) > config.acesso then doTeleportThing(cid, config.posicaoPlayer) return false end -- GM nao conta
doSetStorage(config.storage,getStorage(config.storage) - 1)
doTeleportThing(cid, config.posicaoPlayer)
registerCreatureEvent(cid, "naoAtacarPlayer")
registerCreatureEvent(cid, "morrerNaArena")
if getStorage(config.storage) <= 0 then
fecharTPeAguardarEvento()
end
return true
]]></movevent>
por essa
<movevent type="StepIn" actionid="2941" event="script"><![CDATA[
domodlib('arena_config')
if getPlayerAccess(cid) > config.acesso then doTeleportThing(cid, config.posicaoPlayer) return false
elseif getPlayerAccess(cid) < config.acesso then
doSetStorage(config.storage,getStorage(config.storage) - 1)
doTeleportThing(cid, config.posicaoPlayer)
registerCreatureEvent(cid, "naoAtacarPlayer")
registerCreatureEvent(cid, "morrerNaArena")
if getStorage(config.storage) <= 0 then
fecharTPeAguardarEvento()
end
end
return true
]]></movevent>
info
Grupo: Campones
Registrado: 25/08/12
Posts: 17
Reputação: 0
Olá, eu tenho o caso de sobrevivência, e isso me dá esse erro, tudo funciona, mas quando os jogadores simplesmente não dão itens, e marcar-me este error:
http://www.xtibia.com/forum/topic/189703-arena-sobrevivencia-event-system/
[29/8/2012 23:42:44] [Error - MoveEvents Interface] [29/8/2012 23:42:44] In a timer event called from: [29/8/2012 23:42:44] function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) [29/8/2012 23:42:44] domodlib('arena_config') [29/8/2012 23:42:45] if getPlayerAccess(cid) > config.acesso then doTeleportThing(cid, config.posicaoPlayer) return false end -- GM nao conta [29/8/2012 23:42:45] doSetStorage(config.storage,getStorage(config.storage) - 1) [29/8/2012 23:42:45] doTeleportThing(cid, config.posicaoPlayer) [29/8/2012 23:42:45] registerCreatureEvent(cid, "naoAtacarPlayer") [29/8/2012 23:42:45] registerCreatureEvent(cid, "morrerNaArena") [29/8/2012 23:42:45] if getStorage(config.storage) <= 0 then [29/8/2012 23:42:45] fecharTPeAguardarEvento() [29/8/2012 23:42:45] end [29/8/2012 23:42:45] return true [29/8/2012 23:42:45] end:onStepIn [29/8/2012 23:42:45] Description: [29/8/2012 23:42:45] (LuaInterface::luaRegisterCreatureEvent) Creature not found [29/8/2012 23:43:45] > Broadcasted message: "Event finalized, 2 survived the event!".