mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
71 lines
1.6 KiB
Lua
71 lines
1.6 KiB
Lua
require ("global")
|
|
require ("quests/man/man0g0")
|
|
|
|
--processTtrBtl001: Active Mode Tutorial
|
|
--processTtrBtl002: Targetting Tutorial (After active mode done)
|
|
--processTtrBtl003: Auto Attack Done
|
|
--processTtrBtl004: Tutorial Complete
|
|
|
|
--[[
|
|
12: TP
|
|
13: WeaponSkills
|
|
|
|
]]--
|
|
|
|
function init()
|
|
return "/Director/Quest/QuestDirectorMan0g001";
|
|
end
|
|
|
|
function onEventStarted(player, actor, triggerName)
|
|
|
|
quest = player:GetQuest("Man0g0");
|
|
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl001", nil, nil, nil);
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent010_1", nil, nil, nil);
|
|
player:ChangeMusic(7);
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent020_1", nil, nil, nil);
|
|
|
|
--sendDataPacket: Success
|
|
--sendDataPacket: CloseWidget
|
|
--IF DoW:
|
|
--sendDataPacket: OpenWidget (TP)
|
|
--IF TP REACHED:
|
|
--sendDataPacket: CloseWidget
|
|
--sendDataPacket: OpenWidget (WS)
|
|
--IF WS USED:
|
|
--sendDataPacket: Success
|
|
--sendDataPacket: CloseWidget
|
|
--ELSE MAGIC:
|
|
--sendDataPacket: OpenWidget (DEFEAT ENEMY)
|
|
|
|
--IF DEAD
|
|
--sendDataPacket: Attention
|
|
|
|
quest:NextPhase(10);
|
|
player:EndEvent();
|
|
|
|
GetWorldManager():DoZoneChange(player, 155, "PrivateAreaMasterPast", 1, 15, 175.38, -1.21, -1156.51, -2.1);
|
|
|
|
end
|
|
|
|
function onUpdate()
|
|
end
|
|
|
|
function onTalkEvent(player, npc)
|
|
|
|
end
|
|
|
|
function onPushEvent(player, npc)
|
|
end
|
|
|
|
function onCommandEvent(player, command)
|
|
|
|
quest = GetStaticActor("Man0g0");
|
|
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", nil, nil, nil);
|
|
|
|
end
|
|
|
|
function onEventUpdate(player, npc)
|
|
end
|
|
|
|
function onCommand(player, command)
|
|
end |