Ir para conteúdo

Erro Guild War


fredpadua

Posts Recomendados

Alguem sabe porque está dando erro no talkactions sempre que abro o sv?

Fiz tudo que falo no tutorial e agora começou a dar erro..

 

Ja to usando o tfs 0.4.

 

Erro:

guildwar.jpg

 

 

Quem souber ajuda ganha +REP

Link para o comentário
Compartilhar em outros sites

Isso foi você na hora de fazer os arquivos do tutorial.

 

Você deve ter colocado alguma letra/acento sem querer. refaça tudo de novo com atenção que da certo.

 

( só a parte do data, na parte do mysql tá tudo certo )

 

Vou refazer mais uma vez então...

 

 

@EDIT

 

Pess0a deu o mesmo erro..

reinstalei todo o sistema e nada.

Editado por FaltouCriatividade
Link para o comentário
Compartilhar em outros sites

tem um "end" a mais ou a menos no teu talkactions.xml! Se não der jeito de arruma, posta o arquivo talkactions.xml que nois arruma.

 

Ta ai o talkactions.xml

mas acho que não teria oq mudar..

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<talkactions>

<!-- Gods -->

<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>

<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>

<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>

<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>

<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>

<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>

<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>

<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

 

<!-- Community Managers -->

<talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>

<talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>

<talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>

<talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>

<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>

<talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>

<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>

<talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>

<talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>

<talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>

<talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>

<talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>

<talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>

<talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>

<talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>

<talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

 

<!-- Gamemasters -->

<talkaction log="yes" words="/ghost" 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="3" event="script" value="teleportmaster.lua"/>

<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>

<talkaction log="yes" words="/goto" access="3" 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" access="3" words="/wp" event="script" value="waypoints.lua"/>

 

<!-- Senior Tutors -->

<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>

<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>

<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>

<talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

 

<!-- Tutors -->

<talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>

<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>

 

<!-- Players -->

<talkaction words="!frags" event="script" value="frags.lua"/>

<talkaction words="!online" event="script" value="online.lua"/>

<talkaction words="!uptime" event="script" value="uptime.lua"/>

<talkaction words="!pvp" event="script" value="pvp.lua"/>

<talkaction words="!q" event="script" value="money.lua"/>

<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>

<talkaction words="/commands" event="script" value="commands.lua"/>

 

<!-- Houses -->

<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>

<talkaction words="!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="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>

 

<!-- Guilds -->

<talkaction words="!createguild" event="function" value="guildCreate"/>

<talkaction words="!joinguild" event="function" value="guildJoin"/>

 

<!-- (Deprecated) Redirect old '/' to '!' -->

<talkaction words="/online" hide="yes" event="script" value="online.lua"/>

<talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>

<talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/>

<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>

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

 

<!-- Custom systems -->

<talkaction words="!notice" event="script" value="notice.lua"/>

<talkaction words="!rank" script="ranks.lua"/>

<talkaction words="!service" event="script" value="Fragas.lua"/>

<talkaction words="!jail" script="Cadeia.lua"/>

<talkaction words="!unjail" script="Cadeia.lua"/>

<talkaction words="/jail" script="Cadeia.lua"/>

<talkaction words="/unjail" script="Cadeia.lua"/>

<talkaction words="!necromancer" script="demonic.lua"/>

<talkaction words="!nightmare" script="love.lua"/>

 

<talkaction filter="word" words="/guild" script="guildcast.lua"/>

<talkaction words="!afk" event="script" value="afk.lua"/>

<!-- custon By Revange -->

<!-- pollsystem talkactions -->

<talkaction words="!createpoll" event="script" value="PollSystem.lua"/>

<talkaction words="!activatepoll" event="script" value="PollSystem.lua"/>

<talkaction words="!cancelpoll" event="script" value="PollSystem.lua"/>

<talkaction words="!seepoll" event="script" value="PollSystem.lua"/>

<talkaction words="!seeresults" event="script" value="PollSystem.lua"/>

<talkaction words="!remvotes" event="script" value="PollSystem.lua"/>

