Ir para conteúdo
  • Cadastre-se

Normal [Solved] Atualizar Script tfs 0.3.6 -> 1.2


Posts Recomendados

Alguem poderia atualizar esse script para mim? Estou tentando mas obtenho "attemp to concatenate a bolean value stack traceback: [C]: in function '__concat'

 

-- This program is free software: you can redistribute it and/or modify

-- it under the terms of the GNU General Public License as published by

-- the Free Software Foundation, either version 3 of the License, or

-- (at your option) any later version.

--

-- This program is distributed in the hope that it will be useful,

-- but WITHOUT ANY WARRANTY; without even the implied warranty of

-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

-- GNU General Public License for more details.

--

-- You should have received a copy of the GNU General Public License

-- along with this program. If not, see <http://www.gnu.org/licenses/>.

-- //

function onStepIn(cid, item, pos, fromPosition)

local pos = getThingPos(cid)

if item.actionid == 16203 then

if not isPlayer(cid) then

return true

end

if getGlobalStorageValue(COH_STATUS) == getPlayerGuildName(cid) then

doSendMagicEffect(getThingPos(cid), 14)

doSendAnimatedText(pos, "CoH", math.random(1, 255))

else

doSendMagicEffect(getThingPos(cid), 2)

doTeleportThing(cid, fromPosition, false)

doPlayerSendCancel(cid, "[CoH] Você não pertence á guild "..getGlobalStorageValue(COH_STATUS)..".")

end

return true

end

if item.actionid == 16202 then

if not isPlayer(cid) then

return true

end

if getPlayerGuildId(cid) > 0 then

if (getGlobalStorageValue(COH_STATUS) ~= getPlayerGuildName(cid)) then

doPlayerSendTextMessage(cid, 20, "[Castle of Honor] Você e sua guild estão no comando, os antigos donos ["..tostring(getGlobalStorageValue(COH_STATUS))..] podem se vingar!")

setGlobalStorageValue(COH_PREPARE1, -1)

setGlobalStorageValue(COH_PREPARE2, -1)

setGlobalStorageValue(COH_STATUS, getPlayerGuildName(cid))

doCastleRemoveEnemies()

doBroadcastMessage("[Castle of Honor] O jogador ["..getCreatureName(cid).."] e sua guild ["..getPlayerGuildName(cid).."] estão no comando do castelo, vá dominar e impedir isso!")

end

else

doSendMagicEffect(pos, 2)

doTeleportThing(cid, fromPosition, false)

doPlayerSendCancel(cid, "[CoH] Você não possui uma guild.")

end

return true

end

if item.actionid == 16200 then

if not isPlayer(cid) then

return true

end

if getPlayerGuildId(cid) > 0 then

doSendAnimatedText(pos, "CoH", math.random(1, 255))

if (getGlobalStorageValue(COH_PREPARE1) ~= getPlayerGuildName(cid)) and ((getGlobalStorageValue(COH_PREPARE2) ~= getPlayerGuildName(cid))) then

setGlobalStorageValue(COH_PREPARE1, getPlayerGuildName(cid))

doBroadcastMessage("[Castle of Honor] Atenção! A guild "..getPlayerGuildName(cid).." está tentando dominar o castelo, preparem-se!")

end

else

doSendMagicEffect(pos, 2)

doTeleportThing(cid, fromPosition, false)

doPlayerSendCancel(cid, "[CoH] Você não possui uma guild.")

return true

end

end

if item.actionid == 16201 then

if not isPlayer(cid) then

return true

end

doSendAnimatedText(pos, "CoH", math.random(1, 255))

if (getGlobalStorageValue(COH_PREPARE2) ~= getPlayerGuildName(cid)) then

setGlobalStorageValue(COH_PREPARE2, getPlayerGuildName(cid))

doBroadcastMessage("[Castle of Honor] Atenção! A guild "..getPlayerGuildName(cid).." está muito próxima do domínio, ataquem!")

end

end

return true

end

@Edit ja consegui aqui, quem precisar atualizar ta funcionando 100% no meu tfs 1.2

function onStepIn(cid, item, pos, fromPosition)

local pos = getThingfromPos(cid)

if item.actionid == 16203 then

if not isPlayer(cid) then

return true

end

if getGlobalStorageValue(COH_STATUS) == getPlayerGuildName(cid) then

doSendMagicEffect(getThingfromPos(cid), 14)

doPlayerSendTextMessage(cid, 4, "[CoH] Membros da guild dominante "..getGlobalStorageValue(COH_STATUS).." possuem o privilegio de passar por aqui!")

else

doSendMagicEffect(getThingfromPos(cid), 2)

doTeleportThing(cid, fromPosition, false)

doPlayerSendCancel(cid, "[CoH] Você não pertence á guild dominante "..getGlobalStorageValue(COH_STATUS)..".")

end

return true

end

if item.actionid == 16202 then

