diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-15 04:12:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-15 04:12:18 -0300 |
commit | 6cbd6ddfc240f0380cb2ce08b6973fca7a37b44b (patch) | |
tree | 2c835153a87dbdaacf2878c6550ba6a4304171b7 /src/emap/init.c | |
parent | d64597d38a52a9e5aa4423080a343bfa22f55e63 (diff) | |
download | evol-hercules-6cbd6ddfc240f0380cb2ce08b6973fca7a37b44b.tar.gz evol-hercules-6cbd6ddfc240f0380cb2ce08b6973fca7a37b44b.tar.bz2 evol-hercules-6cbd6ddfc240f0380cb2ce08b6973fca7a37b44b.tar.xz evol-hercules-6cbd6ddfc240f0380cb2ce08b6973fca7a37b44b.zip |
New (DANGEROUS) Function for Moubootaur Legends runtime: resetrng()
This will select a new seed (between 0 and 4294967295) and replace it.
Using this command should affect EVERYTHING ingame - from scripts to monsters.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 60658db..7c51918 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -17,6 +17,7 @@ #include "common/socket.h" #include "common/strlib.h" #include "common/timer.h" +#include "common/random.h" #include "map/achievement.h" #include "map/battle.h" #include "map/channel.h" @@ -235,6 +236,7 @@ HPExport void plugin_init (void) addScriptCommand("npcshopattach","s?",npcshopattach); addScriptCommand("instanceowner", "i", InstanceOwner); addScriptCommand("aggravate", "i", aggravate); + addScriptCommand("resetrng", "", resetrng); // Overrides addScriptCommand("debugmes","v*",debugmes); |