mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
Overhaul of the director system and opening quests. Private Areas further implemented as well.
This commit is contained in:
parent
dcaad5729d
commit
e898c045f7
69 changed files with 2602 additions and 1816 deletions
66
data/scripts/directors/Quest/QuestDirectorMan0g001.lua
Normal file
66
data/scripts/directors/Quest/QuestDirectorMan0g001.lua
Normal file
|
@ -0,0 +1,66 @@
|
|||
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 = GetStaticActor("Man0g0");
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl001", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", 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
|
||||
|
||||
player:EndEvent();
|
||||
|
||||
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
|
66
data/scripts/directors/Quest/QuestDirectorMan0l001.lua
Normal file
66
data/scripts/directors/Quest/QuestDirectorMan0l001.lua
Normal file
|
@ -0,0 +1,66 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
--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/QuestDirectorMan0l001";
|
||||
end
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl001", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", 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
|
||||
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onUpdate()
|
||||
end
|
||||
|
||||
function onTalkEvent(player, npc)
|
||||
|
||||
end
|
||||
|
||||
function onPushEvent(player, npc)
|
||||
end
|
||||
|
||||
function onCommandEvent(player, command)
|
||||
|
||||
quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
||||
|
||||
function onCommand(player, command)
|
||||
end
|
66
data/scripts/directors/Quest/QuestDirectorMan0u001.lua
Normal file
66
data/scripts/directors/Quest/QuestDirectorMan0u001.lua
Normal file
|
@ -0,0 +1,66 @@
|
|||
require ("global")
|
||||
require ("quests/man/man0u0")
|
||||
|
||||
--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/QuestDirectorMan0u001";
|
||||
end
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
quest = GetStaticActor("Man0u0");
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl001", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", 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
|
||||
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onUpdate()
|
||||
end
|
||||
|
||||
function onTalkEvent(player, npc)
|
||||
|
||||
end
|
||||
|
||||
function onPushEvent(player, npc)
|
||||
end
|
||||
|
||||
function onCommandEvent(player, command)
|
||||
|
||||
quest = GetStaticActor("Man0l0");
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
||||
|
||||
function onCommand(player, command)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue