Script::PingLocation
function · ui · primitive
- Address
0x4eeca0· 805 bytes, up to0x4eefc4- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Minimap method PingLocation, its pair in the table 0x84c538
- Confidence
- verified, proof one
- Finding
- ui/minimap#a-click-on-the-map
- Test
ui::glue_4ea_4eeca0_ping_projection
Finding: A click on the map in ui: Minimap, the widget
PingLocation(x, y) turns a centre-relative point in script units into a world point. The first number
is divided by the map's height and the second by its width, the reverse of the names: world X is the
player's X plus y over the width times the zoom diameter, and world Y the player's Y minus x over the
height times that. Without numbers it uses the player's position. A spell waiting for a location casts
at the ground there (a trace from 100,000 to −100,000, raised by 8) and no ping is sent. Otherwise, in a
party or raid it sends message 0x1d5 with X then Y, and in any case it applies the ping itself.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 20
- CDataStore::PutUInt32 base
- CDataStore::PutFloat base
- GetScaledScreenAspect screencoord
- MultiplyByScreenScaleX screencoord
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- MinimapApplyPing ui
- ClientServices::Send net
- TraceWorldSegment terrain
- GetZoomRadius minimap
- IsSpellTargeting spell
- BindSpellTargetLocation spell
- SpellTargetWantsLocation spell
- lua_settop lua
- lua_type lua
- lua_isnumber lua
- lua_tonumber lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.