Agora, Yan Liima disse:Diminuir o tempo do Castle, pra iniciar novamente e testar alavanca.
GH:
function onCombat(cid, target) if not isPlayer(target) then return true else targets = getMonsterTargetList(cid) if getPlayerGuildId(target) == getGlobalStorageValue(123123) then addEvent(check,1000,cid,targets) return FALSE else return TRUE end end end function check(cid,targets) for i=1, #targets do if getPlayerGuildId(targets[i]) == getGlobalStorageValue(123123) then addEvent(check,1000,cid,targets) return FALSE else stopEvent(check) return TRUE end end end
OU
function onCombat(cid, target) if not isPlayer(target) then return true else targets = getMonsterTargetList(cid) if getPlayerGuildId(target) == getGlobalStorageValue(123123) then addEvent(check,1000,cid,targets) return TRUE else return TRUE end end end function check(cid,targets) for i=1, #targets do if getPlayerGuildId(targets[i]) == getGlobalStorageValue(123123) then addEvent(check,1000,cid,targets) return FALSE else stopEvent(check) return TRUE end end end
Agora tem um erro quando o outro player mata o guard... e o mesmo erro qnd o dono do castelo desloga ou morre ainda permanece tmb
Outro erro:









info
Grupo: Diretor
Registrado: 12/05/12
Posts: 818
Reputação: +578
Gênero: Masculino
Char no Tibia: [ADM] Night
Diminuir o tempo do Castle, pra iniciar novamente e testar alavanca.
GH:
OU