Advertisement
Guest User

BehaviorDb.Bella.cs

a guest
Jul 17th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System;
  5. using wServer.logic.attack;
  6. using wServer.logic.loot;
  7. using wServer.logic.movement;
  8. using wServer.logic.taunt;
  9. using System.Text;
  10. using wServer.logic.cond;
  11.  
  12. namespace wServer.logic
  13. {
  14. partial class BehaviorDb
  15. {
  16. private static _ Bella = Behav()
  17. .Init(0x7410, Behaves("vlntns Loot Balloon Bella",
  18. new RunBehaviors(
  19. Once.Instance(SetConditionEffect.Instance(ConditionEffectIndex.Invulnerable)),
  20. Once.Instance(new SetKey(-1,0)),
  21.  
  22. IfEqual.Instance(-1,0,
  23. new QueuedBehavior(
  24. CooldownExact.Instance(2500), //takes 2.5 seconds and removes invu. (demageable)
  25. UnsetConditionEffect.Instance(ConditionEffectIndex.Invulnerable),
  26. new SetKey(-1,1)
  27. ))
  28. ),
  29. loot: new LootBehavior(LootDef.Empty,
  30. Tuple.Create(100, new LootDef(0, 3, 1, 2,
  31. Tuple.Create(0.01, (ILoot)new ItemLoot("Potion of Vitality")),
  32. Tuple.Create(0.005, (ILoot)new ItemLoot("Eligible Bachelor Skin")),
  33. Tuple.Create(0.005, (ILoot)new ItemLoot("Bashing Bride Skin")),
  34. Tuple.Create(0.01, (ILoot)new ItemLoot("Potion of Life"))
  35. ))
  36. )
  37. ))
  38. .Init(0x738c, Behaves("Bella Donna", //this is the 1st Bella donna, it transmutes at last.
  39. new RunBehaviors(
  40. HpLesser.Instance(84990, new SetKey(-1,0)), //once you hit it, it starts. You will have to demage 10 HP and it starts.
  41. IfEqual.Instance(-1,0,
  42. new QueuedBehavior(
  43. Once.Instance(SetConditionEffect.Instance(ConditionEffectIndex.Invulnerable)),
  44. CooldownExact.Instance(2500),
  45. UnsetConditionEffect.Instance(ConditionEffectIndex.Invulnerable), //removes invulnerable.
  46. Once.Instance(new SetKey(-1,1)),
  47. IfEqual.Instance(-1,1,
  48. new RunBehaviors(
  49. SmoothWandering.Instance(2f, 2f),
  50. Cooldown.Instance(750, PredictiveMultiAttack.Instance(25, 45 * (float)Math.PI / 180, 4, 0)), //this is first attack part one. Where it does predictive attack at you and shoots 4 projectiles. /same at code below.
  51. Cooldown.Instance(950, PredictiveMultiAttack.Instance(25, 60 * (float)Math.PI / 180, 4, 0, 3)), //this is first attack part two.
  52. HpLesser.Instance(75000, new SetKey(-1,2)))), //hp lesser than 75.000 it goes to next phase. (phase 2)
  53. IfEqual.Instance(-1,2,
  54. new RunBehaviors(
  55. SmoothWandering.Instance(2f, 2f), //phase 2
  56. Cooldown.Instance(2000, RingAttack.Instance(12, 0, 0, projectileIndex: 1)),
  57. HpLesser.Instance(65000, new SetKey(-1,3)))),
  58. IfEqual.Instance(-1,3, //phase 3
  59. new RunBehaviors(
  60. Cooldown.Instance(2000, RingAttack.Instance(12, 0, 0, projectileIndex: 0)),
  61. HpLesser.Instance(60000, new SetKey(-1,4)))),
  62. IfEqual.Instance(-1,4, //phase 4
  63. new RunBehaviors(
  64. InfiniteSpiralAttack.Instance(150, 6, 5, projectileIndex: 0),
  65. HpLesser.Instance(52000, new SetKey(-1,5)))),
  66. IfEqual.Instance(-1,5,
  67. new RunBehaviors(
  68. new Transmute(0x739c) //switches into next bella donna, AKA. (rage phase)
  69. ))))
  70. )))
  71. .Init(0x739c, Behaves("Bella Donna two", //ragin bella.
  72. new RunBehaviors(
  73. HpLesser.Instance(28000, new SetKey(-1,1)),
  74. Once.Instance(new SetKey(-1,0)),
  75. IfEqual.Instance(-1,0,
  76. new RunBehaviors(
  77. Once.Instance(SpawnMinionImmediate.Instance(0x739a,2,5,5)))), //spawns the buds.
  78. IfEqual.Instance(-1,1,
  79. new QueuedBehavior(
  80. SetConditionEffect.Instance(ConditionEffectIndex.Invincible), //does undemageable.
  81. new SimpleTaunt("YOU WILL NOT LEAVE HERE ALIVE!"),
  82. CooldownExact.Instance(5000), //5 seconds.
  83. SpawnMinionImmediate.Instance(0x7410,1,1,1), //loot balloon.
  84. Cooldown.Instance(1),
  85. Die.Instance //suicide part.
  86. ))
  87. )))
  88. .Init(0x739a, Behaves("vlntns Bella Buds",
  89. new RunBehaviors(
  90. StrictCircling.Instance(2, 4, 0x739c), //theese only circles 2nd bella donna and spawns by it.
  91. Once.Instance(SetConditionEffect.Instance(ConditionEffectIndex.Invulnerable)),
  92. CooldownExact.Instance(1500), //invu. in 1.5 second.
  93. UnsetConditionEffect.Instance(ConditionEffectIndex.Invulnerable)
  94. ))
  95. );
  96. }
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement