Script::GetZonePVPInfo
function · ui · primitive
- Address
0x48d540· 437 bytes, up to0x48d6f4- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the zone PvP type, its faction name and whether the leaf is an arena
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/zonetext#getzonepvpinfo
Finding: GetZonePVPInfo in ui: zone text, zone events and zone PvP
GetZonePVPInfo() always pushes three values. The third is 1 when the leaf area's flags (+0x10) have bit 0x80, else nil, computed before any bail. The first two are nil unless the gate is open: the world-entry word 0x88272c is nonzero or the zone row's flags have bit 0x10, and there is an active player. With the gate open the first is friendly when the player's faction template friend mask (+0x10) meets the zone's faction group mask (+0x50),
else hostile when its enemy mask (+0x14) does, else contested; the second is the name of the first FactionGroup row whose mask bit is in the zone mask and which also has a nonempty localised name (0x48d671), or the empty string.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.