mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
cleaned up magicstate and weaponskillstate
- todo: fix IsFacing - added thunder spell (todo: figure out why battleactionx10 crashes client on sending shit)
This commit is contained in:
parent
452f1cc8c0
commit
9024f3fad6
20 changed files with 415 additions and 195 deletions
|
@ -6,25 +6,22 @@ function onGain(target, effect)
|
|||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
|
||||
target.SendMessage(messageId, sender, "dicks");
|
||||
end;
|
||||
|
||||
function onTick(target, effect)
|
||||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
|
||||
-- todo: actual regen effect thing
|
||||
local ability = GetWorldManager().GetAbility(27346);
|
||||
local anim = bit32.bxor(bit32.lshift(ability.animationType, 24), bit32.lshift(tonumber(1), 12) , 101);
|
||||
local addHp = effect.GetMagnitude();
|
||||
|
||||
target.AddHP(addHp);
|
||||
target.SendBattleActionX01Packet(anim, 101, 0, 0, addHp);
|
||||
target.SendMessage(messageId, sender, string.format("ate %u dicks", addHp));
|
||||
-- target.SendBattleActionX01Packet(anim, 101, 0, 0, addHp);
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
|
||||
target.SendMessage(messageId, sender, "dicks gon");
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue