mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 19:57:46 +00:00

- did stuff with magicstate/attackstate - fixed status effect tick - added regen status (todo: actually populate the table and use that name instead of enum's) - added baseStats to char (todo: add bonuses and stuff on top of those, set charaWork values to the calculated ones + bonus)
23 lines
No EOL
400 B
Lua
23 lines
No EOL
400 B
Lua
require ("global")
|
|
|
|
--[[
|
|
|
|
ActivateCommand Script
|
|
|
|
Switches between active and passive mode states
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
if (player:GetState() == 0) then
|
|
player.ChangeState(2);
|
|
player.Engage();
|
|
elseif (player:GetState() == 2) then
|
|
player:ChangeState(0);
|
|
player.Disengage();
|
|
end
|
|
player:endEvent();
|
|
sendSignal("playerActive");
|
|
|
|
end |