
Histórico de Curtidas
-
Sh0z deu reputação a luanluciano93 em (Resolvido)[TFS 1.3] [AJUDA] Sumonar NPC por tempofunction onUse(player, item, fromPosition, target, toPosition, isHotkey) local storage = "2252" if player:getStorageValue(storage) < os.time() then local playerPos = player:getPosition() local position = Position(playerPos.x, playerPos.y + 1, playerPos.z) local npcName = "Mad" local npc = Game.createNpc(npcName, position) function removeNpc(creature) local target = Npc(npc) target:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:setStorageValue(storage, 0) target:remove() end if npc then npc:setMasterPos(position) position:sendMagicEffect(CONST_ME_POFF) player:say("can you help me?", TALKTYPE_MONSTER_SAY) player:setStorageValue(storage, os.time() + 1*60) addEvent(removeNpc, 1*60*1000, npcName) return true else position:sendMagicEffect(CONST_ME_POFF) end else player:sendCancelMessage("You need to wait a minute.") position:sendMagicEffect(CONST_ME_POFF) end end
Se quiser testar esse tbem ...
local storage = 2252 local function removeNpc(creature) local target = Npc(creature) target:getPosition():sendMagicEffect(CONST_ME_TELEPORT) target:remove() end function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(storage) < os.time() then local npcName = "Mad" local playerPos = player:getPosition() local position = Position(playerPos.x, playerPos.y + 1, playerPos.z) local npc = Game.createNpc(npcName, position) if npc then npc:setMasterPos(position) position:sendMagicEffect(CONST_ME_MAGIC_RED) position:say("Can you help me?", TALKTYPE_MONSTER_SAY) player:setStorageValue(storage, os.time() + 1 * 60) addEvent(removeNpc, 1 * 60 * 1000, npc:getGuid()) else player:sendCancelMessage("There is not enough room.") position:sendMagicEffect(CONST_ME_POFF) end else player:sendCancelMessage("You need to wait a minute.") position:sendMagicEffect(CONST_ME_POFF) end return true end
-
Sh0z recebeu reputação de Vodkart em (Resolvido)[TFS 1.3] [AJUDA] Sumonar NPC por tempotestei aqui ele não sumona, fica dando poff como se ja existisse um npc criado. Vou mandar um video
20211125_232815.mp4 -
Sh0z recebeu reputação de pergher em Regeneração de Mana nos Trainerstenta assim
<attack name="manadrain" interval="1000" chance="7" range="7" min="900" max="10000">
<attribute key="shootEffect" value="energy" />
<attribute key="areaEffect" value="poff" />
</attack>
-
Sh0z recebeu reputação de pergher em Regeneração de Mana nos TrainersAbre o rme e vê a posição de cada piso que os players vai ficar, assim tu configura como desejar
-
Sh0z recebeu reputação de ArielZeRah em (Resolvido)AJUDA COM ERRO SHOP PLESStu colocou o css dele?
-
Sh0z recebeu reputação de Freitas Epilef em erro ao iniciar servidorSolucionado via mensagem com o @Freitas Epilef abaixo está o npc que foi corrigido
Arkulius.lua
-
Sh0z recebeu reputação de CaioJosef em (Resolvido)Remeres mapa editor bugadopega o items.otb e o items.xml do seu ot e coloca no rme
-
Sh0z deu reputação a L3K0T em Anunciar quem Matou um MonstroL3KOT 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
-
Sh0z deu reputação a L3K0T em (Resolvido)[Pedido][ tfs 1.3] Anunciar para todos um boss que morreu e quem matouresolvido @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>
-
Sh0z recebeu reputação de ashwese em (Resolvido)AJUDA AQUI +REPFala carinha, seguinte, você pode estar usando esse site para mudar o ip do seu cliente
> http://client.otmanager.com.br
é a forma mais fácil
Porém vou mandar em anexo pronto para você já
Se te ajudei da um rep ai
Dbo_Fixe_V10.exe