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:
Filip Maj 2017-04-15 16:36:39 -04:00
parent 2de4934c41
commit 9a2a79095c
7 changed files with 60 additions and 10 deletions

View File

@ -1,5 +1,5 @@
require ("global") require ("global")
function init(npc) 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 end

View File

@ -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

View File

@ -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

View 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;

View File

@ -11,6 +11,13 @@ end
function onEventStarted(player, actor, triggerName) 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"); man0l0Quest = player:GetQuest("Man0l0");
startTutorialMode(player); startTutorialMode(player);
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrBtl001", nil, nil, nil); callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrBtl001", nil, nil, nil);

View File

@ -51,6 +51,12 @@ INVENTORY_KEYITEMS = 0x0064; --Max 0x500
INVENTORY_EQUIPMENT = 0x00FE; --Max 0x23 INVENTORY_EQUIPMENT = 0x00FE; --Max 0x23
INVENTORY_EQUIPMENT_OTHERPLAYER = 0x00F9; --Max 0x23 INVENTORY_EQUIPMENT_OTHERPLAYER = 0x00F9; --Max 0x23
-- NPC LS
NPCLS_GONE = 0;
NPCLS_INACTIVE = 1;
NPCLS_ACTIVE = 2;
NPCLS_ALERT = 3;
--UTILS --UTILS
function kickEventContinue(player, actor, trigger, ...) function kickEventContinue(player, actor, trigger, ...)

View File

@ -1,15 +1,8 @@
require ("global") require ("global")
function onEventStarted(player, npc, triggerName) function onEventStarted(player, npc, triggerName)
man0g1Quest = player:GetQuest("Man0g0"); defaultFst = GetStaticActor("DftFst");
callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithVkorolon_001");
if (man0g1Quest ~= nil) then
if (triggerName == "talkDefault") then
callClientFunction(player, "delegateEvent", player, man0g1Quest, "processEvent020_2");
end
end
player:EndEvent(); player:EndEvent();
end end