D
Deleted member 141899
Guest
Hello,
I have downloaded the monster pack for tfs 1.1 , cause i want the all bosses of roshamuul prision..
Im using tfs 1.0 and all script works fine, but only the spells of monsters (summon) its is strange..
The Boss dont stop of summon monsters, i checked in the script and have maxsummons, but i dont understand its nots works..
Scripts:
Gaz'haragoth summon spell:
Prince Drazzak Summon Spell:
OBS: I dont get any erros on distro
Can help me please?
I have downloaded the monster pack for tfs 1.1 , cause i want the all bosses of roshamuul prision..
Im using tfs 1.0 and all script works fine, but only the spells of monsters (summon) its is strange..
The Boss dont stop of summon monsters, i checked in the script and have maxsummons, but i dont understand its nots works..
Scripts:
Gaz'haragoth summon spell:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_NONE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SOUND_RED)
local maxsummons = 2
function onCastSpell(cid, var)
doCreatureSay(cid, "Minions! Follow my call!", TALKTYPE_ORANGE_1)
local summoncount = getCreatureSummons(cid)
if #summoncount < 2 then
for i = 1, maxsummons - #summoncount do
local e, f = math.random(-2, 2), math.random(-2, 2)
local mid = doSummonCreature("minion of Gaz'haragoth", { x=getCreaturePosition(cid).x+e, y=getCreaturePosition(cid).y+f, z=getCreaturePosition(cid).z })
if mid == false then
return false
end
end
end
return doCombat(cid, combat, var)
Prince Drazzak Summon Spell:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_NONE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onCastSpell(cid, var)
doCreatureSay(cid, "CRUSH THEM ALL!", TALKTYPE_ORANGE_2)
local mid = doSummonCreature("Demon", { x=33528, y=32330, z=12 })
doSummonCreature("Demon", { x=33523, y=32338, z=12 })
doSummonCreature("Demon", { x=33532, y=32337, z=12 })
if mid == false then
return false
end
return doCombat(cid, combat, var)
end
OBS: I dont get any erros on distro
Can help me please?