Ir para conteúdo
Entre para seguir isso  
morvy

Summon Deaths Para minha voc

Recommended Posts

morvy    0
morvy

Nome: Summon death

Autor: Morvy

Versão Testada: Basiei em uma 8.5... Porén Não testado, se possivel teste para mim? Please :z

 

 

Olá pessoal tudo bem? Como muitos já viram que eu tenho um post com uma vocação de Warlock, eu decidi fazer os script dos summons mais bonitinhos :viado:

 

Bom parando de papo vamos nessa:

Se você esta perdido e não do que eu estou falando, visite: http://forums.otserv.com.br/f179/nova-vocacao-warlock-109506/ a vocação esta ai.

Monstros no final do Post

 

Se quiser a vocation entre naquele link e pegue ela

 

Em data/spells/spells.xml:

	<instant name="Summon Death" words="exana mas gran mort" lvl="10" mana="100" soul="100" prem="1" exhaustion="2000" needlearn="0" script="nome que você quiser.lua">
	<vocation name="Warlock"/>
	<vocation name="Supreme Warlock"/>
</instant>

Se quiser que nao seja a vocação warlock que use esta spell, é só mudar a vocation name.

 

Script:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

function onTargetTile(cid, pos)
local position = pos
position.stackpos = 255
local item = getThingfromPos(position)
if item.itemid > 0 then
	if isInArray(CORPSES, item.itemid) == TRUE then
		doRemoveItem(item.uid,1)
local creature1 = doSummonCreature("Summoned Skeleton", pos)
local creature2 = doSummonCreature("Summoned Demon Skeleton", pos)
local creature3 = doSummonCreature("Summoned Betrayed Wraith", pos)
local creature4 = doSummonCreature("Summoned Lost Soul", pos)
local creature5 = doSummonCreature("Summoned Grim Reaper", pos)

       if level > 10 and level < 25 then
		doConvinceCreature(cid, creature1)
		doSendMagicEffect(pos, CONST_ME_POFF)
	end
       else if level > 26 and level < 120 then
		doConvinceCreature(cid, creature2)
		doSendMagicEffect(pos, CONST_ME_POFF)
	end
       else if level > 121 and level < 180 then
		doConvinceCreature(cid, creature3)
		doSendMagicEffect(pos, CONST_ME_POFF)
	end
       else if level > 181 and level < 250 then
		doConvinceCreature(cid, creature4)
		doSendMagicEffect(pos, CONST_ME_POFF)
	end
       else if level > 251 then
		doConvinceCreature(cid, creature5)
		doSendMagicEffect(pos, CONST_ME_POFF)
	end

end
end


setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

 

 

Se você não quer por novos monstros, mude estes códigos, só que ai deveria mudar o convince destas criaturas, se não se ja viu né aushuashu:

local creature1 = doSummonCreature("Summoned Skeleton", pos)
local creature2 = doSummonCreature("Summoned Demon Skeleton", pos)
local creature3 = doSummonCreature("Summoned Betrayed Wraith", pos)
local creature4 = doSummonCreature("Summoned Lost Soul", pos)
local creature5 = doSummonCreature("Summoned Grim Reaper", pos)

 

por este:

local creature1 = doSummonCreature("Skeleton", pos)
local creature2 = doSummonCreature("Demon Skeleton", pos)
local creature3 = doSummonCreature("Betrayed Wraith", pos)
local creature4 = doSummonCreature("Lost Soul", pos)
local creature5 = doSummonCreature("Grim Reaper", pos)

 

--EDIT--

Para não ter que ficar entrando em outro topico para pegar os monstros, estao ai:

[spoiler=MONSTROS]Va em data\monster copie e cole 7 arquivos, e em cada você colocara:

 

Summoned Betrayed Wraith.xml

