mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00

# Conflicts: # FFXIVClassic Map Server/FFXIVClassic Map Server.csproj # FFXIVClassic Map Server/Server.cs # data/scripts/player.lua # scripts/zones/193/npcs/pplStd_11@0C100.lua
27 lines
No EOL
516 B
Lua
27 lines
No EOL
516 B
Lua
--[[
|
|
|
|
ActivateCommand Script
|
|
|
|
Switches between active and passive mode states
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
if (player:getState() == 0) then
|
|
player:changeState(2);
|
|
elseif (player:getState() == 2) then
|
|
player:changeState(0);
|
|
end
|
|
|
|
player:endCommand();
|
|
|
|
--For Opening Tutorial
|
|
if (player:hasQuest("Man0l0") or player:hasQuest("Man0g0") or player:hasQuest("Man0u0")) then
|
|
player:getDirector():onCommand(command);
|
|
end
|
|
|
|
end
|
|
|
|
function onEventUpdate(player, npc)
|
|
end |