• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Mage Bomb(chance active)

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
I gave initiate a project in which need help do it.
We can finish the script, refine and leave the more original as possible with the 'mage bomb'.
We can make a super 'mage bomb'.
My initiate script:
PHP:
 local bomber1 = Druid
 local bomber2 = Sorcerer
 local bomber1Pos = ???
 local bomber2Pos = ???

function onStepIn(cid, item, pos)
 ran = math.random(1, 100) 
        if ran == 1 then
	if item.actionid == 5000 then
	   doSummonCreature(bomber1, bomber1Pos)
	   doSummonCreature(bomber2, bomber2Pos)
	   doSummonCreature(bomber1, bomber1Pos)
	   doSummonCreature(bomber2, bomber2Pos)
	   doSummonCreature(bomber1, bomber1Pos)
	   doSummonCreature(bomber2, bomber2Pos)
	   doSummonCreature(bomber1, bomber1Pos)
	   doSummonCreature(bomber2, bomber2Pos)
  end
 end
  return TRUE
end

function onStepOut(cid, item, position, fromPosition)
	if item.actionid == 5000 then
	   doRemoveCreature(bomber1, bomber1Pos)
	   doRemoveCreature(bomber2, bomber2Pos)
	   doRemoveCreature(bomber1, bomber1Pos)
	   doRemoveCreature(bomber2, bomber2Pos)
	   doRemoveCreature(bomber1, bomber1Pos)
	   doRemoveCreature(bomber2, bomber2Pos)
	   doRemoveCreature(bomber1, bomber1Pos)
	   doRemoveCreature(bomber2, bomber2Pos)
 end
 return FALSE
end
Help-me! :thumbup:
 
Druid:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Druid" nameDescription="a druid" race="blood" experience="15694800" speed="0" manacost="0">
<health now="1145" max="1145"/>
<look type="145" head="99" body="23" legs="71" feet="0" 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="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="1145"/>
</flags>
<attacks>
<attack name="physical" interval="2000" range="7" min="-400" max="-500">
<attribute key="shootEffect" value="suddendeath"/>
<attribute key="areaEffect" value="mortarea"/>
</attack>
</attacks>
<defenses armor="11" defense="10">
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity ice="0"/>
<immunity holy="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<elements>
<element physicalPercent="0"/>
<element energyPercent="50"/>
<element firePercent="50"/>
<element earthPercent="50"/>
<element icePercent="50"/>
<element holyPercent="50"/>
<element deathPercent="50"/>
</elements>
</monster>

Sorcerer:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Sorcerer" nameDescription="a sorcerer" race="blood" experience="15694800" speed="0" manacost="0">
<health now="1145" max="1145"/>
<look type="145" head="99" body="23" legs="71" feet="0" 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="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="1145"/>
</flags>
<attacks>
<attack name="physical" interval="2000" range="7" min="-400" max="-500">
<attribute key="shootEffect" value="suddendeath"/>
<attribute key="areaEffect" value="mortarea"/>
</attack>
</attacks>
<defenses armor="11" defense="10">
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity ice="0"/>
<immunity holy="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<elements>
<element physicalPercent="0"/>
<element energyPercent="50"/>
<element firePercent="50"/>
<element earthPercent="50"/>
<element icePercent="50"/>
<element holyPercent="50"/>
<element deathPercent="50"/>
</elements>
</monster>
 
Code:
 local bomber1 = Druid
 local bomber2 = Sorcerer

function onStepIn(cid, item, pos)
    ran = math.random(1, 100) 
    if ran == 1 then
        if item.actionid == 5000 then
           for i = 1,4 do
               doSummonCreature(bomber1, getCreaturePosition(cid))
               for y = 1,4 do
                   doSummonCreature(bomber2, getCreaturePosition(cid))
               end
           end
        end
     end
     return TRUE
end

function onStepOut(cid, item, position, fromPosition)
    if item.actionid == 5000 then
       doRemoveCreature(bomber1, getCreaturePosition(cid).x - 1)
       doRemoveCreature(bomber2, getCreaturePosition(cid).x + 1)
       doRemoveCreature(bomber1, getCreaturePosition(cid).y - 1)
       doRemoveCreature(bomber2, getCreaturePosition(cid).y + 1)
       doRemoveCreature(bomber1, { x = getCreaturePosition(cid).x - 1, y = getCreaturePosition(cid).y - 1, z = getCreaturePosition(cid).z })
       doRemoveCreature(bomber2, { x = getCreaturePosition(cid).x + 1, y = getCreaturePosition(cid).y - 1, z = getCreaturePosition(cid).z })
       doRemoveCreature(bomber1, { x = getCreaturePosition(cid).x + 1, y = getCreaturePosition(cid).y + 1, z = getCreaturePosition(cid).z })
       doRemoveCreature(bomber2, { x = getCreaturePosition(cid).x - 1, y = getCreaturePosition(cid).y + 1, z = getCreaturePosition(cid).z} )
 end
 return FALSE
end

Maybe oO

btw: someone has already released mage bomb script...
 
Code:
local bomber1 = "Druid"
local bomber2 = "Sorcerer"

Code:
for i = 1,4 do
    doSummonCreature(bomber1, getCreaturePosition(cid))
    doSummonCreature(bomber2, getCreaturePosition(cid))
end
 
imagemgv6.jpg

PHP:
local bomber1 = "Druid"
local bomber2 = "Sorcerer"

function onStepIn(cid, item, pos)
    ran = math.random(1, 100) 
    if ran == 1 then
        if item.actionid == 5000 then
	for i = 1,4 do
	   doSummonCreature(bomber1, getCreaturePosition(cid))
	   doSummonCreature(bomber2, getCreaturePosition(cid))
   end
  end
 end
  return TRUE
end

function onStepOut(cid, item, position, fromPosition)
    if item.actionid == 5000 then
       doRemoveCreature(bomber1, getCreaturePosition(cid).x - 1)
       doRemoveCreature(bomber2, getCreaturePosition(cid).x + 1)
       doRemoveCreature(bomber1, getCreaturePosition(cid).y - 1)
       doRemoveCreature(bomber2, getCreaturePosition(cid).y + 1)
       doRemoveCreature(bomber1, { x = getCreaturePosition(cid).x - 1, y = getCreaturePosition(cid).y - 1, z = getCreaturePosition(cid).z })
       doRemoveCreature(bomber2, { x = getCreaturePosition(cid).x + 1, y = getCreaturePosition(cid).y - 1, z = getCreaturePosition(cid).z })
       doRemoveCreature(bomber1, { x = getCreaturePosition(cid).x + 1, y = getCreaturePosition(cid).y + 1, z = getCreaturePosition(cid).z })
       doRemoveCreature(bomber2, { x = getCreaturePosition(cid).x - 1, y = getCreaturePosition(cid).y + 1, z = getCreaturePosition(cid).z} )
 end
 return FALSE
end
 
Back
Top