Ir para conteúdo
Entre para seguir isso  
Maiia

Inquisition Teleport Boss.

Recommended Posts

Maiia    0
Maiia

Créditos a Erefront que me passou os scripts...

 

Inquisition Teleports

Eai galera, vim aqui postar um script que muita, mais muita gente, procura hoje em dia...

Que é o Script de "portais" dos bosses!

Vou tentar explicar da melhor forma como instalar esse script em seu servidor.

 

 

Instalando e Configurando

Muito bem, primeiro vá a pasta de seu 'OT', e vá em data/creaturescripts/scripts/Inquisition.

Se não ouver está pasta, crie ela.

Após isso abre o bloco de notas e cole isto:

local  config = {
message = "You now have 2 minutes to exit this room through the  teleporter. It will bring you to the next room only during this time.",
timeToRemove = 160, -- seconds
teleportId = 1387,
-----------------------------------------------------------------------
-- Nome da criatura + Posição que o portal vai teleporta
bosses = {
["Ushuriel"] = { x = 2317, y = 1920, z = 5 }, -- Local aonde o portal  vai levar o player.
["Zugurosh"] = { x = 2273, y = 1932, z = 5 },
["Madareth"] = { x = 2188, y = 1983, z = 6 },
["Latrivan"] = { x = 2296, y = 1997, z = 6 },
["Annihilon"] = { x = 2389, y = 2076, z = 5 },
["Hellgorak"] = { x = 2209, y = 2089, z = 6 }
}
-----------------------------------------------------------------------
}
-----------------------------------------------------------------------
-- Posição que vai criar o portal
local ushuriel_in_pos = {x=2256, y=1995, z=5}
local annihilon_in_pos = {x=2331, y=1980, z=5}
local hellgorak_in_pos = {x=2336, y=2023, z=5}
local madareth_in_pos = {x=2256, y=2023, z=5}
local zugurosh_in_pos = {x=2289, y=1994, z=5}
local brothers_in_pos = {x=2291, y=2027, z=5}
-----------------------------------------------------------------------
local function removal(position)
position.stackpos = 1
if getThingfromPos(position).itemid == config.teleportId then
doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Inquisition")

for name, pos in pairs(config.bosses) do
if name == getCreatureName(cid) and name == 'Ushuriel' then
local position = ushuriel_in_pos
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)

elseif name == getCreatureName(cid) and name == 'Annihilon' then
local position = annihilon_in_pos
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)

elseif name == getCreatureName(cid) and name == 'Hellgorak' then
local position = hellgorak_in_pos
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)

elseif name == getCreatureName(cid) and name == 'Madareth' then
local position = madareth_in_pos
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)

elseif name == getCreatureName(cid) and name == 'Zugurosh' then
local position = zugurosh_in_pos
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)

elseif name == getCreatureName(cid) and name == 'Latrivan' then
local position = brothers_in_pos
teleport = doCreateTeleport(config.teleportId, pos, position)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)
end
end
return TRUE
end

Salve o arquivo como: Inquisition.lua (Não esqueça do .lua!)

 

Bem, após isso volte na pasta data/creaturescripts, e abra o arquivo creaturescripts.xml, lá dentro cole isto:


<event type="death" name="Inquisition" script="Inquisition/inquisition1.lua"/>

Agora, vá denovo em data/creaturescripts/scripts, e abra o arquivo login.lua ...

Lá dentro cole isto:


registerCreatureEvent(cid, "Inquisition")

Agora vem uma das partes mais chatas, oiaejaiojeaoje...

Agora você vai adicionar esse código nos 6 monstros da Inquisition...

Vá até a pasta data/monster/bosses ou em alguns casos data/monster/The ruthless seven minions (veja em seu servidor..)

------------------------------------------

Os monstros são:

Zugurosh.xml

Ushuriel.xml

Hellgorak.xml

Latrivan.xml

Madareth.xml

Annihilion.xml

--------------------------------------------

 

Bem agora abra os XML dos monstros e abaixo de </flags>, adicione isto:


<script>
<event name="Inquisition"/>
</script>

Explicação:


