mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Scripts for running the various commands/npcs (done so far) are pushed.
This commit is contained in:
parent
e851c767df
commit
e409d3792c
67 changed files with 1447 additions and 0 deletions
22
scripts/commands/ActivateCommand.lua
Normal file
22
scripts/commands/ActivateCommand.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
--[[
|
||||
|
||||
ActivateCommand Script
|
||||
|
||||
Switches between active and passive mode states
|
||||
|
||||
--]]
|
||||
|
||||
function onEventStarted(player, actor)
|
||||
|
||||
if (player:getState() == 0) then
|
||||
player:changeState(2);
|
||||
elseif (player:getState() == 2) then
|
||||
player:changeState(0);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue