No categories assigned
LUA:HasPendingLootItem
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: HasPendingLootItem()
Checks to see if the given player has pending item with the given entity
Syntax
var = HasPendingLootItem(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (Spawn), param3 (int32)
- param1 is the spawn we want to check
- param2 is the player we want to check
- param3 is the item ID to check for
Usage
function hailed(NPC, Spawn)
if HasPendingLootItem(NPC, Spawn, 1) then
Say(NPC, "You have item 1 pending with me")
end
end
The NPC will respond if the player has item ID 1 pending with it
Notes
Returns a bool