if not isPlayer(cid) then

return true

end

if getPlayerGuildLevel(cid) > 0 then

if (getGlobalStorageValue(COH_STATUS) ~= getPlayerGuildName(cid)) then

doPlayerSendTextMessage(cid, 20, "[Castle of Honor] Você e sua guild estão no comando, os antigos donos ["..tostring(getGlobalStorageValue(COH_STATUS)).."] podem se vingar!")

setGlobalStorageValue(COH_PREPARE1, -1)

setGlobalStorageValue(COH_PREPARE2, -1)

setGlobalStorageValue(COH_STATUS, getPlayerGuildName(cid))

doCastleRemoveEnemies()

broadcastMessage("[Castle of Honor] O jogador ["..getCreatureName(cid).."] e sua guild ["..getPlayerGuildName(cid).."] estão agora no comando do castelo. Tente dominar o Castle ou os aceite como governantes!")

end

else

doSendMagicEffect(getThingfromPos(cid), 2)

doTeleportThing(cid, fromPosition, false)

doPlayerSendCancel(cid, "[CoH] Você não possui uma guild.")

end

return true

end

if item.actionid == 16200 then

if not isPlayer(cid) then

return true

end

if getPlayerGuildLevel(cid) > 0 then

doPlayerSendTextMessage(cid, 4, "CoH Invasion Camp!")

if (getGlobalStorageValue(COH_PREPARE1) ~= getPlayerGuildName(cid)) and ((getGlobalStorageValue(COH_PREPARE2) ~= getPlayerGuildName(cid))) then

setGlobalStorageValue(COH_PREPARE1, getPlayerGuildName(cid))

broadcastMessage("[Castle of Honor] Atenção! A guild "..getPlayerGuildName(cid).." está indo em direção ao Castelo. Guild dominante preparem-se!")

end

else

doSendMagicEffect(getThingfromPos(cid), 2)

doTeleportThing(cid, fromPosition, false)

doPlayerSendCancel(cid, "[CoH] Você não possui uma guild.")

return true

end

end

if item.actionid == 16201 then

if not isPlayer(cid) then

return true

end

doPlayerSendTextMessage(cid, 4, "CoH Invasion Castle!")

if (getGlobalStorageValue(COH_PREPARE2) ~= getPlayerGuildName(cid)) then

setGlobalStorageValue(COH_PREPARE2, getPlayerGuildName(cid))

broadcastMessage("[Castle of Honor] Atenção! A guild "..getPlayerGuildName(cid).." está próxima do domínio do Castle. Guild dominanete defenda o Castle para não perde-lo!")

end

end

return true

end

Editado por Deletera (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 11 months later...
  • 3 months later...

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.


  • Conteúdo Similar

    • Por Jaurez
      .
    • Por Cat
      Em alguns casos, o tibia 8.60 comum não abre de jeito nenhum no map editor, mesmo desmarcando check file signatures e configurando o path corretamente.
       
      Este é o client 8.60 adaptado para o Remere's Map Editor. Resolvi postar já que ele foi removido do site oficial do RME. (ficou apenas a versão para linux lá)
      Se estiver tendo problemas para abrir a versão 8.60, tente utilizar este.
                                                                                                                     
      Baixar o Tibia Client 8.60 que funciona no Remere’s Map Editor
      Essa versão do Tibia 8.60 client resolve o erro unsupported client version ou Could not locate tibia.dat and/or tibia.spr, please navigate to your tibia 8.60 installation folder.
       
      Downloads
      https://tibiaking.com/applications/core/interface/file/attachment.php?id=47333

      Scan: https://www.virustotal.com/gui/file/333e172ac49ba2028db9eb5889994509e7d2de28ebccfa428c04e86defbe15cc
       
    • Por danilo belato
      Fala Galera To Com um problema aki 
       
      quero exporta umas sprites de um server para colocar em outro 
       
      eu clico na sprites ai aparece tds a forma delas do lado de la >>
       
      ai eu clico nela e ponho a opiçao de export mais quando salvo a sprite ela n abri 
       
      aparece isso quando tento vê-la 
       
      visualização não disponível ( no formatos png e bitmap)
       
      Agora no formato idc fala que o paint n pode ler 
       
      me ajudem ae...
    • Por Vitor Bicaleto
      Galera to com o script do addon doll aqui, quando eu digito apenas "!addon" ele aparece assim: Digite novamente, algo está errado!"
      quando digito por exemplo: "!addon citizen" ele não funciona e não da nenhum erro
       
      mesma coisa acontece com o mount doll.. 
    • Por Ayron5
      Substitui uma stone no serve, deu tudo certo fora  esse  erro ajudem  Valendo  Rep+  Grato  

      Erro: data/actions/scripts/boost.lua:557: table index is nil
       [Warning - Event::loadScript] Cannot load script (data/actions/scripts/boost.lua)

      Script:
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo