Inheritance: GameMessage, ISelfHandler
Exemple #1
0
 private static void ProcessSkillMonk(Player player, Mooege.Core.GS.Map.World world, SecondaryAnimationPowerMessage message)
 {
     int effectID = 0;
     switch (message.PowerSNO)
     {
         case Skills.Skills.Monk.Mantras.MantraOfEvasion:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 143964, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 99694, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.Mantras.MantraOfHealing:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 99948, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 140190, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.Mantras.MantraOfConviction:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 95955, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 146990, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.Mantras.MantraOfRetribution:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 142974, });
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 120), EffectID = 142987, Attached = true }); // 60 ticks/s * 120 = 120s
             break;
         case Skills.Skills.Monk.SpiritSpenders.LethalDecoy:
             effectID = (player.Properties.Gender == 0) ? 99241 : 208435;
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 5), EffectID = effectID, NeedsActor = true }); // 60 ticks/s * 5 = 5s
             break;
         case Skills.Skills.Monk.SpiritSpenders.BreathOfHeaven:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 101174, });
             /*
              * move to effect
             Actor.Attributes[GameAttribute.Resource_Cur, player.ResourceID] -= 75f;
             GameAttributeMap atm = new GameAttributeMap();
             atm[GameAttribute.Resource_Cur, player.ResourceID] = Actor.Attributes[GameAttribute.Resource_Cur, player.ResourceID];
             atm.SendMessage(client, player.DynamicID);
              * */
             break;
         case Skills.Skills.Monk.SpiritSpenders.InnerSanctuary:
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = (60 * 8), EffectID = 98557, NeedsActor = true });
             break;
         case Skills.Skills.Monk.SpiritSpenders.Serenity:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 123156, });
             world.AddEffect(new FXEffect { Actor = player, EffectID = 142890, });
             world.AddEffect(new FXEffect { Actor = player, EffectID = 143230, DurationInTicks = (60 * 3) });
             break;
         case Skills.Skills.Monk.SpiritSpenders.MysticAlly:
             effectID = (player.Properties.Gender == 0) ? 169904 : 123885;
             world.AddEffect(new FXEffect { Actor = player, DurationInTicks = -1, EffectID = effectID, NeedsActor = true }); // until is destroyed
             break;
         case Skills.Skills.Monk.SpiritSpenders.BlindingFlash:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 2588 });
             break;
     }
 }
Exemple #2
0
 private static void ProcessSkillTEST(Player player, Mooege.Core.GS.Map.World world, SecondaryAnimationPowerMessage message)
 {
     switch (message.PowerSNO)
     {
         case Skills.Skills.Wizard.Utility.Archon:
             world.AddEffect(new FXEffect { Actor = player, EffectID = 162301, DurationInTicks = (60 * 15) });
             break;
     }
 }
Exemple #3
0
 public static void ProcessSkillPlayer(Player player, SecondaryAnimationPowerMessage message)
 {
     switch (player.Properties.Class)
     {
         case ToonClass.Barbarian:
             break;
         case ToonClass.DemonHunter:
             break;
         case ToonClass.Monk:
             ProcessSkillMonk(player, player.World, message);
             break;
         case ToonClass.WitchDoctor:
             break;
         case ToonClass.Wizard:
             ProcessSkillTEST(player, player.World, message);
             break;
     }
 }