• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Boss Summon Spell Bugged

  • Thread starter Thread starter Deleted member 141899
  • Start date Start date
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:
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?
 
Am a bit tired but it looks to me that the first one should be working fine except that when it reaches the summon limit, it continues to say the words even though it is not summoning. (move the words into the summon count check)
The second one has nothing that limits the amount of summons it can have. It will always summon 3 demons every time that spell is executed. (add the same summon check that is in the first one)
 
Am a bit tired but it looks to me that the first one should be working fine except that when it reaches the summon limit, it continues to say the words even though it is not summoning. (move the words into the summon count check)
The second one has nothing that limits the amount of summons it can have. It will always summon 3 demons every time that spell is executed. (add the same summon check that is in the first one)
These scripts doesn't convince monsters after summon(that's the way it should work), but also it can't reach limit, but summon from time to time 3 demons and 2 minions at the same time.

#edit:
If you really want they to be convinced then take this scripts:
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
             doConvinceCreature(cid, mid)
        end
    end
    return doCombat(cid, combat, var)

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
            doConvinceCreature(cid, mid)
    return doCombat(cid, combat, var)
end
 
Last edited:
doSummonCreature should already create the monster as a summon and should not require doConvinceCreature.
 
I though put in the monster file.xml the <Max summons> but they dont will say "
Minions! Follow my call!" for example
 
I though put in the monster file.xml the <Max summons> but they dont will say "
Minions! Follow my call!" for example
Changing max summons in the monster.xml is not going to limit how many summons it can have if you have a custom spell that summons a monster. Please re-read my first post and you will know what is wrong.
 
BUMP!

I think doSummonCreature do not create monster as a summon.. because i tested and with convince creature are working..

the monster continues casting a spell, but no summons more (OK), but with creature convince all summoned monsters disappear when die, which becomes a problem for me because I need the body "Minion of Gaz'haragoth" becomes a teleport ..

HELP
 
BUMP! Help!

I have a problem that i dont know what to do!!!

IF i use the function doConvinceCreature, the function GetCreatureSummons to limite max summons Works 100%.....

ELSEIF dont use doConvinceCreature, the function GetCreatureSummons DONT limit the max summons

BUT

IF I USE doConvinceCreature, ALL SUMMONS OF CREATURE DISAPEAR!

I WORKING IN MONSTER "GAZ'HARAGOTH" AND I NEED THE SUMMONS GET THE DEAD BODY ID = 22455 WHEN DIE, BUT HOW IF THE SUMMON DISAPEAR????

I TRIED ALL AND I CANT SOLVE THIS QUESTION! HELP ME PLEASE >.<
 
Last edited by a moderator:
Back
Top