How to make Krakens stop fleeing?

Discussion in 'Script Support' started by manwitch, Nov 11, 2017.

  1. manwitch

    manwitch Wanderer

    Joined:
    Mar 22, 2017
    Messages:
    9
    Likes Received:
    0
    When attacking krakens, at close to death they flee. Is there an easy way to stop this so they are close to the shore for looting? I've looked through the base ai and the kraken script, but having trouble figuring out where, and/or what to edit? Any help is appreciated.
     
  2. Enroq

    Enroq Sorceror

    Joined:
    Jan 28, 2011
    Messages:
    1,836
    Likes Received:
    202
    Which version of runuo are you using? Pull up your Kraken script and look at..

    upload_2017-11-11_23-59-20.png
     
  3. Arvoreen

    Arvoreen Sorceror

    Joined:
    May 4, 2005
    Messages:
    2,616
    Likes Received:
    67
    Probably easiest to modify your Kraken script, and add

    public override bool CanFlee{ get{ return false; } }

    to it, I would imagine that would work. I found it by looking in BaseCreature (since Kraken inherits from BaseCreature, and nothing sticks out in Kraken about fleeing), and I just searched for the string "Flee".

    *note: I haven't actually TRIED this, it just looks logical.
     
    manwitch, Vorspire and Enroq like this.
  4. manwitch

    manwitch Wanderer

    Joined:
    Mar 22, 2017
    Messages:
    9
    Likes Received:
    0

    Thank you I'll try this today!

    ETA: Yes! This worked perfectly! Thank you Vey Much.
     
    #4 manwitch, Nov 12, 2017
    Last edited: Nov 12, 2017
  5. manwitch

    manwitch Wanderer

    Joined:
    Mar 22, 2017
    Messages:
    9
    Likes Received:
    0

    I got it with the "
    public override bool CanFlee{ get{ return false; } }" edit but, I'm using runuo 2.5 thanks for the help!
     
  6. Enroq

    Enroq Sorceror

    Joined:
    Jan 28, 2011
    Messages:
    1,836
    Likes Received:
    202
    Yeah, that's actually a better solution than I had in mind. I was going to tell you to change its ai type.
     
    manwitch likes this.

Share This Page