Postado Agosto 10, 2015 9 anos Tenho 1 Castle 24h mas ele Só avisa 1x por jogador O script da tile function onStepIn(cid, item, position, fromPosition) local n, g = getCreatureName(cid), getPlayerGuildName(cid) if getPlayerGuildId(cid) == 0 then doPlayerSendCancel(cid, "[AlphaCastle] Apenas Jogadores Com Guild Pode Entrar Nessa Zona.") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 9952) - os.time() < 1 then setPlayerStorageValue(cid, 9952, os.time() + 250 * 1000) broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs],para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING) end return true end
Postado Agosto 10, 2015 9 anos aqui function onStepIn(cid, item, position, fromPosition) local n, g = getCreatureName(cid), getPlayerGuildName(cid) if getPlayerGuildId(cid) == 0 then doPlayerSendCancel(cid, "[AlphaCastle] Apenas Jogadores Com Guild Pode Entrar Nessa Zona.") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 9952) - os.time() < 1 then broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs],para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING) end return true end
Postado Agosto 11, 2015 9 anos Autor aqui function onStepIn(cid, item, position, fromPosition) local n, g = getCreatureName(cid), getPlayerGuildName(cid) if getPlayerGuildId(cid) == 0 then doPlayerSendCancel(cid, "[AlphaCastle] Apenas Jogadores Com Guild Pode Entrar Nessa Zona.") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 9952) - os.time() < 1 then broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs],para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING) end return true end Oque você mudou? up upo
Postado Setembro 15, 2015 9 anos function onStepIn(cid, item, position, fromPosition) local n, g, delay = getCreatureName(cid), getPlayerGuildName(cid), 5 -- Delay para informar que o player está invadindo. if getPlayerGuildId(cid) == 0 then doPlayerSendCancel(cid, "[AlphaCastle] Apenas membros de guild podem entrar nesta área.") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 9952) - os.time() < 1 then setPlayerStorageValue(cid, 9952, os.time() + 5) broadcastMessage(n .." Está invadindo o [AlphaCastle24hrs], para a guild [" .. g .. "].", MESSAGE_STATUS_WARNING) end return true end Agora irá mostrar a cada 5 segundos por player, caso queira alterar, é só editar na variável. ➥ Regras | Seções OTServ | Seções BOT
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.