mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04: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:
		| @@ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user