Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Galera é o seguinte preciso de um ban systen funcional para a versão 10.10, ja testei inumeros postados tanto no tibia king, quando em outros lugares, e o /ban, só kika o jogador.

 

 REP ++ PRA QUEM AJUDAR

 

 

talkaction.xml

<?xml version="1.0" encoding="UTF-8"?><talkactions>
<!-- Gods -->
<talkaction log="yes" words="/ban" access="3" event="script" value="ban.lua"/>
<talkaction log="yes" words="/skill;/addskill" access="3" event="script" value="skill.lua"/>
<talkaction log="yes" words="/attr" access="3" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="3" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="3" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/ban" access="3" event="script" value="banish.lua"/>
<talkaction log="yes" words="/openserver" access="3" event="script" value="closeopen.lua"/>
<talkaction words="/muted" script="muted.lua" />
<talkaction words="/desmuted" script="muted.lua" />
<talkaction log="yes" words="/promote;/demote" access="3" event="script" value="promote.lua"/>
<talkaction log="yes" words="/shutdown" access="3" event="script" value="shutdown.lua"/>
<talkaction log="yes" words="/mode" access="3" event="script" value="mode.lua"/> 


<!-- WoE -->
<talkaction words="/woe" event="script" value="woe.lua"/>
<talkaction words="!recall" event="script" value="woe.lua"/>
<talkaction words="!guildjoin" event="script"  value="register_woe.lua"/>


<!-- Bank -->
     <talkaction log="yes" words="!balance" script="bankbalance.lua" />
<talkaction log="yes" words="!deposit" script="deposit.lua" />
<talkaction log="yes" words="!withdraw" script="withdraw.lua" />
<talkaction log="yes" words="!transfer" script="transfer.lua" />
<talkaction log="yes" words="!depositall" script="depositall.lua" />
<talkaction log="yes" words="!withdrawall" script="withdrawall.lua" />
<talkaction log="yes" words="!transferall" script="transferall.lua" />


<!-- Community Managers -->
<talkaction log="yes" words="/s" access="3" event="script" value="summon.lua"/>
<talkaction log="yes" words="/n" access="3" event="script" value="creature.lua"/>
<talkaction log="yes" words="/m" access="3" event="script" value="creature.lua"/>
<talkaction log="yes" words="/reload" access="3" event="script" value="reload.lua"/>
<talkaction log="yes" words="/raid" access="3" event="script" value="raid.lua"/>
<talkaction log="yes" words="/newtype" access="3" event="script" value="newtype.lua"/>
<talkaction log="yes" words="/r" access="3" event="script" value="remove.lua"/>
<talkaction log="yes" words="/owner" access="3" event="script" value="owner.lua"/>
<talkaction log="yes" words="/storage" access="3" event="script" value="storage.lua"/>
<talkaction log="yes" words="/i" access="3" event="script" value="createitem.lua"/>
<talkaction log="yes" words="/bc" access="3" event="script" value="broadcastclass.lua"/>
<talkaction log="yes" access="3" words="/mkick" event="script" value="masskick.lua"/>
<talkaction access="3" words="/z" event="script" value="magiceffect.lua"/>
<talkaction access="3" words="/x" event="script" value="animationeffect.lua"/>
<talkaction access="3" words="/y" event="script" value="animatedtext.lua"/>


<!-- Gamemasters -->
<talkaction log="yes" words="/ghost;/invisible" access="3" event="function" value="ghost"/>
<talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/t" access="2" event="script" value="teleportmaster.lua"/>
<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
<talkaction log="yes" words="/goto" access="2" event="script" value="teleportto.lua"/>
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
<talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
<talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
<talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
<talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
<talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
<talkaction log="yes" words="/wp" access="3" event="script" value="waypoints.lua"/>
<talkaction log="yes" words="/jail;/unjail" access="3" event="script" value="jail.lua"/>


<!-- Senior Tutors -->
<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
<talkaction log="yes" words="/b" access="2" event="script" value="broadcast.lua"/>


<!-- Tutors -->
<talkaction log="yes" access="1" words="/baninfo" event="function" value="banishmentInfo"/>
<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>
<talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>


<!-- Players -->
<talkaction words="!frags;/frags" event="script" value="frags.lua"/>
        <talkaction words="!aol" script="aol.lua" />
<talkaction words="!online;/online" event="script" value="online.lua"/>
<talkaction words="!uptime;/uptime" event="script" value="uptime.lua"/>
<talkaction words="!deathlist;/deathlist" event="script" value="deathlist.lua"/>
<talkaction words="!pvp;/pvp" event="script" value="pvp.lua"/>
<talkaction words="!q" event="script" value="money.lua"/>
        <talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />
<talkaction words="!notice;/notice" event="script" value="notice.lua"/> 
<talkaction words="!task" script="taskcomplete.lua"/>
<talkaction words="!changesex;/changesex;!changender;/changender" script="changesex.lua" />
<talkaction words="!party;/party" event="script" value="party.lua"/>
<talkaction words="!spells;/spells" event="script" value="spells.lua"/>
     <talkaction words="!addon" event="script" value="addondoll.lua"/>
<talkaction words="!basicaddon" event="script" value="basicaddondoll.lua"/>
<talkaction words="!basicmount" event="script" value="basicmountdoll.lua"/>
     <talkaction words="!buypremium" event="script" value="premium.lua"/>
     <talkaction words="!mount" event="script" value="mountdoll.lua"/>
     <talkaction words="!mastermount" event="script" value="mountdolldois.lua" />
