[FSOD] Ir'Kazuhl Behavior

Posts 1–15 of 17 · Page 1 of 2
[FSOD] Ir'Kazuhl Behavior
This Is The Behavior For Ir'Kazuhl Requested By Kenny {He Had The Idea And Told Me What To Make It And I Tried My Best}

Code:
#region

using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;

#endregion

namespace wServer.logic
{
    partial class BehaviorDb
    {
        private _ Testing = () => Behav()
            .Init("Testing",
                new State(
                     new State("Part One",
                    new Shoot(20, projectileIndex: 0, count: 3, shootAngle: 15, predictive: 0, coolDown: 1050),                   
                     new Taunt("How dare you enter my domain?"),
                    new Taunt("You shall feel eternal pain!"),
                        new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                        new HpLessTransition(0.8, "Part Two")
                        ),
                      new State("Part Two",
                        new Taunt("Argh- I will feast on your Souls!"),
                           new Shoot(20, projectileIndex: 1, count: 3, shootAngle: 15, predictive: 0, coolDown: 1550),                      
                        new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                          new TimedTransition(3100, "Alter"),
                          new HpLessTransition(0.48, "Part Three")
                        ),
                        new State("Alter",
                        new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                        new Shoot(20, projectileIndex: 2, count: 3, shootAngle: 15, predictive: 0, coolDown: 1000),
                            new TimedTransition(2000, "Part Two"),
                            new HpLessTransition(0.48, "Part Three")
                            ),
                    new State("Part Three",
                       new Taunt("Feel the wrath of Ir'Kazuhl!"),
                        new Shoot(20, projectileIndex: 3, count: 12, shootAngle: 30, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),                            
                         new TimedTransition(2000, "Alter Two"),
                        new HpLessTransition(0.15, "Part Four")
                           ),
                    new State("Alter Two",
                        new Shoot(20, projectileIndex: 4, count: 4, shootAngle: 12, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                         new TimedTransition(2000, "Part Three"),
                        new HpLessTransition(0.15, "Part Four")
                           ),
                    new State("Part Four",
                         new Taunt("I will not be beaten by mere mortals! DIE"),
                         new Shoot(20, projectileIndex: 3, count: 10, shootAngle: 29, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                        new TimedTransition(2000, "Alter Three")
                        ),
                     new State("Alter Three",
                        new Shoot(20, projectileIndex: 4, count: 5, shootAngle: 16, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                         new TimedTransition(2000, "Part Four")
                       
                           

                        )
                     ),
// He Didn't Say Anything About Loot So I Just Took Oryx's Loot Drops And Pasted Them
                new MostDamagers(3,
                    new ItemLoot("Potion of Vitality", 1)
                ),
                new Threshold(0.05,
                    new ItemLoot("Potion of Attack", 0.3),
                    new ItemLoot("Potion of Defense", 0.3),
                    new ItemLoot("Potion of Wisdom", 0.3)
                ),
                new Threshold(0.1,
                    new TierLoot(10, ItemType.Weapon, 0.07),
                    new TierLoot(11, ItemType.Weapon, 0.06),
                    new TierLoot(12, ItemType.Weapon, 0.05),
                    new TierLoot(5, ItemType.Ability, 0.07),
                    new TierLoot(6, ItemType.Ability, 0.05),
                    new TierLoot(11, ItemType.Armor, 0.07),
                    new TierLoot(12, ItemType.Armor, 0.06),
                    new TierLoot(13, ItemType.Armor, 0.05),
                    new TierLoot(5, ItemType.Ring, 0.06)
                )
            )


            ;
    }
}
soz forgot about xml
Code:
 <Object id="Testing" ext="true">
      <DisplayId></DisplayId>
      <Group>AttackType</Group>
      <Class>Character</Class>
      <MaxHitPoints>125000</MaxHitPoints>
      <Defense>85</Defense>
      <Enemy/>
      <StasisImmune/>
      <Texture>
                <File>lofiChar16x16</File>
         <Index>0x41</Index>
      </Texture>
      <Projectile id="0">
         <ObjectId>Fire Bullet</ObjectId>
         <Speed>45</Speed>
         <Damage>120</Damage>
         <Size>80</Size>
         <LifetimeMS>3000</LifetimeMS>
        <ConditionEffect duration="5">Slowed</ConditionEffect>
         <MultiHit/>
      </Projectile>
      <Projectile id="1">
         <ObjectId>Pink Bolt</ObjectId>
         <Speed>60</Speed>
         <Damage>90</Damage>
         <Size>100</Size>
         <LifetimeMS>2000</LifetimeMS>
         <MultiHit/>
      </Projectile>
    <Projectile id="2">
         <ObjectId>Purple Magic</ObjectId>
         <Speed>75</Speed>
         <Damage>90</Damage>
         <Size>90</Size>
         <LifetimeMS>3000</LifetimeMS>
         <MultiHit/>
      </Projectile>
    <Projectile id="3">
         <ObjectId>Fire Bolt</ObjectId>
         <Speed>100</Speed>
         <Damage>25</Damage>
         <Size>80</Size>
         <LifetimeMS>3000</LifetimeMS>
       <ConditionEffect duration="6">Armor Broken</ConditionEffect>
         <MultiHit/>
      </Projectile>
      <Projectile id="4">
         <ObjectId>Blue Magic</ObjectId>
         <Speed>80</Speed>
         <Damage>175</Damage>
         <Size>100</Size>
         <LifetimeMS>2000</LifetimeMS>
        <ConditionEffect duration="3">Weak</ConditionEffect>
         <MultiHit/>
      </Projectile>
    <Projectile id="5">
         <ObjectId>Oryx Sword Attack</ObjectId>
         <Speed>60</Speed>
         <Damage>250</Damage>
         <Size>110</Size>       
      <ConditionEffect duration="5">Stunned</ConditionEffect>
         <LifetimeMS>3000</LifetimeMS>
         <MultiHit/>
      </Projectile>
     <Projectile id="6">
         <ObjectId>Fire Bullet</ObjectId>
         <Speed>60</Speed>
         <Damage>50</Damage>
         <Size>110</Size>
      <ConditionEffect duration="1">Paralyzed</ConditionEffect>
         <LifetimeMS>3000</LifetimeMS>
         <MultiHit/>
      </Projectile>
      <Size>105</Size>
      <XpMult>0.8</XpMult>
   </Object>
you need xmls aswell if your trying to give these to others...
Quote Originally Posted by KillerViking View Post
you need xmls aswell if your trying to give these to others...
ikr .... .


- - - Updated - - -

Quote Originally Posted by lawltron View Post
This Is The Behavior For Ir'Kazuhl Requested By Kenny {He Had The Idea And Told Me What To Make It And I Tried My Best}
Give us xmls otherwise this is just spam
When i get from school I (or we) will be working on it
Quote Originally Posted by KennyHacks View Post
When i get from school I (or we) will be working on it
so you dont have an xml?
Not yet im going to school now
Quote Originally Posted by KennyHacks View Post
Not yet im going to school now
you dont make the behavior first ... .-.
Quote Originally Posted by bog624 View Post


you dont make the behavior first ... .-.
I did only request it i never make a behavior. And i didnt know that
Quote Originally Posted by KennyHacks View Post
I did only request it i never make a behavior. And i didnt know that
yeah you use the xml to make the behavior ... .-.
Quote Originally Posted by bog624 View Post


yeah you use the xml to make the behavior ... .-.
i know that i need XML to make behavior i was saying that i didnt know that you must do xml first
Quote Originally Posted by bog624 View Post
[FONT="Courier New"][COLOR="RoyalBlue"][I][B]


- - - Updated - - -



Give us xmls otherwise this is just spam
Sorry to say bawz, but its not ;-;

- - - Updated - - -

Quote Originally Posted by MikeRaarupBirk View Post
WELL FIRST OF ALL! Put your code inside

Code:

So it at least doesnt look like cancer.
Please change your avatar if you want to talk about whats cancer. Ofc i'd like to bring the quality of your contribution to this forum, on this quote aswell, but thats a way too long story for me to actually waste time at this moment. Undskyld, men du er ikke bedre selv dsv....

- - - Updated - - -

Quote Originally Posted by lawltron View Post
This Is The Behavior For Ir'Kazuhl Requested By Kenny {He Had The Idea And Told Me What To Make It And I Tried My Best}

Code:
#region

using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;

#endregion

namespace wServer.logic
{
    partial class BehaviorDb
    {
        private _ Testing = () => Behav()
            .Init("Testing",
                new State(
                     new State("Part One",
                    new Shoot(20, projectileIndex: 0, count: 3, shootAngle: 15, predictive: 0, coolDown: 1050),                   
                     new Taunt("How dare you enter my domain?"),
                    new Taunt("You shall feel eternal pain!"),
                        new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                        new HpLessTransition(0.8, "Part Two")
                        ),
                      new State("Part Two",
                        new Taunt("Argh- I will feast on your Souls!"),
                           new Shoot(20, projectileIndex: 1, count: 3, shootAngle: 15, predictive: 0, coolDown: 1550),                      
                        new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                          new TimedTransition(3100, "Alter"),
                          new HpLessTransition(0.48, "Part Three")
                        ),
                        new State("Alter",
                        new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                        new Shoot(20, projectileIndex: 2, count: 3, shootAngle: 15, predictive: 0, coolDown: 1000),
                            new TimedTransition(2000, "Part Two"),
                            new HpLessTransition(0.48, "Part Three")
                            ),
                    new State("Part Three",
                       new Taunt("Feel the wrath of Ir'Kazuhl!"),
                        new Shoot(20, projectileIndex: 3, count: 12, shootAngle: 30, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),                            
                         new TimedTransition(2000, "Alter Two"),
                        new HpLessTransition(0.15, "Part Four")
                           ),
                    new State("Alter Two",
                        new Shoot(20, projectileIndex: 4, count: 4, shootAngle: 12, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                         new TimedTransition(2000, "Part Three"),
                        new HpLessTransition(0.15, "Part Four")
                           ),
                    new State("Part Four",
                         new Taunt("I will not be beaten by mere mortals! DIE"),
                         new Shoot(20, projectileIndex: 3, count: 10, shootAngle: 29, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                        new TimedTransition(2000, "Alter Three")
                        ),
                     new State("Alter Three",
                        new Shoot(20, projectileIndex: 4, count: 5, shootAngle: 16, predictive: 0, coolDown: 1000),
                            new StayCloseToSpawn(0.8, 5),
                        new Follow(1, range: 7),
                        new Wander(0.4),
                         new TimedTransition(2000, "Part Four")
                       
                           

                        )
                     ),
// He Didn't Say Anything About Loot So I Just Took Oryx's Loot Drops And Pasted Them
                new MostDamagers(3,
                    new ItemLoot("Potion of Vitality", 1)
                ),
                new Threshold(0.05,
                    new ItemLoot("Potion of Attack", 0.3),
                    new ItemLoot("Potion of Defense", 0.3),
                    new ItemLoot("Potion of Wisdom", 0.3)
                ),
                new Threshold(0.1,
                    new TierLoot(10, ItemType.Weapon, 0.07),
                    new TierLoot(11, ItemType.Weapon, 0.06),
                    new TierLoot(12, ItemType.Weapon, 0.05),
                    new TierLoot(5, ItemType.Ability, 0.07),
                    new TierLoot(6, ItemType.Ability, 0.05),
                    new TierLoot(11, ItemType.Armor, 0.07),
                    new TierLoot(12, ItemType.Armor, 0.06),
                    new TierLoot(13, ItemType.Armor, 0.05),
                    new TierLoot(5, ItemType.Ring, 0.06)
                )
            )


            ;
    }
}
soz forgot about xml
Code:
 <Object id="Testing" ext="true">
      <DisplayId></DisplayId>
      <Group>AttackType</Group>
      <Class>Character</Class>
      <MaxHitPoints>125000</MaxHitPoints>
      <Defense>85</Defense>
      <Enemy/>
      <StasisImmune/>
      <Texture>
                <File>lofiChar16x16</File>
         <Index>0x41</Index>
      </Texture>
      <Projectile id="0">
         <ObjectId>Fire Bullet</ObjectId>
         <Speed>45</Speed>
         <Damage>120</Damage>
         <Size>80</Size>
         <LifetimeMS>3000</LifetimeMS>
        <ConditionEffect duration="5">Slowed</ConditionEffect>
         <MultiHit/>
      </Projectile>
      <Projectile id="1">
         <ObjectId>Pink Bolt</ObjectId>
         <Speed>60</Speed>
         <Damage>90</Damage>
         <Size>100</Size>
         <LifetimeMS>2000</LifetimeMS>
         <MultiHit/>
      </Projectile>
    <Projectile id="2">
         <ObjectId>Purple Magic</ObjectId>
         <Speed>75</Speed>
         <Damage>90</Damage>
         <Size>90</Size>
         <LifetimeMS>3000</LifetimeMS>
         <MultiHit/>
      </Projectile>
    <Projectile id="3">
         <ObjectId>Fire Bolt</ObjectId>
         <Speed>100</Speed>
         <Damage>25</Damage>
         <Size>80</Size>
         <LifetimeMS>3000</LifetimeMS>
       <ConditionEffect duration="6">Armor Broken</ConditionEffect>
         <MultiHit/>
      </Projectile>
      <Projectile id="4">
         <ObjectId>Blue Magic</ObjectId>
         <Speed>80</Speed>
         <Damage>175</Damage>
         <Size>100</Size>
         <LifetimeMS>2000</LifetimeMS>
        <ConditionEffect duration="3">Weak</ConditionEffect>
         <MultiHit/>
      </Projectile>
    <Projectile id="5">
         <ObjectId>Oryx Sword Attack</ObjectId>
         <Speed>60</Speed>
         <Damage>250</Damage>
         <Size>110</Size>       
      <ConditionEffect duration="5">Stunned</ConditionEffect>
         <LifetimeMS>3000</LifetimeMS>
         <MultiHit/>
      </Projectile>
     <Projectile id="6">
         <ObjectId>Fire Bullet</ObjectId>
         <Speed>60</Speed>
         <Damage>50</Damage>
         <Size>110</Size>
      <ConditionEffect duration="1">Paralyzed</ConditionEffect>
         <LifetimeMS>3000</LifetimeMS>
         <MultiHit/>
      </Projectile>
      <Size>105</Size>
      <XpMult>0.8</XpMult>
   </Object>
I want to point 1 thing out. In the start of the behavior i suggest you add a Idle state, where the boss wait for players to approach if its a bigger dungeon. It kinda sucks when you get to the boss and only experience 25% of the entire behavior. In this case that isnt much, but still. If you don't know how to do that, here is some sweet script:

Code:
new State("Await_Activity",
new PlayerWithinTransition(5, "Part One")
),
WELL FIRST OF ALL! Put your code inside

Code:

So it at least doesnt look like cancer. Thanks.

Also instead of putting new follow, new wander, and new stayclose to spawn in all phases just put them in between the 2 states in the start.

Code:
new State(
new State("Part One",
Code:
#region

using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;

#endregion

namespace wServer.logic
{
    partial class BehaviorDb
    {
        private _ Testing = () => Behav() //Code cleaned up by Mike.
        .Init("Testing",
        new State(
            new StayCloseToSpawn(0.8, 5),
            new Follow(1, range: 7),
            new Wander(0.4),
            new State("Part One",
                new Shoot(20, projectileIndex: 0, count: 3, shootAngle: 15, predictive: 0, coolDown: 1050),
                new Taunt("How dare you enter my domain?"),
                new Taunt("You shall feel eternal pain!"),
                new HpLessTransition(0.8, "Part Two")
                ),
            new State("Part Two",
                new Taunt("Argh- I will feast on your Souls!"),
                new Shoot(20, projectileIndex: 1, count: 3, shootAngle: 15, predictive: 0, coolDown: 1550),
                new TimedTransition(3100, "Alter"),
                new HpLessTransition(0.48, "Part Three")
                ),
            new State("Alter",
                new Shoot(20, projectileIndex: 2, count: 3, shootAngle: 15, predictive: 0, coolDown: 1000),
                new TimedTransition(2000, "Part Two"),
                new HpLessTransition(0.48, "Part Three")
                ),
            new State("Part Three",
                new Taunt("Feel the wrath of Ir'Kazuhl!"),
                new Shoot(20, projectileIndex: 3, count: 12, shootAngle: 30, predictive: 0, coolDown: 1000),
                new TimedTransition(2000, "Alter Two"),
                new HpLessTransition(0.15, "Part Four")
                ),
            new State("Alter Two",
                new Shoot(20, projectileIndex: 4, count: 4, shootAngle: 12, predictive: 0, coolDown: 1000),
                new TimedTransition(2000, "Part Three"),
                new HpLessTransition(0.15, "Part Four")
                ),
            new State("Part Four",
                new Taunt("I will not be beaten by mere mortals! DIE"),
                new Shoot(20, projectileIndex: 3, count: 10, shootAngle: 29, predictive: 0, coolDown: 1000),
                new TimedTransition(2000, "Alter Three")
                ),
            new State("Alter Three",
                new Shoot(20, projectileIndex: 4, count: 5, shootAngle: 16, predictive: 0, coolDown: 1000),
                new TimedTransition(2000, "Part Four")
                )
            ),
        new MostDamagers(3,
            new ItemLoot("Potion of Vitality", 1)
            ),
        new Threshold(0.05,
            new ItemLoot("Potion of Attack", 0.3),
            new ItemLoot("Potion of Defense", 0.3),
            new ItemLoot("Potion of Wisdom", 0.3)
            ),
        new Threshold(0.1,
                new TierLoot(10, ItemType.Weapon, 0.07),
                new TierLoot(11, ItemType.Weapon, 0.06),
                new TierLoot(12, ItemType.Weapon, 0.05),
                new TierLoot(5, ItemType.Ability, 0.07),
                new TierLoot(6, ItemType.Ability, 0.05),
                new TierLoot(11, ItemType.Armor, 0.07),
                new TierLoot(12, ItemType.Armor, 0.06),
                new TierLoot(13, ItemType.Armor, 0.05),
                new TierLoot(5, ItemType.Ring, 0.06)
                )
            )
        ;
    }
}
Cleaned it up...
yeah, consider using code tags as it makes way easier to read
Soz forgot xml
Quote Originally Posted by lawltron View Post
Soz forgot xml
You're not obliged to give others the XML. If they know how to use behaviors, they sure as hell can make their own XML.
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Talk with us