Ir para conteúdo

Featured Replies

Postado
  • Este é um post popular.

Olá pessoal como falei irei postar alguns eventos sem bugs para vocês e GRÁTIS!

Estarei também postando uma source OTX paga para vocês.

Chega de enrolar vamos ao evento (Particularmente gosto muito desse)

**SÓ CONFIGUREM NO MAPA DO EVENTO O LOCAL DE SAÍDA DAS ILHAS**

**EVENTO NÃO É DE MINHA AUTORIA MAS COMO É MEU ESTOU POSTANDO**

 

Vídeo mostrando como funciona o evento

obs: link para o vídeo estava localizado dentro do script

                                                             

    

5 bosses localizados nas ilhas temáticas

Os jogadores deverão se unir para conseguir vencer todos os bosses das ilhas e atingir a última com o mais temido. Apenas os bravos guerreiros conseguem chegar ao final, como prêmio eles recebem a experiência dos bosses e loot.

 

 

Vá em data/creaturescripts/scripts e crie um aquivo chamado IOE.lua e cole isso dentro

Citar

local function removal(position)
    doRemoveThing(getTileItemById(position, IOE_IDTP).uid, 1)
    return TRUE
end

function onDeath(cid, corpse, killer)
    if getCreatureName(cid) == IOE_NAMEBOSS1 then
        local position = getCreaturePosition(cid)
        teleport = doCreateTeleport(IOE_IDTP, IOE_POSISLAND2, position)
        doItemSetAttribute(teleport, "uid", 5551)
        doCreatureSay(cid, IOE_MSGTELEPORT, TALKTYPE_ORANGE_1)
        doBroadcastMessage(IOE_MSGBOSS1)
        doSummonCreature(IOE_NAMEBOSS2, IOE_POSBOSS2)
        addEvent(removal, IOE_TIMETOREMOVE * 1000*60, position)
        doSendMagicEffect(position, 65)
    end    
    if getCreatureName(cid) == IOE_NAMEBOSS2 then
        local position = getCreaturePosition(cid)
        teleport = doCreateTeleport(IOE_IDTP, IOE_POSISLAND3, position)
        doItemSetAttribute(teleport, "uid", 5552)
        doCreatureSay(cid, IOE_MSGTELEPORT, TALKTYPE_ORANGE_1)
        doBroadcastMessage(IOE_MSGBOSS2)
        doSummonCreature(IOE_NAMEBOSS3, IOE_POSBOSS3)
        addEvent(removal, IOE_TIMETOREMOVE * 1000*60, position)
        doSendMagicEffect(position,65)
    end
    if getCreatureName(cid) == IOE_NAMEBOSS3 then
        local position = getCreaturePosition(cid)
        teleport = doCreateTeleport(IOE_IDTP, IOE_POSISLAND4, position)
        doItemSetAttribute(teleport, "uid", 5553)
        doCreatureSay(cid, IOE_MSGTELEPORT, TALKTYPE_ORANGE_1)
        doBroadcastMessage(IOE_MSGBOSS3)
        doSummonCreature(IOE_NAMEBOSS4, IOE_POSBOSS4)
        addEvent(removal, IOE_TIMETOREMOVE * 1000*60, position)
        doSendMagicEffect(position,65)
    end
    if getCreatureName(cid) == IOE_NAMEBOSS4 then
        local position = getCreaturePosition(cid)
        teleport = doCreateTeleport(IOE_IDTP, IOE_POSISLAND5, position)
        doItemSetAttribute(teleport, "uid", 5554)
        doCreatureSay(cid, IOE_MSGTELEPORT, TALKTYPE_ORANGE_1)
        doBroadcastMessage(IOE_MSGBOSS4)
        doSummonCreature(IOE_NAMEBOSS5, IOE_POSBOSS5)
        addEvent(removal, IOE_TIMETOREMOVE * 1000*60, position)
        doSendMagicEffect(position,65)
    end
    if getCreatureName(cid) == IOE_NAMEBOSS5 then
        local position = getCreaturePosition(cid)
        teleport =    doCreateTeleport(IOE_IDTP, IOE_TP, position)
        doItemSetAttribute(teleport, "uid", 5555)
        doCreatureSay(cid, IOE_MSGTELEPORT, TALKTYPE_ORANGE_1)
        doBroadcastMessage(IOE_MSGBOSS5)
        addEvent(removal, IOE_TIMETOREMOVE * 1000*60, position)
        doSendMagicEffect(position,65)
    end    
    return true
end

agora na mesma pasta creaturescripts/scripts procure pela pasta login.lua e lá adicione o registro do evento

Citar

registerCreatureEvent(cid, "IOE")

após isso vá em data/creaturescripts abra o arquivo creaturescripts.xml e adicione a tag

Citar

<event type="death" name="IOE" event="script" value="IOE.lua"/> 

 

agora em data/globalevents/scripts crie um arquivo chamado IOE.lua e cole isso dentro

Citar