[size=2]<?xml version="1.0" encoding="UTF-8"?>
<monster name="Annihilon" nameDescription="Annihilon" race="fire" experience="10000" speed="310" manacost="0">
<health now="40000" max="40000"/>
<look type="12" head="19" body="104" legs="96" feet="96" corpse="6068"/>
<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>
[/size][size=2][color=Red]<script>
<event name="Inquisition"/>
</script> [/color][/size][size=2]
<attacks>
<attack name="melee" interval="2000" min="-0" max="-1500"/>
<attack name="death" interval="1000" chance="10" length="8" spread="0" min="0" max="-600">
<attribute key="areaEffect" value="mortarea"/>
</attack>
<attack name="death" interval="2000" chance="15" target="0" radius="4" min="-0" max="-700">
<attribute key="areaEffect" value="icearea"/>
</attack>
<attack name="physical" interval="3000" chance="18" radius="5" target="1" min="-0" max="-255">
<attribute key="areaEffect" value="groundshaker"/>
</attack>
<attack name="fire" interval="2000" chance="15" radius="6" target="1" min="-50" max="-600">
<attribute key="areaEffect" value="firearea"/>
<attribute key="shootEffect" value="fire"/>
</attack>
</attacks>
<defenses armor="60" defense="55">
<defense name="healing" interval="1000" chance="14" min="400" max="900">
<attribute key="areaEffect" value="greenshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<elements>
<element energyPercent="95"/>
<element deathPercent="95"/>
<element icePercent="20"/>
</elements>
<immunities>
<immunity lifedrain="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Flee as long as you can!"/>
<voice sentence="Annihilon's might will crush you all!"/>
<voice sentence="I am coming for you!"/>
</voices>
<loot>
<item id="2148" countmax="100" chance1="100000" chancemax="0"/>
<item id="2148" countmax="59" chance1="100000" chancemax="0"/>
<item id="2150" countmax="20" chance1="5515" chancemax="0"/> --Small amethyst
<item id="2520" chance="7000"/> --Fire Axe
<item id="7366" countmax="4" chance1="5700" chancemax="0"/> --Viper Star
<item id="5954" countmax="2" chance1="5000" chancemax="0"/> --Demon Horn
<item id="7431" chance="700"/> --Demonbone
<item id="7421" chance="400"/> --Onxy Flail
<item id="2427" chance="5000"/> --Guardian Halberd
<item id="1987" chance="100000">
<inside>
<item id="8929" chance="300"/> --The Stomper
<item id="8928" chance="950"/> --Obsidian Truncheon
<item id="2452" chance="2600"/> --Heavy Mace
<item id="6529" countmax="49" chance1="4300" chancemax="0"/> --Infernal Bolt
<item id="2547" countmax="82" chance1="7000" chancemax="0"/> --Power Bolt
<item id="7632" countmax="4" chance1="2000" chancemax="0"/> --Power Bolt
<item id="7440" chance="3000"/> --Mastermind Potion
<item id="7440" chance="1000"/> --Mastermind Potion
<item id="7439" chance="3000"/> --berserk Potion
<item id="7439" chance="1500"/> --berserk Potion
<item id="2158" chance="2800"/> --Blue gem
<item id="2156" chance="4000"/> --Red gem
<item id="2520" chance="7600"/> --Demon shield
<item id="2165" chance="10000"/> --stealth ring
<item id="8891" chance="4000"/> --Paladin Armor
<item id="8889" chance="1200"/> --Skullcracker Armor
<item id="9971" countmax="1" chance1="6515" chancemax="0"/> --Gold Ingot
</inside>
</item>
</loot>
</monster>[/size]

Pronto é isso, agora você ajeita lá o 1º Script com as configurações de seu mapa!

Espero ter ajudado! :D

Um abraço e até mais.

 

------------------------------------------------------------------------------------

 

 

 

att,

Maiia.

Editado por Black Ice

Compartilhar este post


Link para o post
Mock    32
Mock

Blz :P

bom

Editado por Mock

Compartilhar este post


Link para o post
fezao    0
fezao

uhm .. muito bom .. pelo que eu li eu axo que eh quando o boss morre aparece o tp .. aconcelho a ponhar esse detalhe

 

mais eu gostei muito do script e vo usar ele no serv só que nao só pra inqui .. pra outras quests tmb :X

Compartilhar este post


Link para o post
ADM Emperor    0
ADM Emperor

Gostaria de saber se nesse script quando o teleport aparece o corpo do monstro some... Se sim. Gostaria de saber uma script onde o corpo do boss com os loots não desapareça, assim como no global.

Compartilhar este post


Link para o post
josejunior23    2
josejunior23
local  config = {
message = "You now have 2 minutes to exit this room through the  teleporter. It will bring you to the next room only during this time.",
timeToRemove = 160, -- seconds
teleportId = 1387,
-----------------------------------------------------------------------
-- Nome da criatura + Posição que o portal vai teleporta
bosses = {
	["Ushuriel"] = {toPos = { x = 2317, y = 1920, z = 5 },  tpPos = {x=2256, y=1995, z=5}},
	["Zugurosh"] = {toPos = { x = 2273, y = 1932, z = 5 },  tpPos = {x=2331, y=1980, z=5}},
	["Madareth"] = {toPos = { x = 2188, y = 1983, z = 6 },  tpPos = {x=2336, y=2023, z=5}},
	["Latrivan"] = {toPos = { x = 2296, y = 1997, z = 6 },  tpPos = {x=2256, y=2023, z=5}},
	["Annihilon"] = {toPos = { x = 2389, y = 2076, z = 5 },  tpPos = {x=2289, y=1994, z=5}},
	["Hellgorak"] = {toPos = { x = 2209, y = 2089, z = 6 },  tpPos = {x=2291, y=2027, z=5}}
}
-----------------------------------------------------------------------
}
local function removal(position)
position.stackpos = 1
if getThingfromPos(position).itemid == config.teleportId then
	doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end

function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Inquisition")
local find = config.bosses[getCreatureName(cid):lower()]
if find then
	teleport = doCreateTeleport(config.teleportId, find.tpPos, find.toPos)
	doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
	addEvent(removal, config.timeToRemove * 1000, find.tpPos)
end	
return true
end

Editado por Mickfern

Compartilhar este post


Link para o post
brunoeuxd    0
brunoeuxd

OBRIGADO PELO SCRIPT , NÃO TESTEI MAIS VOU TENTAR

 

PS : OLHA NO FINAL AEW TEM UM NEGOÇO DE [/color]

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×