#104 Expansion flags for spawns/zones

닫힘
image4 년 전을 오픈 · 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 년 전가 Close
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.
로그인하여 이 대화에 참여
로딩중...
취소
저장
아직 콘텐츠가 없습니다.