Hello again, today I bring you a very simple patch I made to enable monster passivity to be set on a monster XML configuration.
The monster will not attack on sight, instead it will wait until it is attacked to fight back. Video example:
(sorry for the shameless self promotion)
Monsters will remember who attacked them for the same amount of time players are battle locked after a fight, which is generally defaulted to 60 seconds, and this is non configurable as this system is very simple. You can use this instead if you want a more complex approach.
Link to the patch: https://gist.github.com/ranisalt/a238128104b7af3a17f1
How to apply: if you are on Linux, put the patch on the root folder of your server (the folder that contains src/ and config.lua) and run:
Otherwise if you run Windows, download patch from here and run:
How to configure:
Edit your monster XML file and add the following flag:
Monsters are non-passive (AKA aggressive, attack on sight) by default, so you need to set the flag to have the new behavior.
Liked it? Don't forget to drop a star by my Forgotten fork, it has more interesting stuff
Thanks and please report any issues you might find! See you again very soon
The monster will not attack on sight, instead it will wait until it is attacked to fight back. Video example:
Monsters will remember who attacked them for the same amount of time players are battle locked after a fight, which is generally defaulted to 60 seconds, and this is non configurable as this system is very simple. You can use this instead if you want a more complex approach.
Link to the patch: https://gist.github.com/ranisalt/a238128104b7af3a17f1
How to apply: if you are on Linux, put the patch on the root folder of your server (the folder that contains src/ and config.lua) and run:
Code:
patch -p1 -i the-name-of-the-patch-file.patch
Code:
patch.exe -p1 --binary -i the-name-of-the-patch-file.patch
How to configure:
Edit your monster XML file and add the following flag:
Code:
<flag passive="1" />
Liked it? Don't forget to drop a star by my Forgotten fork, it has more interesting stuff
Thanks and please report any issues you might find! See you again very soon