Script::IsUnitOnQuest
function · ui · primitive
- Address
0x4dfe10· 267 bytes, up to0x4dff1a- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes 1 when the player or a party member holds the quest at a list row, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/questshare#isunitonquest
Finding: IsUnitOnQuest in ui: sharing a quest with the party
IsUnitOnQuest(index, unit) takes a 1-based quest list row (a number) and a unit token (a string or
number; either type failing raises Usage: IsUnitOnQuest(index, "unit")) and returns the number 1 or nil. It
is 1 only when the row is a quest, the unit is the player or one of the four party members, the unit's
object is present as a player and not released, and the quest id is in one of the unit's 20 quest slots.
Otherwise nil.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 13
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- GetQuestIdOfRow ui
- CGPartyInfo::IsMember ui
- Script::GetGUIDFromName ui
- CGObject_C::IsReleased objectlayer
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.