<?xml version="1.0" encoding="UTF-8"?>
<monster name="summoned betrayed wraith" nameDescription="a summoned betrayed wraith" race="undead" experience="3500" speed="270" manacost="0">
 <health now="4200" max="4200"/>
 <look type="233" corpse="6316"/>
 <targetchange interval="5000" chance="8"/>
 <strategy attack="100" defense="0"/>
 <flags>
   <flag summonable="0"/>
   <flag attackable="1"/>
   <flag hostile="1"/>
   <flag illusionable="1"/>
   <flag convinceable="1"/>
   <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="90" attack="95"/>

   <attack name="earth" interval="2000" chance="20" length="5" spread="3" min="-100" max="-350">
     <attribute key="areaEffect" value="yellowbubble"/>
   </attack>

   <attack name="speed" interval="1000" chance="12" range="1" target="1" speedchange="-750" duration="6000">
   <attribute key="areaEffect" value="mortarea"/>
   </attack>

 </attacks>
 <defenses armor="15" defense="15">

   <defense name="healing" interval="1000" chance="30" min="150" max="290">
     <attribute key="areaEffect" value="blueshimmer"/>
   </defense>

   <defense name="invisible" interval="4000" chance="50" duration="4000">
     <attribute key="areaEffect" value="redshimmer"/>
   </defense>

   <defense name="speed" interval="1000" chance="12" speedchange="360" duration="3000">
     <attribute key="areaEffect" value="redshimmer"/>
   </defense>
 </defenses>

 <immunities>
   <immunity death="1"/>
   <immunity energy="1"/>
   <immunity fire="1"/>
   <immunity poison="1"/>
   <immunity lifedrain="1"/>
   <immunity paralyze="1"/>
   <immunity invisible="1"/>
 </immunities>

 <elements>
   <element icePercent="50"/>
   <element holyPercent="-20"/>
 </elements>

 <voices interval="5000" chance="10">
   <voice sentence="Rrrah!"/>
 </voices>

  <loot>
   <item id="2148" chance1="100000" countmax="100" /> -- gold coin
   <item id="2148" chance1="100000" countmax="100" /> -- gold coin
   <item id="2148" chance1="100000" countmax="100" /> -- gold coin
   <item id="2152" chance1="40000" countmax="4" /> -- Platinum Coin
   <item id="7365" chance1="5500" countmax="6" /> -- Onyx Arrow
   <item id="7590" chance="7000"/> --great mana potion
   <item id="2394" chance="14000"/> -- morning star
   <item id="5799" chance="800"/> -- Golden Figurine
   <item id="2173" chance="900"/> -- aol
   <item id="1987" chance="100000"> --Bag
       <inside>
           <item id="6558" chance="2222"/> -- concentrated demonic blood
           <item id="2387" chance="13500"/> -- double axe
           <item id="7364" chance="5500" countmax="4" /> -- Sniper Arrow
           <item id="2226" chance="10000" /> -- fishbone
           <item id="5741" chance="2500"/> -- skullhelm
           <item id="7416" chance="850"/> -- Bloody Edge
           <item id="2145" chance1="6222" countmax="3" /> -- small diamond
           <item id="3976" chance1="4333" countmax="2" /> -- Soul Orb
       </inside>
   </item>
  </loot>
</monster>

Summoned Demon Skeleton.xml

<?xml version="1.0" encoding="UTF-8"?>
<monster name="summoned demon skeleton" nameDescription="a summoned demon skeleton" race="undead" experience="240" speed="230" manacost="620">
 <health now="400" max="400"/>
 <look type="37" head="20" body="30" legs="40" feet="50" corpse="5963"/>
 <targetchange interval="5000" chance="8"/>
 <strategy attack="100" defense="0"/>
 <flags>
   <flag summonable="1"/>
   <flag attackable="1"/>
   <flag hostile="1"/>
   <flag illusionable="1"/>
   <flag convinceable="1"/>
   <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" min="-0" max="-185"/>
   <attack name="lifedrain" interval="2000" chance="10" range="1" min="-30" max="-50"/>
 </attacks>
 <defenses armor="25" defense="25"/>
     <elements>
       <element icePercent="-10"/>
       <element holyPercent="-25"/>
   </elements>
 <immunities>
   <immunity fire="1"/>
   <immunity poison="1"/>
   <immunity lifedrain="1"/>
   <immunity death="1"/>
   <immunity drunk="1"/>
 </immunities>
 <loot>
   <item id="2148" countmax="40" chance1="100000" chancemax="0"/>
   <item id="2399" countmax="1" chance1="10000" chancemax="0"/>
   <item id="2515" chance="400"/>
   <item id="2178" chance="1000"/>
   <item id="2050" chance="10000"/>
   <item id="1987" chance="100000">
     <inside>
       <item id="2417" chance="5000"/>
       <item id="2482" chance="2857"/>
       <item id="2194" chance="700"/>
       <item id="2398" chance="10000"/>
     </inside>
   </item>
 </loot>
</monster>

Summoned Grim Reaper.xml