<talkaction words="!rempoll" event="script" value="PollSystem.lua"/>

<talkaction words="!votepoll" event="script" value="PollSystem.lua"/>

 

<talkaction words="love" script="love.lua"/>

 

<talkaction words="!attackguild" event="script" value="attackguild.lua"/>

<talkaction words="!vipdays" event="script" value="vip/vipdays.lua" />

<talkaction log="yes" words="/vip" access="5" event="script" value="vip/addvipp.lua" />

<talkaction log="yes" words="!balance" script="Bank/balance.lua" />

<talkaction log="yes" words="!deposit" script="Bank/deposit.lua" />

<talkaction log="yes" words="!withdraw" script="Bank/withdraw.lua" />

<talkaction log="yes" words="!depositall" script="Bank/deposit_all.lua" />

<talkaction log="yes" words="!withdrawall" script="Bank/withdraw_all.lua" />

<talkaction words="!bless" script="bless.lua" /></talkactions>

 

<!-- Guild War -->

<talkaction words="/war" channel="0" event="script" value="war.lua" desc="(Guild channel command) War management."/>

<talkaction words="/balance" channel="0" event="script" value="balance.lua" desc="(Guild channel command) Balance management."/>

 

 

 

Scripts do War

 

war.lua

 

function onSay(cid, words, param, channel)

local guild = getPlayerGuildId(cid)

if(not guild or getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER) then

doPlayerSendChannelMessage(cid, "", "You cannot execute this talkaction.", TALKTYPE_CHANNEL_W, 0)

return true

end

 

local t = string.explode(param, ",")

if(not t[2]) then

doPlayerSendChannelMessage(cid, "", "Not enough param(s).", TALKTYPE_CHANNEL_W, 0)

return true

end

 

local enemy = getGuildId(t[2])

if(not enemy) then

doPlayerSendChannelMessage(cid, "", "Guild \"" .. t[2] .. "\" does not exists.", TALKTYPE_CHANNEL_W, 0)

return true

end

 

if(enemy == guild) then

doPlayerSendChannelMessage(cid, "", "You cannot perform war action on your own guild.", TALKTYPE_CHANNEL_W, 0)

return true

end

 

local enemyName, tmp = "", db.getResult("SELECT `name` FROM `guilds` WHERE `id` = " .. enemy)

if(tmp:getID() ~= -1) then

enemyName = tmp:getDataString("name")

tmp:free()

end

 

if(isInArray({"accept", "reject", "cancel"}, t[1])) then

local query = "`guild_id` = " .. enemy .. " AND `enemy_id` = " .. guild

if(t[1] == "cancel") then

query = "`guild_id` = " .. guild .. " AND `enemy_id` = " .. enemy

end

 

tmp = db.getResult("SELECT `id`, `begin`, `end`, `payment` FROM `guild_wars` WHERE " .. query .. " AND `status` = 0")

if(tmp:getID() == -1) then

doPlayerSendChannelMessage(cid, "", "Currently there's no pending invitation for a war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0)

return true

end

 

if(t[1] == "accept") then

local _tmp = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild)

local state = _tmp:getID() < 0 or _tmp:getDataInt("balance") < tmp:getDataInt("payment")

 

_tmp:free()

if(state) then

doPlayerSendChannelMessage(cid, "", "Your guild balance is too low to accept this invitation.", TALKTYPE_CHANNEL_W, 0)

return true

end

 

db.query("UPDATE `guilds` SET `balance` = `balance` - " .. tmp:getDataInt("payment") .. " WHERE `id` = " .. guild)

end

 

query = "UPDATE `guild_wars` SET "

local msg = "accepted " .. enemyName .. " invitation to war."

if(t[1] == "reject") then

query = query .. "`end` = " .. os.time() .. ", `status` = 2"

msg = "rejected " .. enemyName .. " invitation to war."

elseif(t[1] == "cancel") then

query = query .. "`end` = " .. os.time() .. ", `status` = 3"

msg = "canceled invitation to a war with " .. enemyName .. "."

