mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 19:38:26 +02:00
Added Gridania scripts and various others. Fixed error messages popping for scripts that may not use certain functions.
This commit is contained in:
parent
67928ee875
commit
5e926bf668
169 changed files with 1310 additions and 37 deletions
|
@ -0,0 +1,33 @@
|
|||
require ("global")
|
||||
require("/quests/man/man0g0")
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0g0Quest = GetStaticActor("Man0g0");
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(player, npc)
|
||||
|
||||
man0g0Quest = player:GetQuest("Man0g0");
|
||||
|
||||
if (man0g0Quest ~= nil) then
|
||||
|
||||
yda = GetWorldManager():GetActorInWorld(1000009);
|
||||
papalymo = GetWorldManager():GetActorInWorld(1000010);
|
||||
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE) == false) then
|
||||
yda:SetQuestGraphic(player, 0x0);
|
||||
papalymo:SetQuestGraphic(player, 0x2);
|
||||
else
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then
|
||||
yda:SetQuestGraphic(player, 0x2);
|
||||
papalymo:SetQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
20
data/scripts/unique/fst0Battle03/zone.lua
Normal file
20
data/scripts/unique/fst0Battle03/zone.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
require ("global")
|
||||
|
||||
function onZoneInit(zone)
|
||||
end
|
||||
|
||||
function onZoneIn(player)
|
||||
|
||||
openingQuest = player:getQuest(110005);
|
||||
|
||||
--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