Ok... Estarei Postando :
Vai em data/talkactions/scripts copia um arquivo e renomeia pra bane.lua e ponha isto dentro :
local default_comment =""local default_lenght = 1 -- ban time in hours
function onSay(cid, words, param)
local parametres = string.explode(param, ",")
if(parametres[1] ~= nil) then
local accId = getAccountIdByName(parametres[1])
if(accId > 0) then
local lenght = default_lenght
local comment = default_comment
if(parametres[2] ~= nil and tonumber(parametres[2]) > 0) then
lenght = tonumber(parametres[2])
end
if(parametres[3] ~= nil) then
comment = parametres[3]
end
doAddBanishment(accId, lenght * 3600, 23, ACTION_BANISHMENT, comment, getPlayerGUID(cid), comment)
local player = getPlayerByNameWildcard(parametres[1])
if(isPlayer(player) == TRUE) then
doRemoveCreature(player)
end
else
doPlayerSendCancel(cid, "Player with name " .. parametres[1] .. " doesn't exist.")
end
else
doPlayerSendCancel(cid, "You must enter name.")
end
return true
end
Em Talkactions.xml adicione a tag :
<talkactionlog="yes"words="/ban"access="3"event="script"value="bane.lua"/>
No Acess Voce muda Se Quizer , Esta Configurado pra Senior Tutor.
Para Usar O Comando fale /ban (nome do carinha),(quantas horas Dura o ban),(Razao Do Ban)
Exemplo
/ban Teste,24,Uso de Mc!
Entendeu? Quaisquer Duvida Pode Postar.
PS: Ve Se Pega no Seu Server , Pois não sei a versão do próprio.






info
Grupo: Campones
Registrado: 29/11/08
Posts: 36
Reputação: +1
Char no Tibia: Elmon Ledius
Estava procurando uma base para montar o meu OT e achei várias interessantes, porém tenho um GRANDE problema,
Em todas as bases (Incluindo TFS 0.4) eu não consigo usar o comando /ban, eu entro em talkactions e o script nem existe, só o unban.
Alguém poderia me ajudar a resolver este problema?
Obrigado!