<?xml version="1.0" encoding="UTF-8"?>
<monster name="summoned Grim Reaper" nameDescription="a summoned grim reaper" race="undead" experience="4500" speed="370" manacost="0">
 <health now="4100" max="4100"/>
 <look type="300" corpse="8955"/>
 <targetchange interval="5000" chance="10"/>
 <strategy attack="80" defense="20"/>

   <flags>
       <flag summonable="0"/>
       <flag attackable="1"/>
       <flag hostile="1"/>
       <flag illusionable="0"/>
       <flag convinceable="1"/>
       <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" skill="135" attack="135"/>
   <attack name="death" interval="2000" chance="15" range="7" target="1" min="0" max="-60">
       <attribute key="shootEffect" value="suddendeath"/>
         <attribute key="areaEffect" value="mortarea"/>
   </attack>
   <attack name="lifedrain" interval="2000" chance="15" length="7" spread="0" min="0" max="-600">
       <attribute key="areaEffect" value="redspark"/>
   </attack>
   <attack name="physical" interval="2000" chance="14" radius="4" target="0" min="0" max="-395">
         <attribute key="areaEffect" value="redspark"/>
      </attack>
   <attack name="physical" interval="3000" chance="19" length="7" spread="3" min="0" max="-300">
       <attribute key="areaEffect" value="explosionarea"/>
   </attack>
 </attacks>

 <defenses armor="30" defense="30">
   <defense name="healing" interval="1000" chance="25" min="100" max="195">
     <attribute key="areaEffect" value="blueshimmer"/>
   </defense>
 </defenses>

   <elements>
       <element energyPercent="-10"/>
       <element earthPercent="20"/>
       <element icePercent="10"/>
       <element holyPercent="-20"/>
       <element deathPercent="60"/>
       <element firePercent="-20"/>
   </elements>

 <immunities>
   <immunity lifedrain="1"/>
   <immunity paralyze="1"/>
   <immunity invisible="1"/>
 </immunities>

 <voices interval="5000" chance="10">
   <voice sentence="Death!" yell="1"/>
   <voice sentence="Come a little closer!" yell="1"/>
   <voice sentence="The end is near!" yell="1"/>
 </voices>

   <loot>
       <item id="2148" countmax="98" chance="40000"/>    -- gold coin
       <item id="2148" countmax="100" chance="40000"/>    -- gold coin
       <item id="2152" countmax="4" chance="20000"/>    -- Platinum Coin
       <item id="2150" countmax="3" chance="10000"/>    -- small amethyst
       <item id="6558" chance="13500"/>                -- concentrated demonic blood
       <item id="6558" chance="18500"/>                -- concentrated demonic blood
       <item id="6500" countmax="1" chance="6800"/>    -- demonic essence
       <item id="6300" chance="2300"/>                -- death ring
       <item id="5909" countmax="1" chance="2800"/>    -- white piece of cloth
       <item id="2521" chance="7500"/>            -- dark shield
       <item id="1987" chance="100000">
           <inside>
               <item id="5022" countmax="4" chance="40000"/>    -- orichalcum pearl
               <item id="8889" chance="1100"/>            -- skullcracker armor
               <item id="7418" chance="1200"/>            -- nightmare blade
               <item id="7589" chance="7500"/>            -- strong mana potion
               <item id="8910" chance="5000"/>            -- underworld rod
               <item id="8473" chance="7777"/>            -- ultimate health potion
           </inside>
       </item>
   </loot>
</monster>

Summoned Lost Soul.xml

<?xml version="1.0" encoding="UTF-8"?>
<monster name="summoned lost soul" nameDescription="a summoned lost soul" race="undead" experience="4000" speed="280" manacost="0">
 <health now="8500" max="8500"/>
 <look type="232" corpse="6310"/>
 <targetchange interval="5000" chance="8"/>
 <strategy attack="100" defense="0"/>
 <flags>
   <flag summonable="0"/>
   <flag attackable="1"/>
   <flag hostile="1"/>
   <flag illusionable="1"/>
   <flag convinceable="1"/>
   <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="85" attack="95"/>

   <attack name="death" interval="2000" chance="13" radius="4" target="0" min="-150" max="-250">
     <attribute key="areaEffect" value="smallclouds"/>
   </attack>

   <attack name="speed" interval="2000" chance="18" radius="6" target="0" speedchange="-600" duration="7000">
   <attribute key="areaEffect" value="smallclouds"/>
   </attack>

  </attacks>
 <defenses armor="35" defense="35">
   <defense name="speed" interval="1000" chance="35" speedchange="370" duration="30000">
     <attribute key="areaEffect" value="redshimmer"/>
   </defense>
 </defenses>
     <elements>
       <element energyPercent="50"/>
       <element earthPercent="50"/>
       <element holyPercent="-10"/>
   </elements>
 <immunities>
   <immunity fire="1"/>
   <immunity poison="1"/>
   <immunity death="1"/>
   <immunity paralyze="1"/>
   <immunity invisible="1"/>
 </immunities>
 <voices interval="5000" chance="30">
   <voice sentence="Forgive Meeeee!"/>
   <voice sentence="Mouuuurn meeee!"/>
 </voices>
 <loot>
   <item id="2148" chance1="100000" countmax="100" /> -- gold coin
   <item id="2148" chance1="100000" countmax="100" /> -- gold
   <item id="2148" chance1="100000" countmax="100" /> -- Gold
   <item id="2152" chance1="59000" countmax="3" /> --Platinums    
   <item id="2227" chance="20000" /> -- rotten meat
   <item id="2260" chance="10000" /> -- blank rune
   <item id="2480" chance="6667" /> -- legion helmet
   <item id="5806" chance="1000" /> -- silver goblet
   <item id="1987" chance="100000" > -- bag
     <inside>
       <item id="2463" chance="3933" /> -- skull staff
       <item id="2483" chance="10000" /> -- scale armor
       <item id="7413" chance="900" /> -- titan axe
       <item id="6526" chance="2300" /> -- skeleton decoration
       <item id="5801" chance="2738" /> -- key ring
       <item id="2197" chance="2500" countmax="5" /> -- ssa
     </inside>
   </item>
 </loot>
