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

655 B

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:

-- 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