<talkaction words="emoticon" script="emoticon.lua" />
        <talkaction words="/war" channel="0" event="script" value="war.lua" desc="(Guild channel command) War management."/>




<!-- Houses -->
<talkaction words="!buyhouse;/buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!sellhouse;/sellhouse" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction words="!leavehouse;/leavehouse;alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>


<!-- Guilds -->
<talkaction words="!createguild;/createguild" event="function" value="guildCreate"/>
<talkaction words="!joinguild;/joinguild" event="function" value="guildJoin"/>
<talkaction words="!roupa" group="1" acctype="1" script="changeoutfit.lua"/>


<!-- PollSystem -->
<talkaction words="!createpoll;/createpoll" event="script" value="PollSystem.lua"/>
<talkaction words="!activepoll;/activepoll" event="script" value="PollSystem.lua"/>
<talkaction words="!cancelpoll;/cancelpoll" event="script" value="PollSystem.lua"/>
<talkaction words="!seepoll;/seepoll" event="script" value="PollSystem.lua"/>
<talkaction words="!seeresults;/seeresults" event="script" value="PollSystem.lua"/>
<talkaction words="!remvotes;/remvotes" event="script" value="PollSystem.lua"/>
<talkaction words="!rempoll;/rempoll" event="script" value="PollSystem.lua"/>
<talkaction words="!votepoll;/votepoll" event="script" value="PollSystem.lua"/>


<!-- Guild System -->>
<talkaction filter="word" words="!guild;/guild" script="guildcast.lua"/>
<talkaction words="!changeoutfit" script="changeoutfit.lua"/>


</talkactions>

Ban.lua

local default = {length = getConfigValue("banLength"),
comment = "Rule Violations.",
reason = 12
}


function getPlayerTesti(cid)
local Tiedot = db.getResult("SELECT `id` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1")
if Tiedot:getID() ~= LUA_ERROR then
local account = Tiedot:getDataInt("id")
return account
end
return LUA_ERROR
end


function onSay(cid, words, param)
local t = string.explode(param, ",")
if(not t[1]) then
doPlayerSendCancel(cid, "You must enter name.")
return true
end


local player = getPlayerByName(t[1])
if(not isPlayer(player)) then
doPlayerSendCancel(cid, "Player with name `" .. t[1] .. "` not found.")
return true
end


local action = t[2]
if(not t[2] or (t[2] and type(t[2]) ~= 'string')) then
doPlayerSendCancel(cid, "Wrong param.")
return true
end


local length = (t[3] and tonumber(t[3]) > 0) and t[3] or default.length
local comment = (t[4] and type(t[4]) == "string") and t[4] or default.comment
if(isInArray({"account", "acc", "a"}, action)) then
doAddAccountBanishment(getAccountIdByName(t[1]), getPlayerGUID(t[1]), os.time() + length, default.reason, comment, ACTION_BANISHMENT, comment, getPlayerGUID(cid))
result = true
--[[
elseif(isInArray({"player", "p"}, action)) then
--type missing
doAddPlayerBanishment(getPlayerGUID(t[1]), type, os.time() + length, default.reason, ACTION_BANISHMENT, comment, getPlayerGUID(cid))
result = true
elseif(isInArray({}, action)) then
--ip and mask missing
doAddIpBanishment(ip, mask, os.time() + length, default.reason, comment, getPlayerGUID(cid))
result = true
elseif(isInArray({}, action)) then
doAddNotation(getAccountIdByName(t[1]), getPlayerGUID(t[1]), default.reason, comment, getPlayerGUID(cid))
result = true
elseif(isInArray({}, action)) then
--channelId missing
doAddStatement(getPlayerGUID(t[1]), channelId, default.reason, comment, getPlayerGUID(cid))
result = true
]]
end


if(result) then
db.executeQuery("INSERT INTO `bans` (`id` ,`type` ,`value` ,`param`, `active`, `expires`, `added`, `admin_id`, `comment`, `reason`, `action`) VALUES ('id', '3', '".. getPlayerTesti(player) .."', '45', '1', '".. os.time() + length .."', '".. os.time() .."', '".. getPlayerGUID(cid) .."', '".. comment .."', '12', '2' );")
doSendAnimatedText(getCreaturePosition(player), "BANISHED", TEXTCOLOR_RED)
doPlayerBroadcastMessage(cid, "The player "..t[1].." has been banished by reason "..t[4].. ". Mais informacoes no site.")
doRemoveCreature(player)
end
return true
end

atenção ! o script funciona porem somente kika o jogador.

Editado por timgui123 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 1 month later...

ultimamente o ban system funciona com outros scripts alem de talkactions e tmb no comando, se colocasse um comentario eu acho q ele nao da ban só kick, n lembro direito chegando em casa vejo como funfa certim o comando, sei que funfo kk...

 

http://www.4shared.com/rar/EKyjLs2R/BAN_SYS.html

Editado por alissonfgp (veja o histórico de edições)

Argon-Online

 

Cast System, Reward System, Flash Client, Support Versão 12.30, All areas, Ferumbras Quest e muito mais...

 

https://www.facebook.com/positiveglobal

Versão: 12.30

________________________________________________________________________________
 

2222.jpg

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo