mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
quest.lua - Script refactored. Moved as much as possible out of the main function to tidy it up. Folded in a complete-quest function from another script. Only works with quest id numbers for now. String support (eg. Man0u0) to come in another commit. ObjectInnDoor.lua - Fixed it to handle events again with the current system.
16 lines
394 B
Lua
16 lines
394 B
Lua
require ("global")
|
|
|
|
function init(npc)
|
|
return false, false, 0, 0;
|
|
end
|
|
|
|
function onEventStarted(player, npc, eventType, eventName)
|
|
defaultFst = GetStaticActor("DftFst");
|
|
choice = callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor", nil, nil, nil);
|
|
|
|
if (choice == 1) then
|
|
GetWorldManager():DoZoneChange(player, 1);
|
|
end
|
|
|
|
player:EndEvent();
|
|
end |