1
0
EQ2Emu/docs/lua_functions/HasCollectionsToHandIn.md
2025-05-25 21:42:32 -04:00

25 lines
655 B
Markdown

### Function: HasCollectionsToHandIn(player)
**Description:**
Return's if the player has collections to turn in.
**Parameters:**
- `player` (Spawn) - Spawn object representing `player`.
**Returns:** Return's true if there is collections complete to turn in, otherwise false.
**Example:**
```lua
-- From SpawnScripts/EastFreeport/RennyParvat.lua
function Dialog1(NPC, Spawn)
FaceTarget(NPC, Spawn)
Dialog.New(NPC, Spawn)
Dialog.AddDialog("This is a decent find, I suppose. I can give you a small reward for it.")
Dialog.AddOption("Thanks a lot.")
Dialog.Start()
if HasCollectionsToHandIn(Spawn) then
HandInCollections(Spawn)
end
```