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:
Help-me! :thumbup:
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