#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 年之前 中引用了该工单
image4 年之前 关闭
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.
登录 并参与到对话中。
正在加载...
取消
保存
这个人很懒,什么都没留下。