No categories assigned
LUA:ProvidesQuest
- Last edited 16 years ago by Christopher
Syntax
ProvidesQuest(Quest, QuestID)
Explination
This is a rather important function that will go under your NPCs "spawn(NPC)" function. It lets the server know which quests the NPC provides.
Example
function spawn(NPC)
ProvidesQuest(NPC, QUEST_1) ProvidesQuest(NPC, QUEST_2) ProvidesQuest(NPC, QUEST_3) ProvidesQuest(NPC, QUEST_4) end
Often times you will find QUEST_1,2,3,4,ect in place of quest ID numbers. These variables are defined at the top of the .lua script for easy reference to which quest is what. Here is an example from Brood Matron Vrim Malthyk.
QUEST_1 = 142 --A Puppy for your potion-- QUEST_2 = 151 --He said, he said-- QUEST_3 = 152 --Paying homage to the past-- QUEST_4 = 162 --Kill or be killed--