mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 12:56:07 +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
26
Data/scripts/quests/dft/DftSea.lua
Normal file
26
Data/scripts/quests/dft/DftSea.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
--[[
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue