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

How to make monster summons follow summoner

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,454
Solutions
1
Reaction score
627
Location
Estonia
This is 1 problematic Monster i have here..
Anyway, i added
Code:
    <summons maxSummons="5">
        <summon name="squirrel" interval="10000" chance="50" max="5"/>
    </summons>

this for my monster.

How can i make it so that, the squirrel follows the summoner ("Bandit druid"), instead of the player.

Didn't find anything similar when tried to search for the answer
 
Is the squirrel convinceable?
Code:
<flag convinceable="1"/>

what does that do?
and yes

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Squirrel" nameDescription="a squirrel" race="blood" experience="0" speed="450" manacost="220">
    <health now="650" max="650"/>
    <look type="274" corpse="7628"/>
    <targetchange interval="4000" chance="0"/>
   
    <flags>
        <flag summonable="1"/>
        <flag attackable="1"/>
        <flag hostile="0"/>
        <flag illusionable="1"/>
        <flag convinceable="1"/>
        <flag pushable="1"/>
        <flag canpushitems="0"/>
        <flag canpushcreatures="0"/>
        <flag targetdistance="1"/>
        <flag runonhealth="0"/>
    </flags>
   
    <defenses armor="5" defense="5"/>
   
    <voices interval="5000" chance="10">
        <voice sentence="Chchch"/>
    </voices>
   
    <loot>
    </loot>
</monster>
 
I suppose Bandit druid is hostile and therefore it attacks the player.
making his summons attack the player aswell.

therefor it looks like the summons follow the player instead of the creature.
 
I suppose Bandit druid is hostile and therefore it attacks the player.
making his summons attack the player aswell.

therefor it looks like the summons follow the player instead of the creature.

ye, i know.
How can i make them follow the summoner. even when druid is targeting me?
 
I have idea i would like to try out today. I want to create monsters with spell (instead of summoning) how can i do this?
 
game.createMonster()
Code:
function onCastSpell(cid, var, isHotkey)
local summonLocation = cid:getPosition()
   
    Game.createMonster(squirrel, summonLocation, false, true)
   
    return true
end

It gives me no errors, but doesn't create the squirrels either..
 
Back
Top