mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Added a spawn command for testing. Added scripts for the mole and lemming enemies. A content group is formed when you start the limsa opening (still testing). Added Vkorolon's dialog for the gridania opening echo.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
require ("global")
 | 
			
		||||
 | 
			
		||||
function init(npc)
 | 
			
		||||
	return true, true, 10, 0, 1, true, false, false, false, false, false, false, false, 0;	
 | 
			
		||||
	return true, true, 10, 0, 1, false, false, false, false, false, false, false, false, 0;	
 | 
			
		||||
end
 | 
			
		||||
@@ -0,0 +1,5 @@
 | 
			
		||||
require ("global")
 | 
			
		||||
 | 
			
		||||
function init(npc)
 | 
			
		||||
	return true, true, 10, 0, 1, true, false, false, false, false, false, false, false, 0;	
 | 
			
		||||
end
 | 
			
		||||
@@ -0,0 +1,5 @@
 | 
			
		||||
require ("global")
 | 
			
		||||
 | 
			
		||||
function init(npc)
 | 
			
		||||
	return true, true, 10, 0, 1, true, false, false, false, false, false, false, false, 0;	
 | 
			
		||||
end
 | 
			
		||||
							
								
								
									
										34
									
								
								data/scripts/commands/gm/spawn.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								data/scripts/commands/gm/spawn.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
require("global");
 | 
			
		||||
 | 
			
		||||
properties = {
 | 
			
		||||
    permissions = 0,
 | 
			
		||||
    parameters = "d",
 | 
			
		||||
    description = "Spawns a actor",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function onTrigger(player, argc, actorClassId)
 | 
			
		||||
 | 
			
		||||
	if (actorClassId == nil) then
 | 
			
		||||
		player:SendMessage(0x20, "", "No actor class id provided.");
 | 
			
		||||
		return;
 | 
			
		||||
	end	
 | 
			
		||||
 | 
			
		||||
    local pos = player:GetPos();
 | 
			
		||||
    local x = pos[0];
 | 
			
		||||
    local y = pos[1];
 | 
			
		||||
    local z = pos[2];
 | 
			
		||||
    local rot = pos[3];
 | 
			
		||||
    local zone = pos[4];
 | 
			
		||||
         
 | 
			
		||||
	actorClassId = tonumber(actorClassId);
 | 
			
		||||
	
 | 
			
		||||
	if (actorClassId ~= nil) then		
 | 
			
		||||
		zone = player:GetZone();
 | 
			
		||||
		actor = zone:SpawnActor(actorClassId, "test", pos[0], pos[1], pos[2], pos[3]);
 | 
			
		||||
	end
 | 
			
		||||
	
 | 
			
		||||
	if (actor == nil) then
 | 
			
		||||
		player:SendMessage(0x20, "", "This actor class id cannot be spawned.");
 | 
			
		||||
	end
 | 
			
		||||
	
 | 
			
		||||
end;
 | 
			
		||||
@@ -11,6 +11,13 @@ end
 | 
			
		||||
 | 
			
		||||
function onEventStarted(player, actor, triggerName)	
 | 
			
		||||
 | 
			
		||||
	contentGroup = GetWorldManager():CreateContentGroup(actor);
 | 
			
		||||
	contentGroup:AddMember(director);
 | 
			
		||||
	contentGroup:AddMember(GetWorldManager():GetActorInWorldByUniqueId("opening_jelly"));
 | 
			
		||||
	contentGroup:AddMember(GetWorldManager():GetActorInWorldByUniqueId("opening_yshtola"));
 | 
			
		||||
	contentGroup:AddMember(GetWorldManager():GetActorInWorldByUniqueId("opening_stahlmann"));
 | 
			
		||||
	contentGroup:AddMember(player);
 | 
			
		||||
 | 
			
		||||
	man0l0Quest = player:GetQuest("Man0l0");
 | 
			
		||||
	startTutorialMode(player);
 | 
			
		||||
	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrBtl001", nil, nil, nil);
 | 
			
		||||
 
 | 
			
		||||
@@ -51,6 +51,12 @@ INVENTORY_KEYITEMS = 0x0064; --Max 0x500
 | 
			
		||||
INVENTORY_EQUIPMENT = 0x00FE; --Max 0x23
 | 
			
		||||
INVENTORY_EQUIPMENT_OTHERPLAYER = 0x00F9; --Max 0x23
 | 
			
		||||
 | 
			
		||||
-- NPC LS
 | 
			
		||||
NPCLS_GONE     = 0;
 | 
			
		||||
NPCLS_INACTIVE = 1;
 | 
			
		||||
NPCLS_ACTIVE   = 2;
 | 
			
		||||
NPCLS_ALERT    = 3;
 | 
			
		||||
 | 
			
		||||
--UTILS
 | 
			
		||||
 | 
			
		||||
function kickEventContinue(player, actor, trigger, ...)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,8 @@
 | 
			
		||||
require ("global")
 | 
			
		||||
 | 
			
		||||
function onEventStarted(player, npc, triggerName)
 | 
			
		||||
	man0g1Quest = player:GetQuest("Man0g0");
 | 
			
		||||
	
 | 
			
		||||
	if (man0g1Quest ~= nil) then	
 | 
			
		||||
		if (triggerName == "talkDefault") then
 | 
			
		||||
			callClientFunction(player, "delegateEvent", player, man0g1Quest, "processEvent020_2");		
 | 
			
		||||
			
 | 
			
		||||
		end		
 | 
			
		||||
	end
 | 
			
		||||
	
 | 
			
		||||
    defaultFst = GetStaticActor("DftFst");
 | 
			
		||||
	callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithVkorolon_001");
 | 
			
		||||
	player:EndEvent();
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user