D
Deleted member 141899
Guest
Hello,
Can someone help me for put to summon 2 monsters in same time? I'm using TFS 1.1
Thank you!
Can someone help me for put to summon 2 monsters in same time? I'm using TFS 1.1
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_RED)
function onCastSpell(creature, var)
local summoncount = creature:getSummons()
if #summoncount < 7 then
local e, f = math.random(-2, 2), math.random(-2, 2)
local mid = Game.createMonster("minion of Gaz'haragoth", { x=creature:getPosition().x+e, y=creature:getPosition().y+f, z=creature:getPosition().z })
if not mid then
return false
end
creature:say("Minions! Follow my call!", TALKTYPE_ORANGE_1)
mid:setMaster(creature)
else
return false
end
return combat:execute(creature, var)
end
Thank you!
Last edited by a moderator: