#104 Expansion flags for spawns/zones

Затворени
отворен преди 4 години от image · 1 коментара
image коментира преди 4 години

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 посочи тази задача от ревизия преди 4 години
image посочи тази задача от ревизия преди 4 години
image коментира преди 4 години
Сътрудник

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.
Впишете се за да се присъедините към разговора.
Зареждане...
Отказ
Запис
Все още няма съдържание.