No categories assigned
LUA:CanReceiveQuest
- Last edited 12 years ago by I need to Update My Profile
Syntax
CanReceiveQuest([Spawn*] player, [int32] quest_id)
Explanation
This function returns a true/false value after a check to see if a player is eligible to receive a quest.
Example
function hailed(NPC, Spawn)
if CanReceiveQuest(Spawn, 1)
OfferQuest(NPC, Spawn, 1)
end
end
When an npc with this function is hailed, if the spawn that hailed is able to receive quest 1, the npc will offer quest 1.