Added support for quests to enable and then redisable processing of movement.

This commit is contained in:
Noudess
2020-07-27 10:43:24 -04:00
parent 44a1256eb9
commit 8e7591cd4b
7 changed files with 32 additions and 1 deletions
+14
View File
@@ -2070,6 +2070,19 @@ XS(XS__repopzone) {
XSRETURN_EMPTY;
}
XS(XS__processmobswhilezoneempty);
XS(XS__processmobswhilezoneempty) {
dXSARGS;
if (items != 1)
Perl_croak(aTHX_ "Usage: quest::processmobswhilezoneempty(bool on)");
bool ProcessingOn = ((int) SvIV(ST(0))) == 0 ? false : true;
quest_manager.processmobswhilezoneempty(ProcessingOn);
XSRETURN_EMPTY;
}
XS(XS__npcrace);
XS(XS__npcrace) {
dXSARGS;
@@ -5614,6 +5627,7 @@ EXTERN_C XS(boot_quest) {
newXS(strcpy(buf, "playersize"), XS__playersize, file);
newXS(strcpy(buf, "playertexture"), XS__playertexture, file);
newXS(strcpy(buf, "popup"), XS__popup, file);
newXS(strcpy(buf, "processmobswhilezoneempty"), XS__processmobswhilezoneempty, file);
newXS(strcpy(buf, "pvp"), XS__pvp, file);
newXS(strcpy(buf, "qs_player_event"), XS__qs_player_event, file);
newXS(strcpy(buf, "qs_send_query"), XS__qs_send_query, file);