mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Scripted almost all of lower limsa.
This commit is contained in:
parent
65389e3362
commit
d1c8987091
161 changed files with 293 additions and 911 deletions
|
@ -0,0 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_6", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,33 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:setQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = player:getQuest("man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
|
||||
player:runEventFunction("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
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_8", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_9", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_10", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,33 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:setQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = player:getQuest("man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil);
|
||||
npc:setQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3, true);
|
||||
man0u0Quest:SaveData();
|
||||
player:getDirector():onTalked(npc);
|
||||
else
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_12", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_13", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
|
@ -0,0 +1,48 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:setQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = player:getQuest("Man0u0");
|
||||
if (man0u0Quest ~= nil) then
|
||||
|
||||
if (triggerName == "pushDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
elseif (triggerName == "talkDefault") then
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE) == false) then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
player:setEventStatus(npc, "pushDefault", false, 0x2);
|
||||
player:getDirector():onTalked(npc);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE, true);
|
||||
man0u0Quest:SaveData();
|
||||
else
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini001", nil, nil, nil);
|
||||
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1) == false) then
|
||||
npc:setQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1, true);
|
||||
man0u0Quest:SaveData();
|
||||
end
|
||||
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
else
|
||||
player:endEvent(); --Should not be here w.o this quest
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue