• 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!

Death and summon script

GOD Esteve

New Member
Joined
May 18, 2011
Messages
87
Reaction score
1
Hello guys, im trying to make a creaturescript that when i kill a monster, summon another in some position.

Here it`s what i make to try to explain but this script it`s not working.

Code:
creature1 = 'creature1'
creature2 = 'creature2'
creature3 = 'creature3'
creature2pos = Position(141, 105, 7)
creature3pos = Position(153, 105, 7)

this part above cant be changed because the rest of my system.

function onDeath(cid, corpse, killer, mostDamage, unjustified, mostDamage_unjustified)
if creature1 then
    Game.createMonster(creature2, creature2pos)
end
if creature2 then
    Game.createMonster(creature3, creature3pos)
end
return TRUE
end

Thank You
 
Last edited:
Back
Top