mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 12:47:46 +00:00
Added scripts for all the npcs (minus the door) in the Limsa Opening zone (boat). The beginning tutorial stuff is also scripted.
This commit is contained in:
parent
91842ab08a
commit
ae9a712477
21 changed files with 343 additions and 5 deletions
13
scripts/directors/openingDire.lua
Normal file
13
scripts/directors/openingDire.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
function onEventStarted(player, actor, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc ,triggerName)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
13
scripts/directors/openingDire_ocn0Btl02_0h@0C100.lua
Normal file
13
scripts/directors/openingDire_ocn0Btl02_0h@0C100.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
function onEventStarted(player, actor, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
--man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_3", nil, nil, nil, nil);
|
||||||
|
--player:endEvent();
|
||||||
|
end
|
|
@ -7,7 +7,11 @@ function onLogin(player)
|
||||||
player:sendMessage(0x1D,"",">PlayTime == 0, new player!");
|
player:sendMessage(0x1D,"",">PlayTime == 0, new player!");
|
||||||
|
|
||||||
initClassItems(player);
|
initClassItems(player);
|
||||||
initRaceItems(player);
|
initRaceItems(player);
|
||||||
|
end
|
||||||
|
|
||||||
|
if (player:hasQuest(110001) == true or player:hasQuest(110005) == true or player:hasQuest(110009) == true) then
|
||||||
|
--player:setDirector("openingDirector");
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
7
scripts/zones/155/npcs/doorStd_fst0Twn01a_31@0CE00.lua
Normal file
7
scripts/zones/155/npcs/doorStd_fst0Twn01a_31@0CE00.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/MapObj/DoorStandard", false, false, false, false, false, 5900001 , false, false, 0, 0, 0x141, 0xB7d;
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
end
|
10
scripts/zones/155/zone.lua
Normal file
10
scripts/zones/155/zone.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
function onZoneInit(zone)
|
||||||
|
end
|
||||||
|
|
||||||
|
function onZoneIn(zone, player)
|
||||||
|
end
|
||||||
|
|
||||||
|
function onZoneOut(zone, player)
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_01@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_01@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_4", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_02@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_02@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_5", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_03@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_03@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_6", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_04@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_04@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_7", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
20
scripts/zones/193/npcs/pplStd_05@0C100.lua
Normal file
20
scripts/zones/193/npcs/pplStd_05@0C100.lua
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil);
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_06@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_06@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_07@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_07@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_10", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_08@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_08@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_11", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_09@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_09@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_12", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
20
scripts/zones/193/npcs/pplStd_0a@0C100.lua
Normal file
20
scripts/zones/193/npcs/pplStd_0a@0C100.lua
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini002", nil, nil, nil);
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_13", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
20
scripts/zones/193/npcs/pplStd_0b@0C100.lua
Normal file
20
scripts/zones/193/npcs/pplStd_0b@0C100.lua
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil);
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_14", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_0c@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_0c@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_15", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_0d@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_0d@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_16", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
19
scripts/zones/193/npcs/pplStd_0e@0C100.lua
Normal file
19
scripts/zones/193/npcs/pplStd_0e@0C100.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
function onInstantiate(npc)
|
||||||
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
|
|
||||||
|
if (triggerName == "talkDefault") then
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_17", nil, nil, nil);
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
|
end
|
|
@ -3,11 +3,24 @@ function onInstantiate(npc)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onEventStarted(player, npc, triggerName)
|
function onEventStarted(player, npc, triggerName)
|
||||||
|
|
||||||
man0l0Quest = getStaticActor("Man0l0");
|
man0l0Quest = getStaticActor("Man0l0");
|
||||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
|
||||||
--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_002", nil, nil, nil); --LTW
|
if (triggerName == "pushDefault") then
|
||||||
--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_003", nil, nil, nil); --LTW NO GUILD
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
||||||
|
player:setEventStatus(npc, "pushDefault", false, 0x2);
|
||||||
|
elseif (triggerName == "talkDefault") then
|
||||||
|
--if () then
|
||||||
|
-- player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
||||||
|
--else
|
||||||
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini001", nil, nil, nil);
|
||||||
|
--end
|
||||||
|
else
|
||||||
|
player:endEvent();
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function onEventUpdate(player, npc)
|
function onEventUpdate(player, npc)
|
||||||
|
player:endEvent();
|
||||||
end
|
end
|
|
@ -3,7 +3,16 @@
|
||||||
function onZoneInit(zone)
|
function onZoneInit(zone)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onZoneIn(zone, player)
|
function onZoneIn(player)
|
||||||
|
openingQuest = player:getQuest(110001);
|
||||||
|
|
||||||
|
--Opening Quest
|
||||||
|
if (openingQuest ~= nil) then
|
||||||
|
if (openingQuest:GetQuestFlag(0) == false) then
|
||||||
|
player:kickEvent(player:getDirector(), "noticeEvent");
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function onZoneOut(zone, player)
|
function onZoneOut(zone, player)
|
||||||
|
|
Loading…
Add table
Reference in a new issue