</monster>

Summoned Skeleton.xml

<?xml version="1.0" encoding="UTF-8"?>
<monster name="summoned Skeleton" nameDescription="a summoned skeleton" race="undead" experience="45" speed="180" manacost="350">
 <health now="65" max="65"/>
 <look type="298" corpse="2843"/>
 <targetchange interval="2000" chance="0"/>
 <strategy attack="100" defense="0"/>
 <flags>
   <flag summonable="1"/>
   <flag attackable="1"/>
   <flag hostile="1"/>
   <flag illusionable="0"/>
   <flag convinceable="1"/>
   <flag pushable="0"/>
   <flag canpushitems="0"/>
   <flag canpushcreatures="0"/>
   <flag targetdistance="1"/>
   <flag staticattack="90"/>
   <flag runonhealth="0"/>
 </flags>
 <attacks>
     <attack name="melee" interval="2000" min="-10" max="-40"/>
     <attack name="lifedrain" interval="2000" min="-5" max="-17">
            <attribute key="areaEffect" value="redshimmer"/>
            </attack>
 </attacks>
 <defenses armor="2" defense="9"/>
   <elements>
       <element holyPercent="10"/>
   </elements>
 <immunities>
   <immunity death="1"/>
 </immunities>
 <loot>
   <item id="2148" countmax="15" chance1="90000" chancemax="0"/> --Gold Coin
   <item id="2230" chance="3333"/> --Bone
   <item id="1987" chance="100000"> --Bag
     <inside>
       <item id="2398" chance="10000"/> --Mace
       <item id="2511" chance="5000"/> --Brass Shield
       <item id="2787" countmax="3" chance1="90000" chancemax="0"/> --White Mushroom
       <item id="2789" chance="4000"/> --Brown Mushroom
     </inside>
   </item>
 </loot>
</monster>

Agora vamos as tags:

Va em data\monster\monsters.xml e adicione:

    <monster name="Summoned Betrayed Wraith" file="Summoned Betrayed Wraith.xml"/>
   <monster name="Summoned Demon Skeleton" file="Summoned Demon Skeleton.xml"/>
   <monster name="Summoned Lost Soul" file="Summoned Lost Soul.xml"/>
   <monster name="Summoned Skeleton" file="Summoned Skeleton.xml"/>
   <monster name="Summoned Grim Reaper" file="Summoned Grim Reaper.xml"/>

Salve e feche.

 

Editado por morvy

Compartilhar este post


Link para o post
Mock    32
Mock

Hum.

legal.

Compartilhar este post


Link para o post
Dartier    0
Dartier

Código ficou totalmente desorganizado, mas ficou bem legal o script em si. ;)

Compartilhar este post


Link para o post
morvy    0
morvy

Valew cara

Compartilhar este post


Link para o post
Hauntedy    0
Hauntedy

Realmente uma coisa que eu nao sei scriptar eh magia e runas, essa ficou muito boa. Principalmente por ter uma vocação nova que usa ela xD

Compartilhar este post


Link para o post
Kerooker    0
Kerooker

ficou muito bom, mesmo! adorei demais

Compartilhar este post


Link para o post
Mock    32
Mock

O script esta com erros e nao funciona. Morvy vc tem 48h p ajeita se nao vou ser forçado a trancar o tópico.

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.

×