mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00

Etc3g0: Polished up the script, made it as authentic to retail as I could get it barring reward hand-out and starting the quest Etc5g0: Ported the quest over from the old scripting setup. Man0u1: Still very early wip.
42 lines
No EOL
1.3 KiB
Lua
42 lines
No EOL
1.3 KiB
Lua
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 |