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

26 lines
No EOL
634 B
Lua

--[[
Quest Script
Name: Small Talk
Code: DftSea
Id: 110540
Contains all default lines for talkable npcs in the Sea Region (aka La Noscea).
* NOTE: This quest is active for all players at all times.
]]
-- [ActorClassId] = "client_function_name"
local defaultTalkSea = {
[1234] = "defaultTalkWithLefchild_001" -- Lefchild
}
function onTalk(player, quest, npc, eventName)
local clientFunc = defaultTalkSea[npc.GetActorClassId()];
callClientFunction(player, "delegateEvent", player, quest, clientFunc);
player:EndEvent();
end
function IsQuestENPC(player, quest, npc)
return defaultTalkSea[npc.GetActorClassId()] ~= nil;
end