mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Ported over the Limsa/Uldah opening zone scripts. Still not 100% done.
This commit is contained in:
parent
926e9146e2
commit
3cd181f5da
35 changed files with 99 additions and 85 deletions
|
@ -21,7 +21,8 @@ function onEventStarted(player, npc, triggerName)
|
|||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
choice = callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil);
|
||||
|
||||
if (resultId == 0x2B9EBC42) then
|
||||
if (choice == 1) then
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil);
|
||||
player:EndEvent();
|
||||
player:SetDirector("QuestDirectorMan0l001", true);
|
||||
|
||||
|
@ -30,13 +31,8 @@ function onEventStarted(player, npc, triggerName)
|
|||
player:SendGameMessage(player, worldMaster, 50011, 0x20);
|
||||
|
||||
GetWorldManager():DoPlayerMoveInZone(player, 9);
|
||||
player:KickEvent(player:GetDirector(), "noticeEvent", true);
|
||||
player:KickEvent(player:GetDirector(), "noticeEvent", true);
|
||||
else
|
||||
if (choice == 1) then
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil);
|
||||
end
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
end
|
|
@ -1,3 +0,0 @@
|
|||
function init(npc)
|
||||
return "/Chara/Npc/Monster/Jellyfish/JellyfishScenarioLimsaLv00", false, false, false, false, false, npc:GetActorClassId(), true, true, 10, 0, 4, false, false, false, false, false, false, false, false, 2;
|
||||
end
|
3
data/scripts/unique/wil0Battle01/DoorStandard/door1.lua
Normal file
3
data/scripts/unique/wil0Battle01/DoorStandard/door1.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0, 0x1A5, 0xB0D;
|
||||
end
|
3
data/scripts/unique/wil0Battle01/DoorStandard/door2.lua
Normal file
3
data/scripts/unique/wil0Battle01/DoorStandard/door2.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0, 0x1A5, 0xB09;
|
||||
end
|
|
@ -6,7 +6,7 @@ function onSpawn(player, npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
man0u0Quest = player:GetQuest("Man0u0");
|
||||
|
||||
if (man0u0Quest ~= nil) then
|
||||
if (triggerName == "pushDefault") then
|
|
@ -3,6 +3,6 @@ require ("quests/man/man0u0")
|
|||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_6", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,20 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0u0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0u0Quest = player:GetQuest("Man0u0");
|
||||
|
||||
if (man0u0Quest != nil)
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true);
|
||||
man0u0Quest:SaveData();
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
|
||||
end
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -2,9 +2,11 @@ require ("global")
|
|||
require ("quests/man/man0u0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
man0u0Quest = player:GetQuest("Man0u0");
|
||||
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then
|
||||
if (man0u0Quest ~= nil) then
|
||||
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3, true);
|
||||
|
@ -14,5 +16,6 @@ function onEventStarted(player, npc, triggerName)
|
|||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil);
|
||||
end
|
||||
|
||||
end
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0u0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_6_2", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,18 +0,0 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0u0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true);
|
||||
man0u0Quest:SaveData();
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue