mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +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
|
@ -0,0 +1,45 @@
|
|||
--[[
|
||||
|
||||
PopulaceCompanyGuide Script
|
||||
|
||||
Functions:
|
||||
|
||||
eventTalkWelcome() - Dialog for new recruits
|
||||
eventTalkProvisional() - Message for when rank isn't high enough?
|
||||
eventTalkExclusive() - Message for wrong GC.
|
||||
eventTalkComMember(nil, npc, isFoundationDay) - Information menus for various GC related activities
|
||||
eventTalkStepBreak() - Returns to NPC's neutral state
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
local gcRep = {
|
||||
[1001737] = 1, -- Maelstrom Representative
|
||||
[1001738] = 2, -- Adder Representative
|
||||
[1001739] = 3, -- Flame Representative
|
||||
}
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
local playerGC = player.gcCurrent;
|
||||
local playerGCRanks = {player.gcRankLimsa, player.gcRankGridania, player.gcRankUldah};
|
||||
local npcGC = gcRep[npc:GetActorClassId()];
|
||||
|
||||
if (playerGC ~= npcGC and playerGCRanks[playerGC] == 127) then
|
||||
callClientFunction(player, "eventTalkWelcome");
|
||||
elseif (playerGC == npcGC and playerGCRanks[playerGC] == 127) then
|
||||
callClientFunction(player, "eventTalkProvisional");
|
||||
elseif (playerGC ~= npcGC and playerGCRanks[playerGC] ~= 127) then
|
||||
callClientFunction(player, "eventTalkExclusive");
|
||||
elseif (playerGC == npcGC and playerGCRanks[playerGC] > 10 and playerGCRanks[playerGC] < 112) then
|
||||
callClientFunction(player, "eventTalkComMember", nil, npc, true);
|
||||
end
|
||||
|
||||
callClientFunction(player, "eventTalkStepBreak");
|
||||
player:endEvent();
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue