585 B
585 B
Function: OfferQuest(npc, player, quest_id, forced)
Description: NPC Offers the quest window or auto accept of the quest to the Player.
Parameters:
npc
(Spawn) - Spawn object representingnpc
.player
(Spawn) - Spawn object representingplayer
.quest_id
(uint32) - Integer valuequest_id
.forced
(int32) - Integer valueforced
.
Returns: None.
Example:
-- From ItemScripts/abadlypolishedsteelkey.lua
function examined(Item, Player)
if not HasQuest(Player, Polishedsteelkey) then
OfferQuest(nil, Player, Polishedsteelkey)
end