Ir para conteúdo

Nazo

Banido
  • Registro em

  • Última visita

Tudo que Nazo postou

  1. Primeiramente, tente reinstalar o MySQL, se não funcionar, volte a dizer.
  2. Na pasta npc adicione o seunpc.xml com o seguinte conteúdo: <?xml version="1.0"?> <npc name="SeuNPC" script="data/npc/scripts/seunpc.lua" walkinterval="50000" floorchange="0"> <health now="100" max="100"/> <look type="63" head="0" body="0" legs="0" feet="0" addons="3"/> <parameters> <parameter key="message_greet" value="Olá! |PLAYERNAME|, deseja {trocar} seus diamonds por dias premium?..." /> </parameters> </npc> Em npc/scripts/ adicione o seunpc.lua com o seguinte conteúdo: config = { item = 2145 -- id do diamond } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'TROCAR') or msgcontains(msg, 'trocar')) then npcHandler:say("Quantos diamonds você deseja trocar por dias premium?", cid) talkState[cid] = 1 elseif talkState[cid] == 1 then msg = tonumber(msg) if(doPlayerRemoveItem(cid,config.item,msg) and isNumber(msg) and msg > 0)then doPlayerAddPremiumDays(cid, msg) str = "Agora você possui mais " .. msg .. " dia(s) premium." else str = "Você não possui essa quantia." end npcHandler:say(str, cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  3. Olá, meu chapa. Adicione em creaturescripts/scripts o arquivo com o nome do seu pokemon, ex: pikachu.lua com o seguinte script: -- by Nazo (tibiaking.com) local config = { monster = "Pikachu", -- nome do monstro que ao morrer ativará o portal time = 30, -- tempo em segundos que o portal levará para sumir portal = 1387, -- id do portal a ser criado pos = {x = 4123, y = 2342, z = 7} -- posição para onde o tp levará } function removePortal(position) doRemoveThing(getTileItemById(position, config.portal).uid, 1) return true end function onDeath(cid, corpse, killer) if(isMonster(cid) and getCreatureName(cid) == config.monster) then teleport = doCreateTeleport(config.portal, config.pos, getCreaturePosition(cid)) addEvent(removePortal,config.time*1000,getCreaturePosition(cid)) end return true end Em creaturescripts.xml a seguinte tag: <event type="death" name="PikachuTP" event="script" value="pikachu.lua"/> No arquivo XML do monstro (aqui seria o pikachu.xml), adicione isso logo abaixo de "</flags>": <script> <event name="PikachuTP"/> <!-- mesmo nome do evento de creaturescripts.xml --> </script> (se já houver uma parte com <script></script>, apenas coloque a segunda linha dentro das tags script já existentes)
  4. Nazo postou uma resposta no tópico em Suporte OTServer Derivados
    @Micheel15, pode usar esse script aqui, vai funcionar tranquilamente para você local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) --setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -30, 1.7, 0) function onGetFormulaValues(cid, level, maglevel) min = (level * 4 + maglevel * 5) * 2.3 - 25 max = (level * 5 + maglevel * 6) * 2.9 if min < 550 then min = 750 end return min, max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") function onCastSpell(cid, var) texto = "Aaaahh.." -- mude aqui o texto que quiser que o player fale cor = TEXTCOLOR_ORANGE -- cor (é só mudar o ORANGE para por exemplo, BLUE, RED, etc. doSendAnimatedText(getPlayerPosition(cid), texto, cor) return doCombat(cid, combat, var) end @gabriel28, você não pode colocar um "and" em um return, o return é uma função de retorno da função que está sendo chamada com o 'function', então você tem que colocar o que desejar ANTES do return, e quando você usa algo com o parâmetro "cid", tem que ficar dentro da "function" que está sendo chamada no script que possui como um dos parâmetros o creatureid (cid), como na onCastSpell(cid,var), note que a função onCastSpell te traz essas duas variáveis com valores dentro, se você colocar fora da função, o valor é inexistente, pois não foi chamado por nenhum local.
  5. Preciso ver o código da página em questão para ajudá-lo, favor poste-o aqui.
  6. Nazo postou uma resposta no tópico em Ouvidoria
    Buenas TK! Então, notei que não há áreas sobre banco de dados no fórum, coisa que é muito importante na estrutura dos servidores em geral, e que é vista como tabu ou monstro de 7 cabeças por pessoas com desconhecimento sobre (pelo menos quando eu era desinformado sobre, via como o capeta algo monstruoso). Então quero sugerir novas áreas relacionadas, tanto como tutoriais, suporte, etc.
  7. Atenção, fiz duas versões simples pra você, se o nick for como "[VIP]Nazo" utilize esse: UPDATE players SET name = replace(name, '[VIP]', '') WHERE name LIKE '[VIP]%'; Porém, se o nick houver um espaço entre vip e o nick do player, como "[VIP] Nazo", utilize isso: UPDATE players SET name = replace(name, '[VIP] ', '') WHERE name LIKE '[VIP]%'; Lembrando sempre de fazer backup do seu banco de dados antes de quaisquer alterações manuais, pois você pode prejudicar sem volta seus dados.
  8. Nazo postou uma resposta no tópico em Portal
    Considerando que que já é permitido links sobre o mercado, não haveria motivos para não liberar sobre freelance, por exemplo, mas claro que regras são necessárias, com limitações pra não virar bagunça, e não perdermos a essência do Open Tibia.
  9. Nazo postou uma resposta no tópico em Portal
    Concordo com as duas enquetes, mas concordo que deve haver uma limitação na assinatura, para que não seja criado floods, mas super apoio a ideia de uma divulgação na assinatura, pois os membros só veem sua assinatura caso você poste, e a menos que você esteja floodando pelo fórum, você estará contribuindo com algo em algum post, e quanto mais você postar, mais ajudará o fórum e mais pessoas verão seu comércio.
  10. Nazo postou uma resposta no tópico em Ouvidoria
    Buenas, TK! Bom, eu notei que em algumas seções, tópicos respondidos/resolvidos continuam na mesma seção, poderia haver uma subseção de "respondidos/resolvidos" para que ficasse melhor organizado; A possibilidade de upar algum som no perfil, para quando o visitante entrar escutar, acompanhado de uma regra nova sobre o tal som, e talvez um botão de denúncia para o mesmo, com X limite de tamanho/tempo para que não abuse do espaço do TK. Atenciosamente, eu =)
  11. A storage, como diz na própria palavra, é um armazenamento de valor, se você dá o valor 1 para a storage 123456 no player "Nazo", e fizer um script que o player "Nazo" só pode executar caso tenha o valor 1 na storage 123456, ocorrerá assim, entende? Toda storage por padrão, já existe, mas não fica salva no banco de dados, quando ela não foi declarada ainda, ela tem o valor "-1", e geralmente os valores para quests utilizados são "-1" (para caso não tenha feito ainda, e "1" para caso o player já tenha feito, exemplo rápido: function onUse(cid, item, frompos, item2, toPosition) config{ storage = 123456, -- valor da storage item = 2160 -- prêmio } if getPlayerStorageValue(cid,config.storage) == -1 then -- se o player não tiver nada na storage doPlayerSendTextMessage(cid,22,"Você ganhou 10k.") doPlayerAddItem(cid,config.item,10) setPlayerStorageValue(cid,config.storage,1) -- adiciona o valor 1 na storage else -- se não (se o player já tiver algo na storage) doPlayerSendTextMessage(cid,22,"Você já fez esta quest.") end end
  12. Tente isso: function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local items = {{21699, 1},{24301, 1}, {23495, 1}} --id do item, quantidade function creatureSayCallback(cid, type, msg) local msg, player = string.lower(msg), Player(cid) if not npcHandler:isFocused(cid) then if isInArray({"hi", "hello"}, msg) then npcHandler:addFocus(cid) if player:getStorageValue(56473) == -1 then if player:getStorageValue(56473) == -1 then npcHandler:say("Hi, ".. player:getName().."! hello young warrior, I realized that you are looking for some adventures, if you can {help} me I can ask one of my servants to take you to a mysterious island.?", cid) npcHandler.topic[cid] = 1 else npcHandler:say("help, ".. player:getName().."! So you are interested? well, what I ask is simple, I have lost 3 chests with personal treasures through the forest, manholes and building, can you bring me the items that they contain??", cid) npcHandler.topic[cid] = 2 end else npcHandler:say("Hi, ".. player:getName().."! Can you find my treasures?", cid) npcHandler.topic[cid] = 3 end else npcHandler:say("I have already told my servant that I can help you to reach such an island.", cid) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) end elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 1 then player:setStorageValue(56473, 1) npcHandler:say("Ok, now I will wait for you. Be careful!", cid) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 2 then player:setStorageValue(56473, 1) npcHandler:say("Ok, now I will wait for you. Be careful!", cid) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 3 then if player:removeItem(items[1][1], items[1][2]) then player:setStorageValue(56473, 1) npcHandler:say("Thanks! I'll tell my servant that I can take you to the island.", cid) npcHandler.topic[cid] = 0 else npcHandler:say("Sorry, but you still have not found all my treasures.", cid) npcHandler.topic[cid] = 0 end elseif msgcontains(msg, "no") and npcHandler.topic[cid] == 2 then npcHandler:say("Ok, I will wait a bit more.", cid) npcHandler.topic[cid] = 0 elseif msgcontains(msg, "bye") then npcHandler:say("Bye.", cid) npcHandler:releaseFocus(cid) else npcHandler:say("What?", cid) npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
  13. De nada, haha Se sua dúvida estiver sanada, marque a melhor resposta para você no botão esquerdo aos posts aqui.
  14. Tenta esse código meu chapa, modifiquei alguns erros que notei por cima: function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local items = {{21699, 1},{24301, 1}} --id do item, quantidade function creatureSayCallback(cid, type, msg) local msg, player = string.lower(msg), Player(cid) if not npcHandler:isFocused(cid) then if isInArray({"hi", "hello"}, msg) then npcHandler:addFocus(cid) if player:getStorageValue(56473) == -1 then if player:getStorageValue(56473) == -1 then npcHandler:say("Hi, ".. player:getName().."! hello young warrior, I realized that you are looking for some adventures, if you can {help} me I can ask one of my servants to take you to a mysterious island.?", cid) npcHandler.topic[cid] = 1 elseif npcHandler:say("help, ".. player:getName().."! So you are interested? well, what I ask is simple, I have lost 3 chests with personal treasures through the forest, manholes and building, can you bring me the items that they contain??", cid) npcHandler.topic[cid] = 2 else npcHandler:say("Hi, ".. player:getName().."! Can you find my treasures?", cid) npcHandler.topic[cid] = 3 end else npcHandler:say("I have already told my servant that I can help you to reach such an island.", cid) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) end elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 1 then player:setStorageValue(56473, 1) npcHandler:say("Ok, now I will wait for you. Be careful!", cid) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 2 then player:setStorageValue(56473, 1) npcHandler:say("Ok, now I will wait for you. Be careful!", cid) npcHandler.topic[cid] = 0 npcHandler:releaseFocus(cid) elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 3 then if player:removeItem(items[1][1], items[1][2]) then player:setStorageValue(56473, 1) npcHandler:say("Thanks! I'll tell my servant that I can take you to the island.", cid) npcHandler.topic[cid] = 0 else npcHandler:say("Sorry, but you still have not found all my treasures.", cid) npcHandler.topic[cid] = 0 end elseif msgcontains(msg, "no") and npcHandler.topic[cid] == 2 then npcHandler:say("Ok, I will wait a bit more.", cid) npcHandler.topic[cid] = 0 elseif msgcontains(msg, "bye") then npcHandler:say("Bye.", cid) npcHandler:releaseFocus(cid) else npcHandler:say("What?", cid) npcHandler.topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) Você utilizou de modo errado a matriz (array dentro de array), você colocou 3 items dentro do array "items", sendo que o primeiro e o terceiro são iguais, então acho que o último é desnecessário. OBS: Você tem dois items ainda dentro do array, mas só usa um, vou lhe explicar como funciona a matriz: items = { {"a",1}, {"b",2} } Se você digitar: print(items[1]) Retornará apenas o valor da tabela (matriz), mas se digitar: print(items[1][2]) Resultará o segundo valor ([2]) da primeira ([1]) casa do array items: 1
  15. Nazo postou uma resposta no tópico em Suporte Tibia OTServer
    Testa isso: 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!") else doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "[CoH] Sua guild já domina este castelo.") 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, true) 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 Perdão por tantas tentativas, sou meio desatento quando não faço código testando xd
  16. Nazo postou uma resposta no tópico em Suporte Tibia OTServer
    Tipo, a msg de "sua guild já domina" aparece? Testa isso: 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!") else doTeleportThing(cid, fromPosition) doPlayerSendCancel(cid, "[CoH] Sua guild já domina este castelo.") 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, true) 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
  17. É devido o erro "database is locked", tente fazer isso: 1 - Copie a sua database (arquivo.s3db) pra outro local; 2 - Substitua a sua database com o arquivo copiado. Esse erro geralmente é causado por algum programa estar usando a database, veja se o sqlite está aberto e em uso, se não der certo os passos anteriores, tente com o servidor ligado.
  18. Nazo postou uma resposta no tópico em Suporte Tibia OTServer
    Testa aí: 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!") else doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "[CoH] Sua guild já domina este castelo.") 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
  19. De nada meu parceiro, no lado do meu post que lhe ajudou tem um botão de melhor resposta (lado superior esquerdo), se puder apertá-lo, para resolver o tópico, facilita o trabalho da staff do fórum xD
  20. Vai na função de executar um código SQL (algo como SQL query editor) e digita isso aqui abaixo: CREATE TABLE IF NOT EXISTS `z_ots_comunication` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `action` varchar(255) NOT NULL, `param1` varchar(255) NOT NULL, `param2` varchar(255) NOT NULL, `param3` varchar(255) NOT NULL, `param4` varchar(255) NOT NULL, `param5` varchar(255) NOT NULL, `param6` varchar(255) NOT NULL, `param7` varchar(255) NOT NULL, `delete_it` int(2) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ); Se não funcionar, volte com o erro ;3
  21. Ah, sim, foi descuido meu, não notei que era SQLITE, perdão, rs. Aguarde um minutinho.
  22. Tipo, a parte pronta do site, gesior, modern, etc. Faltam tabelas na sua database, me diga qual acima você utiliza, ou apenas poste seu htdocs aqui zipado.
  23. Exporte seu banco de dados, informe a versão do TFS, do servidor, e o framework AAC que você utiliza (modern, gesior, znote, etc).
  24. Abra o arquivo playerdeath.lua, localizado em creaturescripts\scripts\ e adicione as seguintes linhas antes do último 'end' do arquivo: efeito = 165 // número do efeito que você deseja que apareça quando o indivíduo morre doSendMagicEffect(getPlayerPosition(player), efeito)
  25. Nazo postou uma resposta no tópico em Suporte Tibia OTServer
    É preciso que você poste o script do NPC para que possamos lhe ajudar xD

Informação Importante

Confirmação de Termo