function onTime()
    local time = os.date("*t")
    local timeopen1 = math.ceil(IOE_TIMEWAIT / 4)
    local timeopen2 = math.ceil(IOE_TIMEWAIT / 2)
    if (isInArray(IOE_DAYS,time.wday)) then
        tps = doCreateTeleport(IOE_IDTP, IOE_TPGO, IOE_TP)
        doItemSetAttribute(tps, "uid", 5550)
        doBroadcastMessage(IOE_MSGWARNING)    
        addEvent(doBroadcastMessage, timeopen1*1000*60, "[ISLAND OF ELEMENTALS] - Resta(m) ".. timeopen2 .." minuto(s) para iniciar o evento!")
        if (timeopen2 ~= timeopen1) then
            addEvent(doBroadcastMessage, timeopen2*1000*60, "[ISLAND OF ELEMENTALS] - Resta(m) ".. timeopen1 .." minuto(s) para iniciar o evento!")
        end
        addEvent(startIOE, IOE_TIMEWAIT*1000*60, nil) 
    end
    return true
end

    
function countPlayers()
    local count = 0
    for _, pid in ipairs(getPlayersOnline()) do
        if isInRange(getCreaturePosition(pid), IOE_WAITROOM[1], IOE_WAITROOM[2]) then
            count = (count + 1)
        end
    end
    return count
end

function teleportPlayers()
    for _, pid in ipairs(getPlayersOnline()) do
        if isInRange(getCreaturePosition(pid), IOE_WAITROOM[1], IOE_WAITROOM[2]) then
            if getPlayerLevel(pid) >= IOE_LVLMIN then
                doTeleportThing(pid, IOE_POSISLAND1)
            else
                doPlayerSendTextMessage(pid, MESSAGE_INFO_DESCR, "Seu level e menor que ".. IOE_LVLMIN .. ", se dirija ao teleport de saida.")    
            end
        end
    end
    return true
end

function startIOE()
if (countPlayers() >= IOE_MINPLAYERS) then 
    doSummonCreature(IOE_NAMEBOSS1, IOE_POSBOSS1)
    teleportPlayers()
    doBroadcastMessage(IOE_MSGSTART)
    doRemoveItem(getTileItemById(IOE_TP, IOE_IDTP).uid)
else
    doBroadcastMessage(IOE_MSGCANCEL)
    doRemoveItem(getTileItemById(IOE_TP, IOE_IDTP).uid)
end
return true
end

em globalevents.xml adicione a tag 

Citar

<globalevent name="OPENIOE" time="12:28:00" event="script" value="IOE.lua"/>

agora na pasta LIB crie um arquivo chamado IOE.lua e cole isso dentro

Citar

-- This script is part of Island of Elementals
-- Copyright (C) 2016
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.

-- //


--CONFIGS DE GERAIS
IOE_WAITROOM = {{x = 11107, y = 1104, z = 7}, {x = 1109, y = 1106, z = 7}} -- Canto superior esquerdo / inferior direito da sala de espera
IOE_POSBOSS1 = {x=1075, y=1159, z=7} -- Posicao do boss Island Fire
IOE_POSBOSS2 = {x=1075, y=1159, z=7} -- Posicao do boss Island Ice
IOE_POSBOSS3 = {x=1075, y=1159, z=7} -- Posicao do boss Island Earth
IOE_POSBOSS4 = {x=1075, y=1159, z=7} -- Posicao do boss Island Energy
IOE_POSBOSS5 = {x=1075, y=1159, z=7} -- Posicao do boss Island Death
IOE_POSISLAND1 = {x=1075, y=1159, z=7} -- Posicao do ilha fire
IOE_POSISLAND2 = {x=1075, y=1159, z=7} -- Posicao do ilha ice
IOE_POSISLAND3 = {x=1075, y=1159, z=7} -- Posicao do ilha earth
IOE_POSISLAND4 = {x=1075, y=1159, z=7} -- Posicao do ilha energy
IOE_POSISLAND5 = {x=1075, y=1159, z=7} -- Posicao do ilha death
IOE_TIMETOREMOVE = 4 -- tempo aberto em minutos do teleport dos monstros

--CONFIGS DE ABERTURA
IOE_DAYS = {1,2,3,4,5,6,7} -- dias de semana que vai abrir
IOE_TP = {x=1075, y=1159, z=7} -- local onde teleport sera criado
IOE_TPGO = {x=1075, y=1159, z=7} -- local da sala de espera
IOE_MINPLAYERS = 7 -- minimo de jogadores para iniciar o evento
IOE_TIMEWAIT = 5 -- tempo de espera para iniciar o evento, em minutos
IOE_LVLMIN = 150 -- level minimo dos jogadores para entrarem no evento

--PREMIO DO EVENTO
IOE_REWARDS = {2494, 2472, 2514, 2493, 2470, 2195, 2173, 2160}


