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

    [AS3] Gigacorn Behavior


    Get the sprites yourself please.

    Gigacorn XML

    Code:
       <Object ext="true" id="Gigacorn">
          <Group>Candyland</Group>
          <Enemy/>
          <Class>Character</Class>
          <AnimatedTexture>
             <File>chars16x16rEncounters</File>
             <Index>58</Index>
          </AnimatedTexture>
          <HitSound>spell/light_heal</HitSound>
          <DeathSound>spell/major_heal</DeathSound>
          <Size>200</Size>
          <MaxHitPoints>16000</MaxHitPoints>
          <Defense>35</Defense>
          <God/>
          <Quest/>
          <Projectile id="0">
             <ObjectId>Unicorn Horn</ObjectId>
             <Damage>90</Damage>
             <Speed>70</Speed>
             <LifetimeMS>2000</LifetimeMS>
             <Size>160</Size>
             <ArmorPiercing/>
             <MultiHit/>
          </Projectile>
          <Projectile id="1">
             <ObjectId>Rainbow Brick</ObjectId>
             <Damage>70</Damage>
             <Speed>65</Speed>
             <LifetimeMS>1000</LifetimeMS>
             <Size>160</Size>
             <ArmorPiercing/>
             <MultiHit/>
          </Projectile>
       </Object>
    Projectiles XML

    Code:
       <Object ext="true" id="Unicorn Horn">
          <Class>Projectile</Class>
          <Texture>
             <File>lofiObj3</File>
             <Index>0x2a6</Index>
          </Texture>
          <AngleCorrection>1</AngleCorrection>
       </Object>
    
       <Object ext="true" id="Rainbow Brick">
          <Class>Projectile</Class>
          <Texture>
             <File>lofiObj3</File>
             <Index>0x2b2</Index>
          </Texture>
          <AngleCorrection>1</AngleCorrection>
       </Object>
    Make a file called BehaviorDb.Gigacorn.cs and put this code in it

    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
        {
            _ Gigacorn = () => Behav()
                .Init("Gigacorn",
                        new State(
            	  new Wander(0.5),
            	  new Charge(2.0, 10f, 4000),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2100),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2200),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2300),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2400),
                  new Shoot(20, 3, 15, angleOffset: 40 / 3, projectileIndex: 1, coolDown: 4000),
                  new Shoot(20, 3, 15, angleOffset: 20 / 3, projectileIndex: 1, coolDown: 2000)
            	      ),
            	            
            	      //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("Wine Cellar Incantation", 0.01),
                            new ItemLoot("Ring of Pure Wishes", 0.009),
                            new ItemLoot("Potion of Defense", 0.005)
                           ));
        }
    }
    You might get errors because of the loot, just remove the items you don't have

  2. #2
    sebastianfra12's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    361
    Reputation
    21
    Thanks
    75
    My Mood
    Inspired
    make for club .-. XD
    Last edited by sebastianfra12; 05-03-2015 at 05:37 AM.

  3. #3

  4. #4
    Kierze's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    163
    Quote Originally Posted by sebastianfra12 View Post
    make for club .-. XD
    but i don't like club's source D:

    - - - Updated - - -

    Quote Originally Posted by cxydsaewq View Post
    Just change the ext = true to any avaiable id and it should be done xD
    The behavior system is different xD it would take a bit of time to convert

  5. #5
    sebastianfra12's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    361
    Reputation
    21
    Thanks
    75
    My Mood
    Inspired
    Quote Originally Posted by Kierze View Post
    but i don't like club's source D:

    - - - Updated - - -



    The behavior system is different xD it would take a bit of time to convert
    kierze plsssssssssssssssssssss ;c

  6. #6
    cxydsaewq's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    954
    Reputation
    25
    Thanks
    1,341
    My Mood
    Amazed
    Quote Originally Posted by Kierze View Post
    but i don't like club's source D:

    - - - Updated - - -



    The behavior system is different xD it would take a bit of time to convert
    oh, ok ^^
    But it's still easy to convert, just takesa littlle bitof time

  7. #7
    sebastianfra12's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    361
    Reputation
    21
    Thanks
    75
    My Mood
    Inspired
    Quote Originally Posted by cxydsaewq View Post
    oh, ok ^^
    But it's still easy to convert, just takesa littlle bitof time
    can you create ?

  8. #8
    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 cxydsaewq View Post
    Just change the ext = true to any avaiable id and it should be done xD
    noooo....

    The behaviors won't work. You need to rewrite the diffrent codes... -.-

  9. #9
    Kierze's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    163
    Quote Originally Posted by thenired View Post
    noooo....

    The behaviors won't work. You need to rewrite the diffrent codes... -.-
    xD yep // 10 chars

  10. #10
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by sebastianfra12 View Post
    can you create ?
    All you really need to focus on converting is

    Code:
     .Init("Gigacorn",
                        new State(
            	  new Wander(0.5),
            	  new Charge(2.0, 10f, 4000),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2100),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2200),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2300),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2400),
                  new Shoot(20, 3, 15, angleOffset: 40 / 3, projectileIndex: 1, coolDown: 4000),
                  new Shoot(20, 3, 15, angleOffset: 20 / 3, projectileIndex: 1, coolDown: 2000)
            	      ),
    The loot bit isn't much of a difficulty.

    All you are really doing in this is removing the cooldown and putting it to the front and the rest is pretty self-explanatory
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  11. #11
    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 Color's Sheep View Post
    All you really need to focus on converting is

    Code:
     .Init("Gigacorn",
                        new State(
            	  new Wander(0.5),
            	  new Charge(2.0, 10f, 4000),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2100),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2200),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2300),
                  new Shoot(20, 1, 40, angleOffset: 60 / 3, projectileIndex: 0, coolDown: 2400),
                  new Shoot(20, 3, 15, angleOffset: 40 / 3, projectileIndex: 1, coolDown: 4000),
                  new Shoot(20, 3, 15, angleOffset: 20 / 3, projectileIndex: 1, coolDown: 2000)
            	      ),
    The loot bit isn't much of a difficulty.

    All you are really doing in this is removing the cooldown and putting it to the front and the rest is pretty self-explanatory
    Yeaaa and note to change "AngleOffset" to: "angleattack" :P

  12. #12

  13. #13
    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 cxydsaewq View Post
    I could but I don't wanna
    Dont play smart lol, Kieron, me, ahlwong and alot more can do this but i wonder if ou rlly can since you didnt even know how to convert the objid line part...

  14. #14
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by thenired View Post
    Dont play smart lol, Kieron, me, ahlwong and alot more can do this but i wonder if ou rlly can since you didnt even know how to convert the objid line part...
    Why would I need to convert it if I already have the converted file
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  15. #15
    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 Color's Sheep View Post
    Why would I need to convert it if I already have the converted file
    Good question. :P My point is just this isnt even hard at all so stealing credits for something like this would be meanless... /me

Similar Threads

  1. [AS3] Spoiled Creampuff Behavior (more candyland ones to come)
    By Kierze in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 11
    Last Post: 05-01-2015, 01:57 PM
  2. [Unity Scripts]Simple AI Behavioral script
    By OBrozz in forum Unity / UDK / GameStudio / CryEngine Development
    Replies: 6
    Last Post: 07-17-2011, 01:33 PM
  3. Mouse_Event strange behavior.
    By VirtualDUDE in forum C++/C Programming
    Replies: 20
    Last Post: 05-13-2011, 06:59 AM
  4. WDF?! SHAMELESS BEHAVIOR?!
    By Unicow in forum Flaming & Rage
    Replies: 9
    Last Post: 02-01-2011, 05:15 AM
  5. abnormal behavior
    By naughtynurse in forum Gunz General
    Replies: 5
    Last Post: 03-29-2006, 08:48 PM