Postado Agosto 13, 2015 9 anos Autor demorei mas consegui, fiquei testando coordenadas e finalmente acertei caso alguém queira esse script. {{x=577, y=574, z=14} <<<é pra onde o TP te leva {x=581, y=567, z=10}} <<<< é onde o tp vai aparecer quando o bicho morrer creaturescripts\scripts local config = { message = "Azerus ran into teleporter! It will disappear in 2 minutes. Enter It!", teleportId = 1387, bosses = { -- Monster Name, Teleport To Position, Teleport Position ["Azerus"] = {{x=577, y=574, z=14}, {x=581, y=567, z=10}}, } } function onDeath(cid, corpse, killer) local position = getCreaturePosition(cid) for name, pos in pairs(config.bosses) do if name == getCreatureName(cid) then doCreateTeleport(config.teleportId, pos[1], pos[2]) doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1) end end return TRUE end creaturescripts.xml <event type="death" name="Azerus" event="script" value="azerus.lua"/> Monster.XML <?xml version="1.0" encoding="UTF-8"?> <monster name="Azerus" nameDescription="azerus" race="blood" experience="6000" speed="320" manacost="0"> <health now="7500" max="7500"/> <look type="309" head="19" body="96" legs="21" feet="81"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <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="85"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" min="-0" max="-900"/> <attack name="manadrain" interval="2000" chance="10" range="7" min="-0" max="-2000"> <attribute key="shootEffect" value="energy"/> <attribute key="areaEffect" value="poff"/> </attack> <attack name="manadrain" interval="2000" chance="15" range="7" radius="7" target="1" min="-0" max="-800"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="bigclouds"/> </attack> <attack name="death" interval="2000" chance="20" range="7" min="-0" max="-524"> <attribute key="shootEffect" value="suddendeath"/> <attribute key="areaEffect" value="mortarea"/> </attack> <attack name="lifedrain" interval="1000" chance="10" length="8" spread="0" min="-100" max="-500"> <attribute key="areaEffect" value="sleep"/> </attack> </attacks> <defenses armor="40" defense="65"> <defense name="healing" interval="1000" chance="11" min="400" max="900"> <attribute key="areaEffect" value="greenshimmer"/> </defense> </defenses> <immunities> <immunity name="outfit"/> <immunity name="paralyze"/> <immunity name="invisible"/> <immunity name="drown"/> <immunity name="drunk"/> </immunities> <summons maxSummons="10"> <summon name="Rift Worm" speed="3000" chance="30"/> <summon name="Grim Reaper" speed="3000" chance="50"/> <summon name="War Golem" speed="3000" chance="30"/> </summons> <script> <event name="Azerus" /> </script> <voices interval="5000" chance="12"> <voice sentence="The ultimate will finally consume this unworthy existence!" /> <voice sentence="My masters and I will tear down barriers and join the ultimate in its realm!" /> <voice sentence="The power of the Yalahari will all be mine!" /> <voice sentence="He who has returned from beyond has taught me secrets you can't even grasp!" /> <voice sentence="You can't hope to penetrate my shields!"/> <voice sentence="Do you really think you could beat me?"/> </voices> </monster> Luan,brigado pela ajuda, Rep+ por tentar me ajudar Editando... Af, agora o TP depois que mata o Boss ele não desaparece.... kkkkkkkkkkkkkk agora conseguir kkkk script local tpId = 1387 local tps = { ["Azerus"] = {pos = {x=581, y=567, z=10}, toPos = {x=576, y=574, z=14}, time = 30}, } function removeTp(tp) local t = getTileItemById(tp.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tp.pos, CONST_ME_POFF) end end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(tpId, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) end return TRUE end Editado Agosto 15, 2015 9 anos por 157kolosso (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.