Tudo que L3K0T postou
- Anunciar quem Matou um Monstro
- Anunciar quem Matou um Monstro
- Deixando as Sprites mais Rápida no OTclient
- Deixando as Sprites mais Rápida no OTclient
-
Anunciar quem Matou um Monstro
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
-
Anunciar quem Matou um Monstro
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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"/>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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"/>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
não entro vai falando ai no topico
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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"/>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
tenta essa tag <event type="death" name="avisarServer" event="script" value="avisar.lua"/>
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
a tag do creaturescript é diferente manda o creaturescript.xml pra mim ver
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
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>
-
(Resolvido)[Error] Tela Estendida TFS 0.4
está bom obg só que no otc 0.6.6 não tem somente #ifndef CLIENT_CONST_H #define CLIENT_CONST_H
-
(Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matou
manda seu monster.xml do boss