else

query = query .. "`begin` = " .. os.time() .. ", `end` = " .. (tmp:getDataInt("end") > 0 and (os.time() + ((tmp:getDataInt("begin") - tmp:getDataInt("end")) / 86400)) or 0) .. ", `status` = 1"

end

 

query = query .. " WHERE `id` = " .. tmp:getDataInt("id")

if(t[1] == "accept") then

doGuildAddEnemy(guild, enemy, tmp:getDataInt("id"), WAR_GUILD)

doGuildAddEnemy(enemy, guild, tmp:getDataInt("id"), WAR_ENEMY)

end

 

tmp:free()

db.query(query)

doBroadcastMessage(getPlayerGuildName(cid) .. " has " .. msg, MESSAGE_EVENT_ADVANCE)

return true

end

 

if(t[1] == "invite") then

local str = ""

tmp = db.getResult("SELECT `guild_id`, `status` FROM `guild_wars` WHERE `guild_id` IN (" .. guild .. "," .. enemy .. ") AND `enemy_id` IN (" .. enemy .. "," .. guild .. ") AND `status` IN (0, 1)")

if(tmp:getID() ~= -1) then

if(tmp:getDataInt("status") == 0) then

if(tmp:getDataInt("guild_id") == guild) then

str = "You have already invited " .. enemyName .. " to war."

else

str = enemyName .. " have already invited you to war."

end

else

str = "You are already on a war with " .. enemyName .. "."

end

 

tmp:free()

end

 

if(str ~= "") then

doPlayerSendChannelMessage(cid, "", str, TALKTYPE_CHANNEL_W, 0)

return true

end

 

local frags = tonumber(t[3])

if(frags ~= nil) then

frags = math.max(10, math.min(1000, frags))

else

frags = 100

end

 

local payment = tonumber(t[4])

if(payment ~= nil) then

payment = math.max(100000, math.min(1000000000, payment))

tmp = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild)

 

local state = tmp:getID() < 0 or tmp:getDataInt("balance") < payment

tmp:free()

if(state) then

doPlayerSendChannelMessage(cid, "", "Your guild balance is too low for such payment.", TALKTYPE_CHANNEL_W, 0)

return true

end

 

db.query("UPDATE `guilds` SET `balance` = `balance` - " .. payment .. " WHERE `id` = " .. guild)

else

payment = 0

end

 

local begining, ending = os.time(), tonumber(t[5])

if(ending ~= nil and ending ~= 0) then

ending = begining + (ending * 86400)

else

ending = 0

end

 

db.query("INSERT INTO `guild_wars` (`guild_id`, `enemy_id`, `begin`, `end`, `frags`, `payment`) VALUES (" .. guild .. ", " .. enemy .. ", " .. begining .. ", " .. ending .. ", " .. frags .. ", " .. payment .. ");")

doBroadcastMessage(getPlayerGuildName(cid) .. " has invited " .. enemyName .. " to war till " .. frags .. " frags.", MESSAGE_EVENT_ADVANCE)

return true

end

 

if(not isInArray({"end", "finish"}, t[1])) then

return false

end

 

local status = (t[1] == "end" and 1 or 4)

tmp = db.getResult("SELECT `id` FROM `guild_wars` WHERE `guild_id` = " .. guild .. " AND `enemy_id` = " .. enemy .. " AND `status` = " .. status)

if(tmp:getID() ~= -1) then

local query = "UPDATE `guild_wars` SET `end` = " .. os.time() .. ", `status` = 5 WHERE `id` = " .. tmp:getDataInt("id")

tmp:free()

doGuildRemoveEnemy(guild, enemy)

doGuildRemoveEnemy(enemy, guild)

 

db.query(query)

