
Tudo que L3K0T postou
-
First to Speak Summon System - talkactions
L3K0TTFS 04 e TFS 0.3.6 Olá galera, hoje vim trazer um sistema chamado "First to Speak Summon" mais pera ai L3K0T, como funciona? Bom ele sumonar um monstro numa posição setada por sua preferencia, também verifica uma posxyz que você pode setar também e assim falar o comando "!fss"... mais pera ai L3K0T oque tem de diferente??? ... calma ... esse comando só pode ser pronunciado por 1 player somente, no caso se alguém falar o comando depois de você... não irá sumonar até que o tempo pra falar novamente acabe "configurado" e BORA PRO TUTORIAL??? TUTORIAL;; 1° vai na pasta Servidor\data\talkactions\scripts copia um arquivo.lua e renomeia para fss e dentro coloque;; local t = { sto = 565674, --Storage global; temp = 300, --Tempo para falar em milesimo 300 = 5 minutos // segundos o comando; monstro = "Demon", --Nome monstrinho que vá nascer; localmapa = {x=1569, y=214, z=7}, --Posição aonde o monstrinho vai nascer; pisomapa = {x=1565, y=215, z=7}, --Posição aonde o player precisa estar para falar o comando de sua preferencia; msgsucesso = "monstro foi criado!!!", --Mensagem que manda ao player ao criar o monstrinho; msgsono = "Demon Está dormindo zzzZZZ", --Mensagem ao tentar usar o comando com intervalo de espera do comando; msgnull = "Está acordado corra lá", --Mensagem quando o monstro acordar } function onSay(cid, words, param, channel) local tp = getThingPos(cid) --verficação --inicio if tp.x == t.pisomapa.x and tp.y == t.pisomapa.y and tp.z == t.pisomapa.z then --verificação if getPlayerStorageValue(cid, t.sto) > os.time() then --verificação tempo doPlayerSendTextMessage(cid, 27, t.msgsono) return true end for _, cid in ipairs(getPlayersOnline()) do --verificação players global setPlayerStorageValue(cid, t.sto, os.time() + t.temp) --seta storage end doCreateMonster(t.monstro, t.localmapa) doPlayerSendTextMessage(cid, 27, t.msgsucesso) else --fora do tile if getPlayerStorageValue(cid, t.sto) > os.time() then --verificação tempo doPlayerSendTextMessage(cid, 27, t.msgsono) return true end if getPlayerStorageValue(cid, t.sto) < os.time() then --verificação tempo doPlayerSendTextMessage(cid, 27, t.msgnull) return true end end --fim script BY L3K0T return true end tag xml;; <talkaction words="!fss" event="script" value="fss.lua"/> feito isso salva tudinho e use da melhor forma que achar. Video;; Créditos: @L3K0T
- Anunciar quem Matou um Monstro
- 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>