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

Added the combo and proc systems Added scripts for most weaponskill and spells as well as some abilities and status effects Added support for multihit attacks Added AbilityState for abilities Added hiteffects that change based on an attack's parameters Added positionals Changed how targeting works for battlecommands Fixed bug that occurred when moving or swapping hotbar commands Fixed bug that occurred when losing status effects
26 lines
No EOL
608 B
Lua
26 lines
No EOL
608 B
Lua
require ("global")
|
|
require ("utils")
|
|
|
|
--[[
|
|
|
|
AttackWeaponSkill Script
|
|
|
|
Finds the correct weaponskill subscript to fire when a weaponskill actor is activated.
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, command, triggerName, arg1, arg2, arg3, arg4, targetActor, arg5, arg6, arg7, arg8)
|
|
|
|
--Are they in active mode?
|
|
if (player:GetState() != 2) then
|
|
player:SendGameMessage(GetWorldMaster(), 32503, 0x20);
|
|
player:endEvent();
|
|
return;
|
|
end
|
|
|
|
if not player.aiContainer.IsEngaged() then
|
|
player.Engage(targetActor);
|
|
end;
|
|
player.WeaponSkill(command.actorId, targetActor);
|
|
player:endEvent();
|
|
end; |