mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-20 09:35:56 +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,43 @@
|
|||
--[[
|
||||
|
||||
PopulaceCompanyBuffer Script
|
||||
|
||||
Functions:
|
||||
|
||||
eventTalkWelcome(player, boolean) - Welcome dialog. Boolean seems to be related to rank?
|
||||
eventTalkBufEffect() - Dialog for applying Sanction
|
||||
eventTalkBufEffectAfter(player) - Dialog after applying Sanction
|
||||
eventTalkStepBreak() - Returns to NPC's neutral state
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
local gcRep = {
|
||||
[1500388] = 1, -- Maelstrom Representative
|
||||
[1500389] = 2, -- Adder Representative
|
||||
[1500390] = 3, -- Flame Representative
|
||||
}
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
local playerGC = player.gcCurrent;
|
||||
local playerGCRanks = {player.gcRankLimsa, player.gcRankGridania, player.gcRankUldah};
|
||||
|
||||
local choice = callClientFunction(player, "eventTalkWelcome", player, true);
|
||||
|
||||
if (choice == 1 and playerGCRanks[playerGC] > 10 and playerGCRanks[playerGC] < 112) then
|
||||
callClientFunction(player, "eventTalkBufEffect");
|
||||
callClientFunction(player, "eventTalkBufEffectAfter", player);
|
||||
-- TODO: Add Sanction buff
|
||||
else
|
||||
player:SendMessage(0x20, "", "Quit hex editing your memory.");
|
||||
end
|
||||
|
||||
callClientFunction(player, "eventTalkStepBreak");
|
||||
player:endEvent();
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue