Thread: Questing
View Single Post
08-10-14, 07:31 AM   #3
crzyface
A Deviate Faerie Dragon
Join Date: Oct 2007
Posts: 18
Quests86-90

I have started working on populating quest info for pandaria, would like someone to look at it to see if I am doing it right. Since I am new to working with lua, below is the quests86-90.lua and questcats.lua.

If this looks good I will try adding the npc's in followed by objectives.
I not sure if I understand how to add the objectives in correctly, do I only add the name of the objective or the name with the number of items listed as well.

Objectives = {
[objective number] = {
"objective name/description|zone|point type as above|location x|location y|size of box - x|size of box - y",
},
},

For each objective in the quest you can add an objective to the list.
Each objective can have as many boxes drawn as you want to shape it
objective name/description for now have always been nil, which is why unknown quest objectives have always shown '?' when group sharing, or when viewing someone on the map. " Rythal"
Quests86-90.lua
Code:
if not Nx.ModQuests then
	Nx.ModQuests = {}
end

local ModQuests={
------- The Jade Forest Quests --------------
[26619] = {
    Quest = [[A Courteous Guest|0|86|85|26620|48]],
  },
[26620] = {
	Quest = [[The Great Banquet|0|86|85|0|48]],
  },
[29756] = {
	Quest = [[A Humble Offering|0|86|85|0|48]],
  },
[29822] = {
	Quest = [[Lay of the Land|2|86|85|31121|48]],
  },
[31121] = {
	Quest = [[Stay a While, and Listen|2|86|85|31132|48]],
  },
[31132] = {
	Quest = [[A Mile in My Shoes|2|86|85|31134|48]],
  },
[31134] = {
	Quest = [[If These Stones Could Speak|2|86|85|0|48]],
  },
[30011] = {
	Quest = [[A New Vision|0|86|85|0|48]],
  },
[29903] = {
	Quest = [[A Perfact Match|1|86|85|29904|48]],
  },
[29627] = {
	Quest = [[A Proper Weapon|0|86|85|0|48]],
  },
[29629] = {
	Quest = [[A Steady Hand|0|86|85|29646|48]],
  },
}

function Nx.ModQuests:Load10 ()
	for key,val in pairs(ModQuests) do
		Nx.Quests[key] = val
	end
	Nx.ModQuests:Clear10()
end

function Nx.ModQuests:Clear10 ()
	ModQuests = {}
end
--[[ reference samples below
	[29629] = {                 
	Quest = [[A Steady Hand|0|86|85|29646|48]],     add pandaria under number 48 in questcats.lua in hopes it will list these quests correctly
  },									   							
 [quest ID] = {
Quest = [[Quest Name|faction|quest level|quest minimum level|next quest in series|quest category]],
Start = "NPC Id|zone id|point type|location X|location Y",
End = "NPC Id|zone id|point type|location X|location Y",
},
  
--]]
QuestCats.lua
Code:
Nx.QuestCategory={
 "Druid",
 "Shaman",
 "Children's Week",
 "Special",
 "Cooking",
 "Herbalism",
 "Paladin",
 "Warlock",
 "Warrior",
 "Engineering",
 "Blacksmithing",
 "Fishing",
 "Alchemy",
 "Leatherworking",
 "Seasonal",
 "Rogue",
 "Mage",
 "Treasure Map",
 "Hunter",
 "Priest",
 "Tailoring",
 "First Aid",
 "Legendary",
 "Darkmoon Faire",
 "REUSE - old wailing caverns",
 "Battlegrounds",
 "Epic",
 "Ahn'Qiraj War",
 "Lunar Festival",
 "Reputation",
 "Invasion",
 "Midsummer",
 "Brewfest",
 "Inscription",
 "Death Knight",
 "Jewelcrafting",
 "Noblegarden",
 "Tournament",
 "Day of the Dead",
 "Pilgrim's Bounty",
 "Love is in the Air",
 "Cataclysm",
 "Archaeology",
 "Northern Stranglethorn",
 "Firelands Invasion",
 "Uncategorized",
 "Pandaria",
}