1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-21 04:07:48 +00:00
project-meteor-server/Data/scripts/quests/dft/DftFst.lua

42 lines
1.3 KiB
Lua
Raw Normal View History

require ("global")
--[[
Quest Script
Name: Small Talk
Code: DftFst
Id: 110542
Contains all default lines for talkable npcs in the Forest Region (aka Black Shroud).
* NOTE: This quest is active for all players at all times.
]]
-- [ActorClassId] = "client_function_name"
local defaultTalkFst = {
[1000821] = "defaultTalkWithNellaure_001", -- Nellaure
[1001081] = "defaultTalkWithKhumamoshroca_001", -- Khuma Moshroca
[1001103] = "defaultTalkWithMestonnaux_001", -- Mestonnaux
[1001396] = "defaultTalkWithLefwyne_001", -- Lefwyne
[1001430] = "defaultTalkWithKinnison_001", -- Kinnison - Two args (nil errors client). If either >= 0, dialog mentions you've met Kan-E-Senna.
[1001437] = "defaultTalkWithSybell_001" -- Sybell
-- [1000458] = "defaultTalkWithInn_Desk"
}
function onTalk(player, quest, npc, eventName)
local npcId = npc:GetActorClassId();
local clientFunc = defaultTalkFst[npcId];
if (npcId == 1001430) then -- Kinnison
callClientFunction(player, "delegateEvent", player, quest, clientFunc, -1,-1);
else
callClientFunction(player, "delegateEvent", player, quest, clientFunc);
end
player:EndEvent();
end
function IsQuestENPC(player, quest, npc)
return defaultTalkFst[npc:GetActorClassId()] ~= nil;
end