Results 1 to 12 of 12
  1. #1
    Kierze's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    163

    [AS3] Spoiled Creampuff Behavior (more candyland ones to come)

    Put the XML's inside Addition.xml
    Small Creampuff XML
    Code:
       <Object ext="true" id="Small Creampuff">
          <Group>Candyland</Group>
          <Enemy/>
          <Class>Character</Class>
          <AnimatedTexture>
             <File>chars8x8rEncounters</File>
             <Index>48</Index>
          </AnimatedTexture>
          <HitSound>monster/elves_death</HitSound>
          <DeathSound>monster/cubes_death</DeathSound>
          <Size>100</Size>
          <ShadowSize>80</ShadowSize>
          <MaxHitPoints>700</MaxHitPoints>
          <Defense>20</Defense>
          <XpMult>0.6</XpMult>
          <Projectile id="0">
             <ObjectId>Cream Bullet</ObjectId>
             <Damage>55</Damage>
             <Speed>50</Speed>
             <LifetimeMS>1400</LifetimeMS>
             <Size>80</Size>
          </Projectile>
          <Projectile id="1">
             <ObjectId>Cream Ball</ObjectId>
             <Damage>40</Damage>
             <Speed>50</Speed>
             <LifetimeMS>800</LifetimeMS>
             <Size>60</Size>
             <ConditionEffect duration="1.2">Slowed</ConditionEffect>
          </Projectile>
       </Object>
    Big Creampuff XML
    Code:
       <Object ext="true" id="Big Creampuff">
          <Group>Candyland</Group>
          <Enemy/>
          <Class>Character</Class>
          <AnimatedTexture>
             <File>chars16x16rEncounters</File>
             <Index>63</Index>
          </AnimatedTexture>
          <HitSound>monster/blobs_death</HitSound>
          <DeathSound>monster/blobs_hit</DeathSound>
          <Size>100</Size>
          <ShadowSize>80</ShadowSize>
          <MaxHitPoints>2300</MaxHitPoints>
          <Defense>20</Defense>
          <XpMult>0.6</XpMult>
          <Projectile id="0">
             <ObjectId>Cream Shot</ObjectId>
             <Damage>85</Damage>
             <Speed>60</Speed>
             <LifetimeMS>2000</LifetimeMS>
             <Size>120</Size>
          </Projectile>
          <Projectile id="1">
             <ObjectId>Cream Bullet</ObjectId>
             <Damage>60</Damage>
             <Speed>60</Speed>
             <LifetimeMS>1000</LifetimeMS>
             <Size>100</Size>
          </Projectile>
       </Object>
    Spoiled Creampuff XML
    Code:
       <Object id="Spoiled Creampuff" ext = "true">
          <Group>Candyland</Group>
          <Enemy/>
          <Class>Character</Class>
          <AnimatedTexture>
             <File>chars16x16rEncounters</File>
             <Index>55</Index>
          </AnimatedTexture>
          <HitSound>monster/blobs_death</HitSound>
          <DeathSound>monster/blobs_hit</DeathSound>
          <Size>200</Size>
          <ShadowSize>80</ShadowSize>
          <MaxHitPoints>2200</MaxHitPoints>
          <Defense>30</Defense>
          <God/>
          <Quest/>
          <Projectile id="0">
             <ObjectId>Cream Shot</ObjectId>
             <Damage>160</Damage>
             <Speed>80</Speed>
             <LifetimeMS>2000</LifetimeMS>
             <Size>200</Size>
          </Projectile>
          <Projectile id="1">
             <ObjectId>Cream Bullet</ObjectId>
             <Damage>100</Damage>
             <Speed>60</Speed>
             <LifetimeMS>1000</LifetimeMS>
             <Size>160</Size>
          </Projectile>
       </Object>
    Enemy Projectiles (need to add sprites)
    Code:
       <Object id="Cream Shot" ext="true">
          <Class>Projectile</Class>
          <Texture>
             <File>lofiObj3</File>
             <Index>0x2a7</Index>
          </Texture>
          <AngleCorrection>1</AngleCorrection>
       </Object>
       <Object id="Cream Bullet" ext="true">
          <Class>Projectile</Class>
          <Texture>
             <File>lofiObj3</File>
             <Index>0x2a8</Index>
          </Texture>
          <AngleCorrection>1</AngleCorrection> 
       </Object>   <Object ext="true" id="Cream Ball">
          <Class>Projectile</Class>
          <Texture>
             <File>lofiObj3</File>
             <Index>0x2a9</Index>
          </Texture>
          <Rotation>90</Rotation>
       </Object>
    Make a file called BehaviorDb.Candyland.cs and put it in wServer>Logic>DB then insert this code
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using wServer.realm;
    using wServer.logic.behaviors;
    using wServer.logic.loot;
    using wServer.logic.transitions;
    
    namespace wServer.logic
    {
        partial class BehaviorDb
        {
            _ CreamPuff = () => Behav()
                .Init("Spoiled Creampuff",
                        new State(
                  new Shoot(20, 2, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 1500),
                  new Shoot(20, 4, 15, angleOffset: 40 / 3, projectileIndex: 1, coolDown: 1000),
                 new Spawn("Big Creampuff", maxChildren: 2, initialSpawn: 2, coolDown: 5000)
            	      ),
            	            
            	      //LOOT
                        new TierLoot(6, ItemType.Weapon, 0.04),
                        new TierLoot(7, ItemType.Weapon, 0.02),
                        new TierLoot(8, ItemType.Weapon, 0.01),
                        new TierLoot(7, ItemType.Armor, 0.04),
                        new TierLoot(8, ItemType.Armor, 0.02),
                        new TierLoot(9, ItemType.Armor, 0.01),
                        new TierLoot(3, ItemType.Ring, 0.015),
                        new TierLoot(4, ItemType.Ring, 0.005),
                        new Threshold(0.18,
                            new ItemLoot("Potion of Defense", 0.02),
                            new ItemLoot("Potion of Attack", 0.02),
                            new ItemLoot("Yellow Gumball", 0.3),
                            new ItemLoot("Green Gumball", 0.3),
                            new ItemLoot("Blue Gumball", 0.3),
                            new ItemLoot("Red Gumball", 0.3),
                            new ItemLoot("Blue Gumball", 0.3),
                            new ItemLoot("Fairy Plate", 0.009),
                            new ItemLoot("Pixie-Enchanted Sword", 0.009),
                            new ItemLoot("Seal of the Enchanted Forest", 0.009),
                            new ItemLoot("Candy-Coated Armor", 0.01),
                            new ItemLoot("Ring of Pure Wishes", 0.009),
                            new ItemLoot("Potion of Defense", 0.005)
                            )
                        )
                .Init("Big Creampuff",
            	      new State(
            	      	new Wander(0.5),
                  new Shoot(20, 1, 0, angleOffset: 40 / 3, projectileIndex: 0, coolDown: 1000),
                 new Spawn("Small Creampuff", maxChildren: 2, initialSpawn: 0.5, coolDown: 5000)
                 )
            	     )
            	.Init("Small Creampuff",
            	      new State(
            	      	new Wander(.5),
            	      	new Shoot(20, 3, 30, angleOffset: 40 / 3, projectileIndex: 1, coolDown: 1400)
                 ));
    
    	}
    
    }
    Last edited by Kierze; 04-25-2015 at 08:11 PM. Reason: Fucked something up

  2. The Following User Says Thank You to Kierze For This Useful Post:

    BARm (04-26-2015)

  3. #2
    sacredmike's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    Uranus ;)
    Posts
    685
    Reputation
    15
    Thanks
    3,255
    My Mood
    Devilish
    The most simplest behavior ever created by prod.
    i'm actually just a horny boy

  4. The Following User Says Thank You to sacredmike For This Useful Post:

    [MPGH]Ahl (04-25-2015)

  5. #3
    Kierze's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    163
    Quote Originally Posted by sacredmike View Post
    The most simplest behavior ever created by prod.
    mmm thanks mike for being so supportive

  6. #4
    Omniraptor's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    278
    Reputation
    13
    Thanks
    431
    My Mood
    Inspired
    Quote Originally Posted by Kierze View Post
    mmm thanks mike for being so supportive
    he does that
    any news on dj manual knees?

  7. #5
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Lol, theese behaviors is already in the Alpha source... gg

  8. The Following User Says Thank You to lkdjnfoskjednfblksjdfn For This Useful Post:

    Tjeerdo (04-27-2015)

  9. #6
    Chiroy's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    127.0.0.1:80
    Posts
    1,500
    Reputation
    28
    Thanks
    2,295
    You bought Alpha Realsm source? @Kabamsukzz gave it to me.

  10. #7
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Fox10 View Post
    You bought Alpha Realsm source? @Kabamsukzz gave it to me.
    When did i mention "bought"? I got this from a friend...

  11. #8
    Kierze's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    163
    Quote Originally Posted by thenired View Post
    Lol, theese behaviors is already in the Alpha source... gg
    what source does alpha server use? AS3 or other

  12. #9
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Kierze View Post
    what source does alpha server use? AS3 or other
    -.-* "Lol, theese behaviors is already in the Alpha source... gg"

    Its a source..


    But i got your point. Its using as3 coding system..

  13. #10
    L̋̾̈́͑ͥͨͨ͞Ò̴ͫͪ͛͋̉͛Lͥ̔̓ ͨ͛ͬ ͩ̀͢
    Premium Member
    C453's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    /dev/null
    Posts
    574
    Reputation
    44
    Thanks
    2,535
    My Mood
    Aggressive
    ummm is AS3 just a slang for code/a source these days? pshhh there ain't even no AS3 in this post just sayin
    cant have shit in detroit

  14. The Following User Says Thank You to C453 For This Useful Post:

    [MPGH]Ahl (05-01-2015)

  15. #11
    BARm's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Tel Aviv
    Posts
    406
    Reputation
    32
    Thanks
    1,007
    My Mood
    Inspired
    Quote Originally Posted by C453 View Post
    ummm is AS3 just a slang for code/a source these days? pshhh there ain't even no AS3 in this post just sayin
    Yeah, it's kind of fuuny. People use the word AS3 for private server source that use the different system, the "new" behavior system.
    Even though AS3 is not related to the source but to the client.

  16. #12
    Kierze's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    163
    Quote Originally Posted by BARm View Post
    Yeah, it's kind of fuuny. People use the word AS3 for private server source that use the different system, the "new" behavior system.
    Even though AS3 is not related to the source but to the client.
    i find saying as3 is just a way of saying "the as3 source"

Similar Threads

  1. [Help] can you inject more than one hack?
    By battrea in forum WarRock Discussions
    Replies: 9
    Last Post: 11-16-2009, 04:52 PM
  2. [Tutorial]How to make the infamous aimbot last more than one game[Vista]
    By kimodragon in forum Combat Arms Discussions
    Replies: 60
    Last Post: 09-06-2009, 09:04 PM
  3. [FIX]How to play more than one game with aimbot Guide
    By Fischy3 in forum Combat Arms Europe Hacks
    Replies: 1
    Last Post: 09-06-2009, 01:59 AM
  4. How to get HeadShot.exe aimbot to work more than one game /w chams
    By mshjr in forum Combat Arms Hacks & Cheats
    Replies: 77
    Last Post: 08-18-2009, 08:59 PM
  5. Easier Way to Make Headshot.exe work more then one game
    By Iceyair in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 08-18-2009, 01:25 PM