mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 19:38:26 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_7", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_12", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,31 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
else
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3, true);
|
||||
man0l0Quest:SaveData();
|
||||
player:GetDirector("OpeningDirector"):onTalkEvent(player, npc);
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil);
|
||||
end
|
||||
end
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_6", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (man0l0Quest ~= nil and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == true) then
|
||||
player:SetEventStatus(npc, "pushDefault", true, 0x2);
|
||||
npc:SetQuestGraphic(player, 0x3);
|
||||
else
|
||||
player:SetEventStatus(npc, "pushDefault", true, 0x0);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
choice = callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil);
|
||||
|
||||
if (choice == 1) then
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil);
|
||||
player:EndEvent();
|
||||
|
||||
man0l0Quest:NextPhase(5);
|
||||
|
||||
contentArea = player:GetZone():CreateContentArea(player, "/Area/PrivateArea/Content/PrivateAreaMasterSimpleContent", "man0l01", "SimpleContent30002", "Quest/QuestDirectorMan0l001");
|
||||
|
||||
if (contentArea == nil) then
|
||||
player:EndEvent();
|
||||
return;
|
||||
end
|
||||
|
||||
director = contentArea:GetContentDirector();
|
||||
player:AddDirector(director);
|
||||
director:StartDirector(false);
|
||||
|
||||
player:KickEvent(director, "noticeEvent", true);
|
||||
player:SetLoginDirector(director);
|
||||
|
||||
GetWorldManager():DoZoneChangeContent(player, contentArea, -5, 16.35, 6, 0.5, 16);
|
||||
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_17", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_14", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,10 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_16", nil, nil, nil);
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,10 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_15", nil, nil, nil, nil);
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,51 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == false) then
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT) == true) then
|
||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
|
||||
if (triggerName == "pushDefault") then
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
elseif (triggerName == "talkDefault") then
|
||||
--Is doing talk tutorial?
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT) == false) then
|
||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT, true);
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
man0l0Quest:SaveData();
|
||||
|
||||
player:GetDirector("OpeningDirector"):onTalkEvent(player, npc);
|
||||
--Was he talked to for the mini tutorial?
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini001", nil, nil, nil);
|
||||
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == false) then
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1, true);
|
||||
man0l0Quest:SaveData();
|
||||
|
||||
player:GetDirector("OpeningDirector"):onTalkEvent(player, npc);
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_11", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_5", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_10", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,33 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
else
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini002", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2, true);
|
||||
man0l0Quest:SaveData();
|
||||
player:GetDirector("OpeningDirector"):onTalkEvent(player, npc);
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_13", nil, nil, nil);
|
||||
end
|
||||
end
|
||||
end
|
||||
player:EndEvent();
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_4", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
20
Data/scripts/unique/ocn0Battle02/PopulaceStandard/zone.lua
Normal file
20
Data/scripts/unique/ocn0Battle02/PopulaceStandard/zone.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
|
||||
function onZoneInit(zone)
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
function onZoneOut(zone, player)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue