25 lines
655 B
Markdown
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
|
|
```
|