By default, summoned monsters cannot summon more monsters.U can edit .xml of monster and add exeta res command , aswell how fast its gonna to repeat
<script>
<event name="onThink_summonCreature"/>
</script>
<event type="think" name="onThink_summonCreature" event="script" value="onThink_summonCreature.lua"/>
function onThink(cid, interval)
if getCreatureName(cid):lower() == "whatever your monsters name is" then
if #getCreatureSummons(cid) < 2 then -- edit 2 for max amount of summons
local summon = doSummonMonster("monster you want to summon name is", getThingPosition(cid))
doConvinceCreature(cid, summon)
end
end
return true
end
this one to create a new monster, But this isn't what i wanted to do.By default, summoned monsters cannot summon more monsters.
I think he wants
Main creature -> summons monster
summoned monster -> summons more monsters.
-------
I dunno if doConvinceCreature works for monsters.. I dunno if it's even required either.
but try this I guess.
place in monster
creaturescripts.xmlXML:<script> <event name="onThink_summonCreature"/> </script>
onThink_summonCreature.luaXML:<event type="think" name="onThink_summonCreature" event="script" value="onThink_summonCreature.lua"/>
Lua:function onThink(cid, interval) if getCreatureName(cid):lower() == "whatever your monsters name is" then if #getCreatureSummons(cid) < 2 then -- edit 2 for max amount of summons local summon = doSummonMonster("monster you want to summon name is", getThingPosition(cid)) doConvinceCreature(cid, summon) end end return true end
Seems like yea :]people are confusing exeta res with utevo res
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatArea(combat, createCombatArea(AREA_SQUARE1X1))
function onTargetCreature(cid, target) return doChallengeCreature(cid, target) end
setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
function onCastSpell(cid, var)
local pos = getThingPos(cid)
local maxSummons = 1
local creatureName = 'Wolf'
if(#getCreatureSummons(cid) >= maxSummons) then
doPlayerSendCancel(cid, 'You are unable to summon more.')
return false
end
local v = doSummonCreature(creatureName, pos)
doConvinceCreature(cid, v)
doSendMagicEffect(getThingPos(v), CONST_ME_TELEPORT)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doCombat(cid, combat, numberToVariant(v))
return true
end