-- // Não mexa daqui para baixo 
IOE_NAMEBOSS1 = "Island Fire" 
IOE_NAMEBOSS2 = "Island Ice"
IOE_NAMEBOSS3 = "Island Earth" 
IOE_NAMEBOSS4 = "Island Energy" 
IOE_NAMEBOSS5 = "Island Death" 
IOE_IDTP = 1387 -- ID DOS TELEPORTS
IOE_MSGBOSS1 = "[ISLAND OF ELEMENTALS] Os bravos guerreiros derrotaram o boss Island Fire!"
IOE_MSGBOSS2 = "[ISLAND OF ELEMENTALS] Os bravos guerreiros derrotaram o boss Island Ice!"
IOE_MSGBOSS3 = "[ISLAND OF ELEMENTALS] Os bravos guerreiros derrotaram o boss Island Earth!"
IOE_MSGBOSS4 = "[ISLAND OF ELEMENTALS] Os bravos guerreiros derrotaram o boss Island Energy!"
IOE_MSGBOSS5 = "[ISLAND OF ELEMENTALS] Os bravos guerreiros derrotaram o mais temido boss Island Death, o evento foi encerrado!"
IOE_MSGTELEPORT = "Suba no corpo para avancar de nivel!"
IOE_MSGWARNING = "[ISLAND OF ELEMENTALS] Abriu, corra ate o teeport localizado no templo para participar, inicia em 5 minutos!"
IOE_MSGSTART = "[ISLAND OF ELEMENTALS] Iniciou, o temido Island of Fire ja esta a espera, boa sorte!"
IOE_MSGCANCEL = "[ISLAND OF ELEMENTALS] Cancelado por falta de jogadores, se dirijam ao TP de saida."

