Ir para conteúdo
Banner com Efeitos

L3K0T

Diretor
  • Registro em

  • Última visita

Tudo que L3K0T postou

  1. preciso ver isso, ainda estou começando em tfs 1.3 rs
  2. tbm pois da pra usar pelo proprio lua ou registra no xml monstro vai por gosto
  3. 100 milésimos então se diminuir mais rápido fica e pra aumentar é 500+ pra lento. 100 pra rápido 500 pra lento 100 = rápido 100 = rápido 1000 lerdo 1000 lerdo 500 = padrão 500 = padrão
  4. testei em otc 0.6.6 tente recompilar amigo o tutorial que foi colocado é testado e uso. "OTClient 0.6.6" ou superior
  5. tenta assim local monstros = {"Monstro1","Monstro2","Monstro3"} function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) if monster:getName() == monstros then Game.broadcastMessage("O Jogador "..killer:getName().." matou o Boss " ..monster:getName().. "! ") end return true end
  6. L3KOT tfs: 1.3 Bom esse sistema é bem simples, ele anuncia pro servidor todo ao matar um tal monstro especifico. 1° vai em otserv\data\creaturescripts\scripts copia um arquivo.lua, renomeia para monsterkill.lua e add dentro;;; function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local monstro = "Diablo" if monster:getName() == monstro then Game.broadcastMessage("O Jogador "..killer:getName().." matou o Boss " ..monster:getName().. "! ") end return true end Em creaturescripts.xml add <event type="death" name="monsterkill" script="monsterkill.lua"/> Abra o xml do monstro que você quer que apareça a mensagem global depois de mata-lo e add lá no final depois de loot;; <script> <event name="monsterkill" /> </script> feito isso, salve tudo e pronto!!! Sucesso e jamais desista do seus projetos. ajuda sandada para @Faysal creditos: L3K0T and @Faysal
  7. resolvido @Faysal desculpe a demora tive que dar uma estudada rapidinha pra pegar o jeito novamente rsrs script.lua function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local monstro = "Diablo" if monster:getName() == monstro then Game.broadcastMessage("O Jogador "..killer:getName().." matou o Boss " ..monster:getName().. "! ") end return true end tag <event type="death" name="teste" script="teste.lua"/> xml do monstro <script> <event name="teste" /> </script>
  8. então pelo que vi precisa ser um onKill em vez de onDeath deixa eu pensar um pouco aqui, faz assim apaga todos os script que foi testado ai até as tag e registro pra nos tentar com onKill
  9. local boss = {"Diablo"} function onDeath(cid, target) if isInArray(boss, getCreatureName(target)) then broadcastMessage("O Jogador "..getCreatureName(cid).. " matou o boss " .. getCreatureName(target) .. "! ", MESSAGE_EVENT_ADVANCE) return true end
  10. function onDeath(cid, target) broadcastMessage("teste", MESSAGE_EVENT_ADVANCE) return true end <event script="teste.lua" name="teste" type="death"/> diablo.xml <script> <event name="teste" /> </script>
  11. local boss = {"Diablo"} function onKill(cid, target, lastHit) broadcastMessage("teste") return true end testa assim e ve se aparece algo tag: <event script="teste.lua" name="teste" type="kill"/>
  12. local boss = {"Diablo"} function onKill(cid, target, lastHit) if isInArray(boss, getCreatureName(target)) then broadcastMessage("O Jogador "..getCreatureName(isMonster(cid)).. " matou o boss " .. getCreatureName(target) .. "! ", MESSAGE_EVENT_ADVANCE) end return true end tag <event type="kill" name="teste" script="teste.lua"/>
  13. local boss = {"Diablo"} function onDeath(cid, target) if isInArray(boss, getCreatureName(target)) then broadcastMessage("O Jogador "..getCreatureName(cid).. " matou o boss " .. getCreatureName(target) .. "! ", MESSAGE_EVENT_ADVANCE) end return true end não desiste não, registra o evento certinho
  14. local boss = {"Diablo"} function onDeath(cid, target) if isInArray(boss, getCreatureName(target)) then broadcastMessage("O Jogador "..getCreatureName(isMonster(cid)).. " matou o boss " .. getCreatureName(target) .. "! ", MESSAGE_EVENT_ADVANCE) end return true end
  15. function onKill(cid, target, lastHit) if isPlayer(target) == true then Game.broadcastMessage("[".. getCreatureName(isMonster(cid)) .."] acabou de matar o [" .. getCreatureName(target) .. "]", MESSAGE_EVENT_ADVANCE) end return true end tag <event type="kill" name="teste" script="teste.lua"/> register player:registerEvent("teste") só testa e ve no que da
  16. function onDeath(cid, corpse, killer) local monstName = "Diablo" local target = getCreatureTarget(cid) if isMonster(cid) then doBroadcastMessage("O Jogador "..getPlayerName(killer[1]).." matou o boss Diablo!") end return TRUE end tag <event type="death" name="teste" script="teste.lua"/> monster.xml: <script> <event name="teste"/> </script>
  17. function onDeath(cid, corpse, killer) local monstName = "Diablo" local target = getCreatureTarget(cid) if isMonster(cid) then doBroadcastMessage("O Jogador "..getPlayerName(killer[1]).." matou o boss Diablo!") end return TRUE end
  18. function onDeath(cid, corpse, killer) local monstName = "Diablo" local target = getCreatureTarget(cid) if isMonster(cid) then doBroadcastMessage("O Jogador "..getPlayerName(killer[1]).." matou o boss Diablo!", TALKTYPE_RED) end return TRUE end
  19. function onDeath(cid, corpse, deathList) local playerName = deathList[1] if getCreatureName(cid) == 'Diablo' then broadcastMessage("O jogador "..getCreatureName(playerName).." matou o boss ".. getCreatureName(cid) ..".") end return true end tag <event type="death" name="avisarServer" script="custom/turtleTask.lua"/>
  20. tenta essa tag <event type="death" name="avisarServer" event="script" value="avisar.lua"/>
  21. a tag do creaturescript é diferente manda o creaturescript.xml pra mim ver
  22. local boss = {"Diablo"} function onKill(cid, target, lastHit) if isPlayer(cid) and isInArray(boss, getCreatureName(target)) then broadcastMessage("O jogador ".. getCreatureName(cid) .." matou o boss " .. getCreatureName(target) ..".") end return true end tag: <event type="death" name="avisarServer" event="script" value="avisar.lua"/> monstro.xml <?xml version="1.0" encoding="UTF-8"?> <monster name="Diablo" nameDescription="Diablo" race="undead" experience="5000" speed="900" manacost="0" script="rewardboss.lua"> <health now="2000000" max="2000000"/> <look type="12" head="0" body="77" legs="77" feet="77" corpse="5995"/> <targetchange interval="3000" chance="100"/> <strategy attack="65" defense="5"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <script> <event name="diabloBroadcast"/> </script> <attacks> <attack name="melee" interval="1000" skill="200" attack="200"/> <attack name="death rain" interval="500"/> <attack name="diablo change" interval="1000"/> <attack name="orshabaal_deathstar" interval="10000" min="-500" max="-1500"/> <attack name="firefield" interval="1000" chance="30" radius="5" target="0"> <attribute key="areaEffect" value="fireattack"/> </attack> </attacks> <defenses armor="10" defense="10"> <defense name="healing" interval="20000" chance="5" min="1000" max="10000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="2000" chance="8" speedchange="10" duration="5000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="1"/> <immunity poison="1"/> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <loot> <item name="stealth ring" chance="13000"/> <item name="shield of honour" chance="50000"/> <item name="gold coin" chance="100000" countmax="35"/> <!-- Gold Coin --> <item name="fire rainbow shield" chance="75000"/> <item name="star amulet" chance="50000"/> <item name="magic plate armor" chance="75000"/> <item name="mastermind shield" chance="18000"/> <item name="gold coin" chance="100000" countmax="87"/> <!-- Gold Coin --> <item name="white pearl" countmax="15" chance1="13000"/> <item name="small amethyst" countmax="10" chance1="13000"/> </loot> <script> <event name="avisarServer"/> </script> </monster>
  23. está bom obg só que no otc 0.6.6 não tem somente #ifndef CLIENT_CONST_H #define CLIENT_CONST_H

Informação Importante

Confirmação de Termo