mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Started mass overhaul of quests and related components like small talk. Fixed some scripts. More fixes required.
This commit is contained in:
parent
df49eefadb
commit
2279ee7017
33 changed files with 1241 additions and 279 deletions
33
Data/scripts/quests/dft/DftFst.lua
Normal file
33
Data/scripts/quests/dft/DftFst.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
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
|
||||
[1001437] = "defaultTalkWithSybell_001", -- Sybell
|
||||
}
|
||||
|
||||
function onTalk(player, quest, npc, eventName)
|
||||
local clientFunc = defaultTalkFst[npc:GetActorClassId()];
|
||||
callClientFunction(player, "delegateEvent", player, quest, clientFunc);
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
function IsQuestENPC(player, quest, npc)
|
||||
return defaultTalkFst[npc:GetActorClassId()] ~= nil;
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue