nefinoo
Carnage.flv
I am using OtservBr
i am looking for a creaturescript like this
But when the original monster, in this case Zamulosh dies, all the clones disappear, in short i am looking for a mechanic in which the clones have the same life and name as the original, but the moment you kill the original, it makes the clones disappear, and another creature appears.
i am looking for a creaturescript like this
Lua:
function onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
local targetMonster = creature:getMonster()
if not targetMonster or targetMonster:getName():lower() ~= 'zamulosh' and not targetMonster:getMaster() then
return true
end
local monster = Game.createMonster('Zamulosh3', targetMonster:getPosition(), true, true)
if not monster then
return true
end
return true
end
function onThink(creature)
local spectators = Game.getSpectators(Position(33644, 32757, 11), false, false, 10, 10, 10, 10)
for i = 1, #spectators do
local master = spectators[i]
if master:getMaxHealth() == 300000 and not master:getMaster() then
master:addSummon(creature)
end
end
end
But when the original monster, in this case Zamulosh dies, all the clones disappear, in short i am looking for a mechanic in which the clones have the same life and name as the original, but the moment you kill the original, it makes the clones disappear, and another creature appears.