#104 Expansion flags for spawns/zones

Closed
opened 4 years ago by image · 1 comments
image commented 4 years ago

Need controllable expansion flags to remove spawns from the world when not in use

Need controllable expansion flags to remove spawns from the world when not in use
image referenced this issue from a commit 4 years ago
image commented 4 years ago
Collaborator

Expansion flags:

0 = Default Catch All

1 = Classic

2 = Desert of Flames

4 = Kingdom of Sky

8 = Echoes of Faydwer

16 = Rise of Kunark

32 = The Shadow Odyssey

64 = Sentinel's Fate

128 = Destiny of Velious

256 = Age of Destiny

512 = Chains of Eternity

1024 = Tears of Veeshan

2048 = Altar of Malice

4096 = Terrors of Thalumbra

8192 = Kunark Ascending

16384 = Planes of Prophecy

32768 = Chaos Descending

65536 = Blood of Luclin

131072 = ??? (Future xpack)

262144 = The Bloodline Chronicles

524288 = The Splitpaw Saga

1048576 = The Fallen Dynasty

/spawn set expansion_flag 12

Will set the mob for KoS and Echoes of Faydwer only (4+8)

ZoneServer/ZoneName.lua:

function preinit_zone_script(Zone) SetZoneExpansionFlag(Zone, 1) end

  • 1 is the expansion flag for the zone, so that would only allow classic mobs
  • if zone xpack flag is set that takes precident over the Rules.cpp flag RULE_INIT(R_Expansion, GlobalExpansionFlag, "0")
  • If a spawn has an expansion flag of 0, will always spawn despite zone or global flag.
Expansion flags: ``` 0 = Default Catch All 1 = Classic 2 = Desert of Flames 4 = Kingdom of Sky 8 = Echoes of Faydwer 16 = Rise of Kunark 32 = The Shadow Odyssey 64 = Sentinel's Fate 128 = Destiny of Velious 256 = Age of Destiny 512 = Chains of Eternity 1024 = Tears of Veeshan 2048 = Altar of Malice 4096 = Terrors of Thalumbra 8192 = Kunark Ascending 16384 = Planes of Prophecy 32768 = Chaos Descending 65536 = Blood of Luclin 131072 = ??? (Future xpack) 262144 = The Bloodline Chronicles 524288 = The Splitpaw Saga 1048576 = The Fallen Dynasty ``` /spawn set expansion_flag 12 Will set the mob for KoS and Echoes of Faydwer only (4+8) ZoneServer/ZoneName.lua: ```function preinit_zone_script(Zone) SetZoneExpansionFlag(Zone, 1) end``` - 1 is the expansion flag for the zone, so that would only allow classic mobs - if zone xpack flag is set that takes precident over the Rules.cpp flag RULE_INIT(R_Expansion, GlobalExpansionFlag, "0") - If a spawn has an expansion flag of 0, will always spawn despite zone or global flag.
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.