agora na pasta data/monsters crie uma pasta chamada IOE e dentro crie 5 arquivos .xml com os seguintes nomes (irei postar o nome do monstro e em seguida o script dele.

island death.xml

Citar

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Island Death" nameDescription="a island death" race="fire" experience="7000000" speed="530" manacost="0">
    <health now="1000000" max="1000000"/>
    <look type="12" head="114" body="114" legs="77" feet="10" corpse="0"/>
    <targetchange interval="2000" chance="10"/>
    <strategy attack="65" defense="20"/>
    <script>
    <event name="IOE"/>
  </script>
    <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 runonhealth="3000"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="200" attack="250"/>
        <attack name="manadrain" interval="1000" chance="7" range="7" min="-100" max="-1000">
            <attribute key="shootEffect" value="energy"/>
            <attribute key="areaEffect" value="poff"/>
        </attack>
        <attack name="drunk" interval="1000" chance="7" range="7">
            <attribute key="shootEffect" value="energy"/>
            <attribute key="areaEffect" value="energyarea"/>
        </attack>
        <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-900" max="-1000">
            <attribute key="areaEffect" value="energy"/>
        </attack>
        <attack name="strength" interval="1000" chance="9" range="7">
            <attribute key="shootEffect" value="largerock"/>
            <attribute key="areaEffect" value="energyarea"/>
        </attack>
        <attack name="lifedrain" interval="1000" chance="13" radius="8" target="0" min="-400" max="-700">
            <attribute key="areaEffect" value="bluebubble"/>
        </attack>
        <attack name="manadrain" interval="1000" chance="10" radius="8" target="0" min="-400" max="-700">
            <attribute key="areaEffect" value="greenshimmer"/>
        </attack>
        <attack name="speed" interval="1000" chance="12" radius="6" target="0" speedchange="-1900" duration="60000">
            <attribute key="areaEffect" value="poison"/>
        </attack>
        <attack name="strength" interval="1000" chance="8" radius="5" target="0">
            <attribute key="areaEffect" value="blackspark"/>
        </attack>
        <attack name="outfit" interval="1000" chance="2" radius="8" target="0" monster="demon" duration="5000">
            <attribute key="areaEffect" value="bluebubble"/>
        </attack>
        <attack name="outfit" interval="1000" chance="2" radius="8" target="0" item="3058" duration="5000">
            <attribute key="areaEffect" value="bluebubble"/>
        </attack>
        <attack name="fire" interval="1000" chance="34" range="7" radius="7" target="1" min="-100" max="-900">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="lifedrain" interval="1000" chance="15" length="8" spread="0" min="-500" max="-850">
            <attribute key="areaEffect" value="redshimmer"/>
        </attack>
    </attacks>
    <defenses armor="160" defense="160">
        <defense name="healing" interval="1000" chance="15" min="2000" max="3000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="healing" interval="1000" chance="25" min="500" max="1000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="1000" chance="8" speedchange="1901" duration="5000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
        <defense name="invisible" interval="1000" chance="4" duration="10000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="invisible" interval="1000" chance="17" duration="2000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="outfit" interval="1000" chance="2" item="2916" duration="7000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
    <immunities>
        <immunity physical="0"/>
        <immunity energy="1"/>
        <immunity fire="1"/>
        <immunity poison="1"/>
        <immunity lifedrain="1"/>
        <immunity paralyze="1"/>
        <immunity outfit="1"/>
        <immunity drunk="1"/>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="COME HERE! FREE ITEMS FOR EVERYONE!" yell="1"/>
        <voice sentence="BOW TO THE POWER OF THE RUTHLESS SEVEN!"/>
        <voice sentence="Slay your friends and I will spare you!" yell="1"/>
        <voice sentence="DON'T BE AFRAID! I AM COMING IN PEACE!" yell="1"/>
    </voices>
    <loot>
    </loot>
</monster>

island earth.xml

Citar

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Island Earth" nameDescription="a island earth" race="fire" experience="5000000" speed="400" manacost="0">
  <health now="650000" max="650000"/>
  <look type="285" corpse="0"/>
  <targetchange interval="10000" chance="5"/>
  <strategy attack="100" defense="0"/>
  <script>
    <event name="IOE"/>
  </script>
  <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 staticattack="85"/>
    <flag targetdistance="1"/>
    <flag runonhealth="0"/>
  </flags>
<attacks>
    <attack name="melee" interval="2000" skill="220" attack="210"/>
    <attack name="fire" interval="1000" chance="13" range="7" radius="8" target="1" min="0" max="-1200">
        <attribute key="shootEffect" value="fire"/>
        <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="lifedrain" interval="3000" chance="18" radius="8" target="0" min="-120" max="-800">
        <attribute key="areaEffect" value="rednote"/>
    </attack>
    <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-700" max="-800">
            <attribute key="areaEffect" value="energy"/>
        </attack>
    <attack name="death" interval="3000" chance="15" radius="8" target="0" min="-500" max="-800">
        <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="death" interval="2000" chance="16" length="8" spread="0" min="-600" max="-1400">
        <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="speed" interval="3000" chance="25" target="1" speedchange="-800" duration="4000">
        <attribute key="areaEffect" value="redshimmer"/>
    </attack>
</attacks>
<defenses armor="70" defense="70">
    <defense name="healing" interval="1000" chance="18" min="300" max="700">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
  </defenses>
    <elements>
        <element physicalPercent="20"/>
        <element icePercent="-20"/>
        <element deathPercent="35"/>
    </elements>
  <immunities>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity lifedrain="1"/>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="MY SEED IS FEAR AND MY HARVEST ARE YOUR SOULS" yell="1"/>
    <voice sentence="The triangle of terror will rise!"/>
    <voice sentence="Zathroth look at the destruction i am causing in your name!"/>
    <voice sentence="I AM MORGAROTH, LORD OF THE TRIANGLE... AND YOU ARE LOST!" yell="1"/>
  </voices>
    <loot>
    </loot>
</monster>

island energy.xml

Citar

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Island Energy" nameDescription="a island energy" race="energy" experience="5000000" speed="415" manacost="0">
  <health now="800000" max="800000"/>
    <look type="304" corpse="0"/>
  <targetchange interval="10000" chance="15"/>
  <strategy attack="100" defense="0"/>
  <script>
    <event name="IOE"/>
  </script>
  <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 staticattack="90"/>
    <flag targetdistance="1"/>
    <flag runonhealth="0"/>
  </flags>
<attacks>
    <attack name="melee" interval="2000" skill="230" attack="235"/>
    <attack name="manadrain" interval="4000" chance="18" radius="8" target="0" min="-600" max="-1100">
        <attribute key="areaEffect" value="bluebubble"/>
    </attack>
    <attack name="physical" interval="30000" chance="100" range="4" target="1" radius="4" min="-300" max="-530">
        <attribute key="areaEffect" value="teleport"/>
    </attack>
    <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-800" max="-900">
            <attribute key="areaEffect" value="energy"/>
        </attack>
    <attack name="physical" interval="5000" chance="20" range="2" target="1" min="-50" max="-1175">
        <attribute key="shootEffect" value="whirlwindsword"/>
    </attack>
    <attack name="death" interval="3000" chance="15" length="8" spread="0" min="-250" max="-600">
        <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="ice" interval="3000" chance="18" radius="6" target="0" min="-660" max="-780">
        <attribute key="areaEffect" value="bigplants"/>
    </attack>
</attacks>
  <defenses armor="70" defense="65">
    <defense name="healing" interval="3000" chance="20" min="2000" max="2500">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>

    <defense name="speed" interval="4000" chance="80" speedchange="440" duration="6000">
      <attribute key="areaEffect" value="redshimmer"/>
    </defense>

  </defenses>
<elements>
        <element icePercent="15"/>
        <element holyPercent="-10"/>
        <element deathPercent="20"/>
</elements>
  <immunities>
    <immunity physical="0"/>
    <immunity energy="1"/>
    <immunity earth="1"/>
    <immunity fire="1"/>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
  </immunities>

  <voices interval="5000" chance="30">
    <voice sentence="COME AND GIVE ME SOME AMUSEMENT!" yell="1"/>
    <voice sentence="IS THAT THE BEST YOU HAVE TO OFFER, TIBIANS?" yell="1"/>
    <voice sentence="I AM GHAZBARAN OF THE TRIANGLE... AND I AM HERE TO CHALLENGE YOU ALL!" yell="1"/>
    <voice sentence="FLAWLESS VICTORY!"/>
  </voices>

<loot>
</loot>

</monster>

island fire.xml

Citar

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Island Fire" nameDescription="a island fire" race="fire" experience="1000000" speed="600" manacost="0">
    <health now="200000" max="200000"/>
    <look type="35" corpse="0"/>
    <targetchange interval="5000" chance="10"/>
    <strategy attack="100" defense="0"/>
  <script>
    <event name="IOE"/>
  </script>
    <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>
    <attacks>
        <attack name="melee" interval="2000" skill="80" attack="120"/>
        <attack name="manadrain" interval="3000" chance="15" range="7" min="-0" max="-120"/>
        <attack name="fire" interval="4000" chance="60" range="7" radius="7" target="1" min="-150" max="-250">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="firefield" interval="1000" chance="15" range="7" radius="1" target="1">
            <attribute key="shootEffect" value="fire"/>
        </attack>
        <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-500" max="-600">
            <attribute key="areaEffect" value="energy"/>
        </attack>
        <attack name="energy" interval="3000" chance="10" length="8" spread="0" min="-300" max="-460">
            <attribute key="areaEffect" value="purpleenergy"/>
        </attack>
        <attack name="energy" interval="3000" chance="7" range="3" radius="1" target="1" min="-210" max="-300">
            <attribute key="shootEffect" value="energy"/>
            <attribute key="areaEffect" value="energy"/>
        </attack>
        <attack name="speed" interval="5000" chance="10" range="7" speedchange="-220" duration="5000">
        </attack>
    </attacks>
    <defenses armor="30" defense="30">
        <defense name="healing" interval="2000" chance="10" min="90" max="200">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="1000" chance="5" speedchange="60" duration="20000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element firePercent="100"/>
        <element physicalPercent="25"/>
        <element earthpercent="40"/>
        <element energyPercent="50"/>
        <element deathPercent="20"/>
        <element icePercent="-12"/>
        <element holyPercent="-12"/>
    </elements>
    <immunities>
        <immunity lifedrain="1"/>
        <immunity paralyze="1"/>
        <immunity invisible="1"/>
    </immunities>

    <voices interval="5000" chance="10">
        <voice sentence="MUHAHAHAHA!" yell="1"/>
        <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
        <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
        <voice sentence="Your resistance is futile!"/>
        <voice sentence="Your soul will be mine!" yell="0"/>
    </voices>
    <loot>
    </loot>
</monster>

island ice.xml

Citar

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Island Ice" nameDescription="a island ice" race="fire" experience="3000000" speed="600" manacost="0">
  <health now="400000" max="400000"/>
    <look type="110" corpse="0"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <script>
    <event name="IOE"/>
  </script>
  <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="2500"/>
  </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="180" attack="180"/>
        <attack name="physical" interval="3000" chance="15" radius="5" target="0" min="-320" max="-910">
            <attribute key="areaEffect" value="blackspark"/>
        </attack>
        <attack name="fire" interval="2000" chance="16" range="7" radius="7" target="1" min="-310" max="-740">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-600" max="-700">
            <attribute key="areaEffect" value="energy"/>
        </attack>
        <attack name="firefield" interval="1000" chance="10" range="7" radius="4" target="1">
            <attribute key="shootEffect" value="fire"/>
        </attack>
        <attack name="lifedrain" interval="4000" chance="19" length="8" spread="0" min="-500" max="-1300">
            <attribute key="areaEffect" value="purpleenergy"/>
        </attack>
    </attacks>
    <defenses armor="50" defense="48">
        <defense name="healing" interval="1000" chance="9" min="200" max="500">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="healing" interval="1000" chance="12" min="100" max="200">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="1000" chance="5" speedchange="400" duration="7000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element icePercent="-15"/>
        <element deathPercent="35"/>
        <element holyPercent="-25"/>
    </elements>
    <immunities>
        <immunity earth="1"/>
        <immunity fire="1"/>
        <immunity lifedrain="1"/>
        <immunity paralyze="1"/>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="PRAISED BE MY MASTERS, THE RUTHLESS SEVEN!" yell="1"/>
        <voice sentence="YOU ARE DOOMED!" yell="1"/>
        <voice sentence="ORSHABAAL IS BACK!" yell="1"/>
        <voice sentence="Be prepared for the day my masters will come for you!"/>
        <voice sentence="SOULS FOR ORSHABAAL!" yell="1"/>
    </voices>
    <loot>
    </loot>
</monster>

feito isso agora na pasta data/monsters procure por monster.xml vamos registras nossos novos monsters

Citar

<!-- Evento - Island of Elementals-->
<monster name="Island Fire" file="IOE/island fire.xml"/>
<monster name="Island Ice" file="IOE/island ice.xml"/>
<monster name="Island Earth" file="IOE/island earth.xml"/>
<monster name="Island Energy" file="IOE/island energy.xml"/>
<monster name="Island Death" file="IOE/island death.xml"/>

agora em data/movements/scripts crie um arquivo chamado IOE.lua e cole isso dentro

Citar

function onStepIn(cid, item, fromPos, toPos)
local random_item = IOE_REWARDS[math.random(1, #IOE_REWARDS)]
local templo = getPlayerTown(cid)
local hora = os.date("%X")
local data = os.date("%x")
    if isPlayer(cid) then
        if item.uid == 5550 then 
            doSendMagicEffect(fromPos, CONST_ME_TELEPORT)
            doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
            doBroadcastMessage("[ISLANF OF ELEMENTALS] O jogador ["..getCreatureName(cid).."] ingressou!")
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Bem vindo, aguarde ate a abertura do evento. Chame seus amigos pois ha um minimo de jogadores necessario para que abra. Lembrando se voce morrer ira perder items e skills.')
        end
        if item.uid == 5551 then 
            doPlayerAddItem(cid, random_item, 1)
            db.query("INSERT INTO `ioe`  VALUES ('', ".. db.escapeString(getPlayerName(cid)) ..  ",".. db.escapeString(data) ..", ".. db.escapeString(hora) ..", ".. random_item ..", 1);")
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Parabens voce avancou um nivel!')
        end
        if item.uid == 5552 then 
            doPlayerAddItem(cid, random_item, 1)
            db.query("INSERT INTO `ioe`  VALUES ('', ".. db.escapeString(getPlayerName(cid)) ..  ",".. db.escapeString(data) ..", ".. db.escapeString(hora) ..", ".. random_item ..", 2);")
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Parabens voce avancou um nivel!')
        end
        if item.uid == 5553 then 
            doPlayerAddItem(cid, random_item, 1)
            db.query("INSERT INTO `ioe`  VALUES ('', ".. db.escapeString(getPlayerName(cid)) ..  ",".. db.escapeString(data) ..", ".. db.escapeString(hora) ..", ".. random_item ..", 3);")
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Parabens voce avancou um nivel!')
        end
        if item.uid == 5554 then 
            doPlayerAddItem(cid, random_item, 1)
            db.query("INSERT INTO `ioe`  VALUES ('', ".. db.escapeString(getPlayerName(cid)) ..  ",".. db.escapeString(data) ..", ".. db.escapeString(hora) ..", ".. random_item ..", 4);")
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Parabens voce avancou um nivel!')
        end
        if item.uid == 5555 then 
            doPlayerAddItem(cid, random_item, 1)
            db.query("INSERT INTO `ioe`  VALUES ('', ".. db.escapeString(getPlayerName(cid)) ..  ",".. db.escapeString(data) ..", ".. db.escapeString(hora) ..", ".. random_item ..", 5);")
            doTeleportThing(cid, getTownTemplePosition(templo))
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Parabens voce completou o evento!')
        end
        if item.uid == 5556 then 
            doTeleportThing(cid, getTownTemplePosition(templo))
            doPlayerSendTextMessage(cid,25, '[ISLAND OF ELEMENTALS] Voce saiu do evento!')
        end
    end
return true
end

agora em movements.xml adicione a tag

Citar

<movevent type="StepIn" uniqueid="5550-5556" event="script" value="IOE.lua"/>

pronto pessoal o evento já está registrado em seu servidor, agora vocês configurem a seu desejo na pasta data/LIB <3 

agora irei postar a query o php e o mapa 

 

SQL QUERY PARA REGISTRAR O EVENTO EM SUA DATABASE

Citar

CREATE TABLE IF NOT EXISTS `ioe` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `data` varchar(255) NOT NULL,
  `hora` varchar(255) NOT NULL,
  `itemid` int(11) NOT NULL,
  `boss` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;

PAGINA PHP EM SEU SITE (LINDA)

Citar

<?php
    $limit = 40; 
    $consulta = $SQL->query('SELECT `name`,`data`,`hora`, `itemid`, `boss` FROM `ioe` ORDER BY `id` DESC LIMIT 30;'); 
    $number_of_rows = 0; 
    $boss1 = "Island Fire";
    $boss2 = "Island Ice";
    $boss3 = "Island Earth";
    $boss4 = "Island Energy";
    $boss5 = "Island Death";

    $main_content .= '
        <center>
            <h2>Evento Island of Elementals</h2>
            </br>
            Os jogadores deverão se unir para conseguir vencer todos os bosses das ilhas e atingir a última com o mais temido. Apenas os bravos guerreiros conseguem chegar ao final, como prêmio eles recebem a experiência dos bosses e loot.
            </br>
            </br>
            <img src="http://i.imgur.com/F1VY5sc.png">
            </br>
            </br>
            <iframe width="560" height="315" src="https://www.youtube.com/embed/fAqjLOZyeUs" frameborder="0" allowfullscreen></iframe></br>
        </center>
        </br>
        <div class="TableContainer">
            <div class="CaptionContainer">
            <div class="CaptionInnerContainer">
                <span class="CaptionEdgeLeftTop" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
                <span class="CaptionEdgeRightTop" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
                <span class="CaptionBorderTop" style="background-image:url(./layouts/tibiarl/images/content/table-headline-border.gif)"></span>
                <span class="CaptionVerticalLeft" style="background-image:url(./layouts/tibiarl/images/content/box-frame-vertical.gif)"></span>
                <div class="Text">Informações</div>
                <span class="CaptionVerticalRight" style="background-image:url(./layouts/tibiarl/images/content/box-frame-vertical.gif)"></span>
                <span class="CaptionBorderBottom" style="background-image:url(./layouts/tibiarl/images/content/table-headline-border.gif)"></span>
                <span class="CaptionEdgeLeftBottom" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
                <span class="CaptionEdgeRightBottom" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
            </div>
        </div>

        <table class="Table1" cellpadding="0" cellspacing="0">
        <tbody>
        <tr>
            <td>
                <div class="InnerTableContainer">
                    <table width="100%">
                        <tbody>
                        <tr style="background-color:#af2126;">
                            <td class="LabelV150"><b>
                                <font color="white">Objetivo</font></b></td>
                        </tr>
                        <tr style="background-color:'.$config['site']['lightborder'].';">
                            <td>
                                <p>Os jogadores deverão unir suas forças para conseguirem atravessar todas as 5 ilhas dos elementos. Para isto deverão matar todos os bosses, que ficam mais forte a cada nível.</p>
                            </td>
                        </tr>

                        <tr style="background-color:#af2126;">
                            <td class="LabelV150"><b><font color="white">Bosses</font></b></td>
                        </tr>

                        <TABLE WIDTH=100% BORDER=0 CELLPADDING=5 CELLSPACING=3>
                            <tr bgcolor=\'#F1E0C6\'>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">Island Fire</br><img src="http://www.tibiawiki.com.br/images/7/75/Demon.gif" border="0"></td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">Island Ice</br><img src="http://www.tibiawiki.com.br/images/e/e9/Yeti.gif" border="0"></td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">Island Earth</br><img src="http://www.tibiawiki.com.br/images/b/b4/Massive_Earth_Elemental.gif" border="0"></td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">Island Energy</br><img src="http://www.tibiawiki.com.br/images/8/89/Worker_Golem.gif" border="0"></td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">Island Death</br><img src="http://www.tibiawiki.com.br/images/6/68/Ushuriel.gif" border="0"></td>
                        </tr>
                        </table>
                        <TABLE WIDTH=100%>
                        <tr bgcolor=\'#F1E0C6\'>
                                <td>
                                <center>
                                <b>Dificuldade:</b>
                                </center>
                                </td>
                        </tr>
                        </table>
                        <TABLE WIDTH=100% BORDER=0 CELLPADDING=5 CELLSPACING=3>
                        <tr bgcolor=\'#F1E0C6\'>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            </td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                        </td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                        </td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                        </td>
                                        <td width=\'20%\' class=\'tr_info_sec\' p align="center">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                            <img src="http://www.tibiawiki.com.br/images/f/ff/Achievement.gif" border="0">
                                        </td>
                        </tr>
                        </table>
                        <table width="100%">
                        <tr style="background-color:#af2126;">
                            <td class="LabelV150"><b><font color="white">Danos por morte</font></b></td>
                        </tr>
                        <tr style="background-color:'.$config['site']['lightborder'].';">
                            <td>
                                <p>As ilhas são todas NO-PVP, ou seja não é possível morrer para jogador. Porém, por ser um evento que envolve monstros, a penalidade para este tipo de morte é valida. </p>
                            </td>
                        </tr>

                        <tr style="background-color:#af2126;">
                            <td class="LabelV150"><b><font color="white">Prêmios</font></b></td>
                        </tr>
                        <tr style="background-color:'.$config['site']['lightborder'].';">
                            <td>
                                <p> O time vencedor recebe items aleatorios como prêmio, além dos loots dos bosses e bônus experiência durante um certo tempo. </p>
                            </td>
                        </tr>

            </tbody></table>
                </div>
            </td>
        </tr>
    </tbody></table>
        </div>
        </br>
        </br>

        <div class="TableContainer">
            <div class="CaptionContainer">
            <div class="CaptionInnerContainer">
                <span class="CaptionEdgeLeftTop" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
                <span class="CaptionEdgeRightTop" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
                <span class="CaptionBorderTop" style="background-image:url(./layouts/tibiarl/images/content/table-headline-border.gif)"></span>
                <span class="CaptionVerticalLeft" style="background-image:url(./layouts/tibiarl/images/content/box-frame-vertical.gif)"></span>
                <div class="Text">Relatório das Batalhas</div>
                <span class="CaptionVerticalRight" style="background-image:url(./layouts/tibiarl/images/content/box-frame-vertical.gif)"></span>
                <span class="CaptionBorderBottom" style="background-image:url(./layouts/tibiarl/images/content/table-headline-border.gif)"></span>
                <span class="CaptionEdgeLeftBottom" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
                <span class="CaptionEdgeRightBottom" style="background-image:url(./layouts/tibiarl/images/content/box-frame-edge.gif)"></span>
            </div>
        </div><table class="Table1" cellpadding="0" cellspacing="0">

        <tbody><tr>
            <td>
                <div class="InnerTableContainer">
                    <table width="100%">
                        <tbody>
                        <tr style="background-color:#af2126;">
                            <td class="LabelV150" width=\'25%\'><b><font color="white"> <center>Boss</font></b></center></td>
                            <td class="LabelV150"><b><font color="white"><center>Últimos prêmios</center></font></b></td>
                        </tr>
    ';

    foreach($consulta as $info) { 
    if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; }
        $number_of_rows++;
    $main_content .= '
    <tr bgcolor="'.$config['site']['lightborder'].'">
        <td></br>
            <center>
            ';
            if ($info['boss'] == 1){
            $main_content .= '
            '.$boss1.'</br>
            <img src="http://www.tibiawiki.com.br/images/7/75/Demon.gif" border="0">';
            }
            if ($info['boss'] == 2){
                $main_content .= '
            '.$boss2.'</br>
            <img src="http://www.tibiawiki.com.br/images/e/e9/Yeti.gif" border="0">';
            }
            if ($info['boss'] == 3){
                $main_content .= '
            '.$boss3.'</br>
            <img src="http://www.tibiawiki.com.br/images/b/b4/Massive_Earth_Elemental.gif" border="0">';
            }
            if ($info['boss'] == 4){
                $main_content .= '
            '.$boss4.'</br>
            <img src="http://www.tibiawiki.com.br/images/8/89/Worker_Golem.gif" border="0">';
            }
            if ($info['boss'] == 5){
                $main_content .= '
            '.$boss5.'</br>
            <img src="http://www.tibiawiki.com.br/images/6/68/Ushuriel.gif" border="0">';
            }

            $main_content .= '
            </center>
        </td>
        <td></br>
            <center>
            <a href="index.php?subtopic=characters&name='.urlencode($info['name']).'">
            <b> '.$info['name'].' </b></a> recebeu
            <img style="width:30px;height:30px;" src="images/items/' . $info['itemid'] . '.gif"/> 
            </br>
            ' . $info['data'] . ' - ' . $info['hora'] . '
            </center>
        </td>
    </tr>
        ';
    }
    $main_content .= '
    </tbody></table>
                </div>
            </td>
        </tr>
    </tbody></table>
</div>
    </br>
    <center>Desenvolvido por <a href="http://SEUSITE.com/">SEUSITE.com</a>.</center>
    ';

?>

AGORA O MAPA (NÃO POSTAREI SCAN, QUEM QUISER BAIXAR É SÓ BAIXAR QUEM NÃO QUISER É SÓ CRIAR UM MAPA PARA SEU EVENTO!)

Citar

 

É ISSO AE ESPERO QUE GOSTEM DEIXEM SEU REP+ :)<3 

QUEM PRECISAR DE AJUDA PARA INSTALAR É SÓ PEDIR!

  • Respostas 15
  • Visualizações 3.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @victor4312 achei o link de um vídeo demonstrativo na página php que você disponibilizou então eu editei o tópico com o mesmo pro pessoal ver como o evento funciona  

Posted Images

Postado
20 horas atrás, victor4312 disse:

Olá pessoal como falei irei postar alguns eventos sem bugs para vocês e GRÁTIS!

Estarei também postando uma source OTX paga para vocês.

Chega de enrolar vamos ao evento (Particularmente gosto muito desse)

**SÓ CONFIGUREM NO MAPA DO EVENTO O LOCAL DE SAÍDA DAS ILHAS**

**EVENTO NÃO É DE MINHA AUTORIA MAS COMO É MEU ESTOU POSTANDO**

 

5 bosses localizados nas ilhas temáticas

Os jogadores deverão se unir para conseguir vencer todos os bosses das ilhas e atingir a última com o mais temido. Apenas os bravos guerreiros conseguem chegar ao final, como prêmio eles recebem a experiência dos bosses e loot.

 

 

Vá em data/creaturescripts/scripts e crie um aquivo chamado IOE.lua e cole isso dentro

agora na mesma pasta creaturescripts/scripts procure pela pasta login.lua e lá adicione o registro do evento

após isso vá em data/creaturescripts abra o arquivo creaturescripts.xml e adicione a tag

 

agora em data/globalevents/scripts crie um arquivo chamado IOE.lua e cole isso dentro

em globalevents.xml adicione a tag 

agora na pasta LIB crie um arquivo chamado IOE.lua e cole isso dentro

agora na pasta data/monsters crie uma pasta chamada IOE e dentro crie 5 arquivos .xml com os seguintes nomes (irei postar o nome do monstro e em seguida o script dele.

island death.xml

island earth.xml

island energy.xml

island fire.xml

island ice.xml

feito isso agora na pasta data/monsters procure por monster.xml vamos registras nossos novos monsters

agora em data/movements/scripts crie um arquivo chamado IOE.lua e cole isso dentro

agora em movements.xml adicione a tag

pronto pessoal o evento já está registrado em seu servidor, agora vocês configurem a seu desejo na pasta data/LIB <3 

agora irei postar a query o php e o mapa 

 

SQL QUERY PARA REGISTRAR O EVENTO EM SUA DATABASE

PAGINA PHP EM SEU SITE (LINDA)

AGORA O MAPA (NÃO POSTAREI SCAN, QUEM QUISER BAIXAR É SÓ BAIXAR QUEM NÃO QUISER É SÓ CRIAR UM MAPA PARA SEU EVENTO!)

 

É ISSO AE ESPERO QUE GOSTEM DEIXEM SEU REP+ :)<3 

QUEM PRECISAR DE AJUDA PARA INSTALAR É SÓ PEDIR!

Mt bom Espero Mais em Vou ficar no aguardo ^^

  • 1 month later...

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo