mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
45
Data/scripts/commands/NpcLinkshellChatCommand.lua
Normal file
45
Data/scripts/commands/NpcLinkshellChatCommand.lua
Normal file
|
@ -0,0 +1,45 @@
|
|||
require ("global")
|
||||
|
||||
--[[
|
||||
|
||||
NpcLinkshellChatCommand Script
|
||||
|
||||
Handler for when a player clicks a npc ls to talk to. If adding new linkshells to the handle, make sure to add
|
||||
it to the handler table (with correct offset), and that your function is above the handler. If padding is needed
|
||||
to hit some ID, add "nils".
|
||||
|
||||
--]]
|
||||
|
||||
|
||||
local function handleAdventurersGuild(player)
|
||||
if (player:HasQuest(110006) == true) then
|
||||
local man0g1Quest = player:GetQuest("Man0g1");
|
||||
player:SendGameMessage(man0g1Quest, 330, 39, 1300018, nil);
|
||||
end
|
||||
end
|
||||
|
||||
local function handlePathOfTheTwelve(player)
|
||||
player:SendMessage(0x20, "", "Test");
|
||||
end
|
||||
|
||||
local npcLsHandlers = {
|
||||
handleAdventurersGuild,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
handlePathOfTheTwelve
|
||||
}
|
||||
|
||||
function onEventStarted(player, command, triggerName, npcLsId)
|
||||
|
||||
if (npcLsHandlers[npcLsId] ~= nil) then
|
||||
npcLsHandlers[npcLsId](player);
|
||||
player:SetNpcLS(npcLsId-1, NPCLS_ACTIVE);
|
||||
else
|
||||
player:SendMessage(0x20, "", "That Npc Linkshell is not implemented yet.");
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue