Skip to content

Commit

Permalink
Merge pull request #557 from KinglyKrab/master
Browse files Browse the repository at this point in the history
Added quest global support for zone_controller.
  • Loading branch information
Akkadius committed Sep 14, 2016
2 parents a9070b1 + 8aa942c commit 06dfba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/ruletypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ RULE_INT(Zone, WeatherTimer, 600) // Weather timer when no duration is available
RULE_BOOL(Zone, EnableLoggedOffReplenishments, true)
RULE_INT(Zone, MinOfflineTimeToReplenishments, 21600) // 21600 seconds is 6 Hours
RULE_BOOL(Zone, UseZoneController, true) // Enables the ability to use persistent quest based zone controllers (zone_controller.pl/lua)
RULE_BOOL(Zone, EnableZoneControllerGlobals, false) // Enables the ability to use quest globals with the zone controller NPC
RULE_CATEGORY_END()

RULE_CATEGORY(Map)
Expand Down
4 changes: 4 additions & 0 deletions zone/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,10 @@ bool NPC::SpawnZoneController(){
npc_type->merchanttype = 0;
npc_type->bodytype = 11;

if (RuleB(Zone, EnableZoneControllerGlobals)) {
npc_type->qglobal = true;
}

npc_type->prim_melee_type = 28;
npc_type->sec_melee_type = 28;

Expand Down

0 comments on commit 06dfba3

Please sign in to comment.