doBroadcastMessage(getPlayerGuildName(cid) .. " has " .. (status == 4 and "mend fences" or "ended up a war") .. " with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE)

return true

end

 

if(status == 4) then

doPlayerSendChannelMessage(cid, "", "Currently there's no pending war truce from " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0)

return true

end

 

tmp = db.getResult("SELECT `id`, `end` FROM `guild_wars` WHERE `guild_id` = " .. enemy .. " AND `enemy_id` = " .. guild .. " AND `status` = 1")

if(tmp:getID() ~= -1) then

if(tmp:getDataInt("end") > 0) then

tmp:free()

doPlayerSendChannelMessage(cid, "", "You cannot request ending for war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0)

return true

end

 

local query = "UPDATE `guild_wars` SET `status` = 4, `end` = " .. os.time() .. " WHERE `id` = " .. tmp:getDataInt("id")

tmp:free()

 

db.query(query)

doBroadcastMessage(getPlayerGuildName(cid) .. " has signed an armstice declaration on a war with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE)

return true

end

 

doPlayerSendChannelMessage(cid, "", "Currently there's no active war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0)

return true

 

 

balance.lua

 

local function isValidMoney(value)

if(value == nil) then

return false

end

 

return (value > 0 and value <= 99999999999999)

end

 

function onSay(cid, words, param, channel)

local guild = getPlayerGuildId(cid)

if(guild == 0) then

return false

end

 

local t = string.explode(param, ' ', 1)

if(getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER and isInArray({ 'pick' }, t[1])) then

if(t[1] == 'pick') then

local money = { tonumber(t[2]) }

if(not isValidMoney(money[1])) then

doPlayerSendChannelMessage(cid, '', 'Invalid amount of money specified.', TALKTYPE_CHANNEL_W, 0)

return true

end

 

local result = db.getResult('SELECT `balance` FROM `guilds` WHERE `id` = ' .. guild)

if(result:getID() == -1) then

return false

end

 

money[2] = result:getDataLong('balance')

result:free()

 

if(money[1] > money[2]) then

doPlayerSendChannelMessage(cid, '', 'The balance is too low for such amount.', TALKTYPE_CHANNEL_W, 0)

return true

end

 

if(not db.query('UPDATE `guilds` SET `balance` = `balance` - ' .. money[1] .. ' WHERE `id` = ' .. guild .. ' LIMIT 1;')) then

return false

end

 

doPlayerAddMoney(cid, money[1])

doPlayerSendChannelMessage(cid, '', 'You have just picked ' .. money[1] .. ' money from your guild balance.', TALKTYPE_CHANNEL_W, 0)

else

doPlayerSendChannelMessage(cid, '', 'Invalid sub-command.', TALKTYPE_CHANNEL_W, 0)

end

elseif(t[1] == 'donate') then

local money = tonumber(t[2])

if(not isValidMoney(money)) then

doPlayerSendChannelMessage(cid, '', 'Invalid amount of money specified.', TALKTYPE_CHANNEL_W, 0)

return true

end

 

if(getPlayerMoney(cid) < money) then

doPlayerSendChannelMessage(cid, '', 'You don\'t have enough money.', TALKTYPE_CHANNEL_W, 0)

return true

end

 

if(not doPlayerRemoveMoney(cid, money)) then

return false

end

 

db.query('UPDATE `guilds` SET `balance` = `balance` + ' .. money .. ' WHERE `id` = ' .. guild .. ' LIMIT 1;')

doPlayerSendChannelMessage(cid, '', 'You have transfered ' .. money .. ' money to your guild balance.', TALKTYPE_CHANNEL_W, 0)

else

local result = db.getResult('SELECT `name`, `balance` FROM `guilds` WHERE `id` = ' .. guild)

if(result:getID() == -1) then

return false

end

 

doPlayerSendChannelMessage(cid, '', 'Current balance of guild ' .. result:getDataString('name') .. ' is: ' .. result:getDataLong('balance') .. ' bronze coins.', TALKTYPE_CHANNEL_W, 0)

result:free()

end

 

return true

end

 

Link para o comentário
Compartilhar em outros sites

Falta! sajia

 

Usa assim:

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>

<!-- Gods -->
<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

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

<!-- Gamemasters -->
<talkaction log="yes" words="/ghost" 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="3" event="script" value="teleportmaster.lua"/>
<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
<talkaction log="yes" words="/goto" access="3" 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" access="3" words="/wp" event="script" value="waypoints.lua"/>
<!-- Senior Tutors -->
<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
<talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

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

<!-- Players -->
<talkaction words="!frags" event="script" value="frags.lua"/>
<talkaction words="!online" event="script" value="online.lua"/>
<talkaction words="!uptime" event="script" value="uptime.lua"/>
<talkaction words="!pvp" event="script" value="pvp.lua"/>
<talkaction words="!q" event="script" value="money.lua"/>
<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
<talkaction words="/commands" event="script" value="commands.lua"/>

<!-- Houses -->
<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!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="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>

<!-- Guilds -->
<talkaction words="!createguild" event="function" value="guildCreate"/>
<talkaction words="!joinguild" event="function" value="guildJoin"/>

<!-- (Deprecated) Redirect old '/' to '!' -->
<talkaction words="/online" hide="yes" event="script" value="online.lua"/>
<talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>
<talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/>
<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
<talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>
<!-- Custom systems -->
<talkaction words="!notice" event="script" value="notice.lua"/>
<talkaction words="!rank" script="ranks.lua"/>
<talkaction words="!service" event="script" value="Fragas.lua"/>
<talkaction words="!jail" script="Cadeia.lua"/>
<talkaction words="!unjail" script="Cadeia.lua"/>
<talkaction words="/jail" script="Cadeia.lua"/>
<talkaction words="/unjail" script="Cadeia.lua"/>
<talkaction words="!necromancer" script="demonic.lua"/>
<talkaction words="!nightmare" script="love.lua"/>
<talkaction filter="word" words="/guild" script="guildcast.lua"/>
<talkaction words="!afk" event="script" value="afk.lua"/>

<!-- custon By Revange -->
<!-- pollsystem talkactions -->
<talkaction words="!createpoll" event="script" value="PollSystem.lua"/>
<talkaction words="!activatepoll" event="script" value="PollSystem.lua"/>
<talkaction words="!cancelpoll" event="script" value="PollSystem.lua"/>
<talkaction words="!seepoll" event="script" value="PollSystem.lua"/>
<talkaction words="!seeresults" event="script" value="PollSystem.lua"/>
<talkaction words="!remvotes" event="script" value="PollSystem.lua"/>
<talkaction words="!rempoll" event="script" value="PollSystem.lua"/>
<talkaction words="!votepoll" event="script" value="PollSystem.lua"/>
<talkaction words="love" script="love.lua"/>
<talkaction words="!attackguild" event="script" value="attackguild.lua"/>
<talkaction words="!vipdays" event="script" value="vip/vipdays.lua" />
<talkaction log="yes" words="/vip" access="5" event="script" value="vip/addvipp.lua" />
<talkaction log="yes" words="!balance" script="Bank/balance.lua" />
<talkaction log="yes" words="!deposit" script="Bank/deposit.lua" />
<talkaction log="yes" words="!withdraw" script="Bank/withdraw.lua" />
<talkaction log="yes" words="!depositall" script="Bank/deposit_all.lua" />
<talkaction log="yes" words="!withdrawall" script="Bank/withdraw_all.lua" />
<talkaction words="!bless" script="bless.lua" />

<!-- Guild War -->
<talkaction words="/war" channel="0" event="script" value="war.lua" desc="(Guild channel command) War management."/>
<talkaction words="/balance" channel="0" event="script" value="balance.lua" desc="(Guild channel command) Balance management."/>
</talkactions>

Link para o comentário
Compartilhar em outros sites

falta </talkactions>

no fim da talkactions.xml nao?

 

Colokei a tag no final, mas n mudo em nada.. mesmo erro.

 

falta </talkactions>

no fim da talkactions.xml nao?

 

Colokei a tag no final, mas n mudo em nada.. mesmo erro.

 

 

@EDIT

 

Coloquei tag errada, acabou o erro. Vo testar e edito.

 

 

 

@EDIT

 

Pronto, não tem mais erro, mas tambem não funciona o war..

eu invito, mas n acontece nada.

Editado por FaltouCriatividade
Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...