- Ola to Trazendo um Script Para Algumas pessoas que Estão querendo Fazer Quest e não sabem Muito De Scripts .
- Esse script quando voce mata Um bixo Um teleport nasce.
- creaturescripts/script/Criei um arquivo lua com o nome tpmonster.
- Cole isso dentro do Arquivo tpmonster.
Alexclusive, em 10 Dez 2013 - 02:13, disse:
local config = {message = "Congrulations. Teleport close in 1 minute", -- mensagem quando você mata o bosstimeToRemove = 60, -- seconds -- tempo Que o teleport sera removido 1 minteleportId = 1387, -- Id do Teleport usado.bosses = {["Magician"] = { x = 1521, y = 1149, z = 7 }, -- Posição onde o teleport Levara o player}}local function removal(position)doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)return TRUEendfunction onDeath(cid, corpse, killer)registerCreatureEvent(cid, "teleportmonster")local position = getCreaturePosition(cid)for name, pos in pairs(config.bosses) doif name == getCreatureName(cid) thenteleport = doCreateTeleport(config.teleportId, pos, position)doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)addEvent(removal, config.timeToRemove * 1000, position)doSendMagicEffect(position,10)endendreturn TRUEend
Agora vai em Creaturescripts.xml
E cole Esta parte = <event type="death" name="teleportmonster" script="tpmonster.lua"/>
Alexclusive, em 10 Dez 2013 - 02:13, disse:
Agora va ate creaturescripts.xml. e cole Isso. ===> <event type="death" name="teleportmonster" script="tpmonster.lua"/>
Alexclusive, em 10 Dez 2013 - 02:13, disse:
<?xml version="1.0" encoding="UTF-8"?><monster name="Magician" nameDescription="a magician" race="blood" experience="15000" speed="330" manacost="0"><health now="200000" max="200000"/><look type="133" head="39" body="0" legs="19" feet="20" addons="3" corpse="3058"/><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="0"/><flag targetdistance="4"/><flag staticattack="90"/><flag runonhealth="0"/></flags><attacks><attack name="melee" interval="2000" skill="105" attack="120"/><attack name="energy" interval="1000" chance="20" range="7" min="-1200" max="-3205"><attribute key="shootEffect" value="energy"/></attack><attack name="fire" interval="1000" chance="15" range="7" min="-1500" max="-3100"><attribute key="shootEffect" value="fire"/></attack></attacks><defenses armor="20" defense="20"><defense name="healing" interval="1000" chance="13" min="35" max="75"><attribute key="areaEffect" value="blueshimmer"/></defense><defense name="speed" interval="1000" chance="10" speedchange="900" duration="2000"><attribute key="areaEffect" value="redshimmer"/></defense></defenses><elements><element deathPercent="-10"/><element firePercent="10"/><element earthPercent="20"/><element energyPercent="20"/><element icePercent="10"/><element holyPercent="20"/></elements><immunities><immunity invisible="1"/></immunities><voices interval="5000" chance="10"><voice sentence="Feel the power of my runes!"/><voice sentence="Killing you is getting expensive"/><voice sentence="My secrets are mine alone!"/></voices><loot><item id="2148" countmax="60" chance1="100000" chancemax="0"/> --gps<item id="7620" chance="3200"/> --mana potion<item id="1987" chance="100000"><inside><item id="5934" chance="50000"/> --dead frog<item id="2260" chance="30000"/> --blank rune<item id="2260" chance="20000"/> --blank rune<item id="2260" chance="20000"/> --blank rune<item id="7762" chance="600"/> --enchanted amethyst</inside></item></loot><script><event name="teleportmonster"/> <<<<<<<<<<<<<<<<<<< como pode ver isso e na Parte do Creaturescript.xml</script></monster>
aI MNW ARRUMEI