mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
- Still needs many of Artisan NPC's created and Placed. - Still needs the TS Recipes to be imported. - Only implemented up to the current expansion but added framework for all other/later tasks, will just need NPC scripts added for those regions. Code is ineffecient but clear to read and troubleshoot, can be refined at a later time.
26 lines
694 B
Lua
26 lines
694 B
Lua
-- Newer Cultural Tradeskill Armor Quest
|
|
|
|
local pickclaw_list = {11007,11010,11020,11043,11049,11052,11056,11063,11069,11078,11085,11096,11113,11131};
|
|
|
|
function event_killed_merit(e)
|
|
if e.other:IsTaskActive(5784) then
|
|
local npc_id = e.self:GetNPCTypeID();
|
|
local quest_npc = false;
|
|
for i = 1, #pickclaw_list do
|
|
if npc_id == pickclaw_list[i] then
|
|
quest_npc = true;
|
|
end
|
|
end
|
|
|
|
|
|
if quest_npc then
|
|
if math.random(100) <= 30 then
|
|
if e.other:HasItem(34997) then
|
|
e.other:UpdateTaskActivity(5784,1,1);
|
|
else
|
|
e.other:Message(MT.Yellow, "You see the perfect pattern, but as you search your bags you cannot find your impression book.");
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|