mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
540 B
540 B
Function: HasQuest(player, quest_id)
Description: Return's true if the player has the quest_id active in their journal.
Parameters:
player(Spawn) - Spawn object representingplayer.quest_id(uint32) - Integer valuequest_id.
Returns: Return's true if the player has an active quest (not completed/pending).
Example:
-- From ItemScripts/abadlypolishedsteelkey.lua
function examined(Item, Player)
if not HasQuest(Player, Polishedsteelkey) then
OfferQuest(nil, Player, Polishedsteelkey)
end