Puts man,muito bom esse script,mals não da pra da rep,limite,mas o script é MUITO BOM
- Forums
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Lista de Staff online
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

info
Group: Conde
Joined: 03/09/11
Posts: 703
Reputation: +191
Gender: Masculino
Tibia Character: Mirade

Não vejo utilidades, é pra isso que server o chat Help, pra
tirar dúvidas. Se um membro da staff estiver online, ele responderá
no help, tirando a dúvida de tal player.
info
Group: Herói
Joined: 25/10/12
Posts: 2.4k
Reputation: +687
Gender: Masculino
Tibia Character: Nuncative

Puts man,muito bom esse script,mals não da pra da rep,limite,mas o script é MUITO BOM
Vlw chegado!
Aproveite ![]()
info
Group: Infante
Joined: 04/03/11
Posts: 1.6k
Reputation: +393
Tibia Character: No Have

Muito legal o criado do script fazer uma busca na database sendo que ele pode usar um for em getPlayerOnline.
str = "Equipe On" for i =1, #getPlayersOnline() do local player = getPlayersOnline()[i] if getPlayerGroupId(player) > 2 then str = str..getPlayerName(player) end doShowTextDialog(cid, 1397, str) end
Edited Abril 21 by caotic
info
Group: Visconde
Joined: 22/11/12
Posts: 267
Reputation: +26
Gender: Masculino
Tibia Character: ADM Kabo

Muto Bom Mano ![]()
info
Group: Herói
Joined: 25/10/12
Posts: 2.4k
Reputation: +687
Gender: Masculino
Tibia Character: Nuncative

Brigado cara ![]()
info
Group: Artesão
Joined: 15/03/13
Posts: 126
Reputation: +34
Tibia Character: No Have

Para Alguns Servidores , Realmente Tem Utilidade , Parabéns ..
info
Group: Visconde
Joined: 24/11/12
Posts: 474
Reputation: +98
Gender: Masculino

Gostei Pcr Será muito útil Rep +
Abraços !
info
Group: Herói
Joined: 25/10/12
Posts: 2.4k
Reputation: +687
Gender: Masculino
Tibia Character: Nuncative

Obrigado Adilson!
Abraço ![]()
info
Group: Visconde
Joined: 12/09/10
Posts: 416
Reputation: +160
Tibia Character: Draky Lucas

até funciona, mas ao invez de verificar todos players do banco de dados que estão online pela query, nao era mais facil fazer isso?
for _, pid in ipairs(getPlayersOnline()) do
end
e apenas verificar o acesso? =p
info
Group: Visconde
Joined: 30/11/12
Posts: 252
Reputation: +13

Perfeito brother..
Assim os players não vão precisar ficar no Help-Chat perguntando:
"Lord Of War [57]: Algum tutor ai? responde por favor!"
Eles simplesmente vai executar esse comando e ver quem ta online
da Staff, para ajuda-lo.
REP+ póste mais coisas úteis!
info
Group: Artesão
Joined: 24/10/12
Posts: 107
Reputation: -3
Tibia Character: binhostylle

Velho Muito Foda Vai ser de Bom Uso Para Os Caras
info
Group: Marquês
Joined: 02/08/12
Posts: 1k
Reputation: +234
Tibia Character: Maurolkit

Script bacana, estou sem rep no momento quando liberar eu do, mas não há necessidade de manuseio de db neste script.
17AHwqzz[/pastebin]
Edited Abril 27 by Skymagnum






info
Group: Herói
Joined: 25/10/12
Posts: 2.4k
Reputation: +687
Gender: Masculino
Tibia Character: Nuncative
Uma talkaction que vai incrementar um pouco mais seu servidor.
!staff (se tiver alguém online)
(se não tiver alguém online)
Em data/talkactions/talkactions.xml:
<talkaction words="!staff" event="script" value="staff.lua"/>
Agora em data/talkactions/scripts: crie um arquivo chamado staff.lua e cole dentro:
function onSay(cid, words, param, channel)
local Info = db.getResult("SELECT * FROM `players` WHERE `online` = '1' AND `group_id` > 1")
local PlayerString = "Online Staff Members:\n"
if Info:getID() ~= -1 then
local count, i = Info:getRows(false), 0
repeat
PlayerString = PlayerString .. Info:getDataString("name") .. " - "
if Info:getDataInt("group_id") == 2 then
PlayerString = PlayerString .. "Tutor"
elseif Info:getDataInt("group_id") == 3 then
PlayerString = PlayerString .. "Senior Tutor"
elseif Info:getDataInt("group_id") == 4 then
PlayerString = PlayerString .. "Game Master"
elseif Info:getDataInt("group_id") == 5 then
PlayerString = PlayerString .. "Community Manager"
elseif Info:getDataInt("group_id") == 6 then
PlayerString = PlayerString .. "God"
end
PlayerString = PlayerString .. "\n"
until not(Info:next())
Info:free()
else
PlayerString = PlayerString .. "No staff online, try again later"
end
doPlayerPopupFYI(cid, PlayerString);
return true
end
Bom uso! (Créditos: Hiromath)