• Visit Rebornbuddy
  • [Custom Deck] "Murloc Custom Deck"

    Discussion in 'HearthBuddy Custom Decks' started by Shadosky, May 26, 2014.

    Thread Status:
    Not open for further replies.
    1. Shadosky

      Shadosky New Member

      Joined:
      May 22, 2014
      Messages:
      22
      Likes Received:
      1
      Trophy Points:
      0
      Good news everyone

      Since nobody have posted their own CustomDeck I post here the Alpha version of the mine hoping that it can help those who are a little lost :)

      Actually the AI : - drop card in a logic order
      - Rush the enemy Hero or Taunter ( trade function in coming )

      At the moment I've coded :

      - The major part of the functions who manage the card's drop. -> DropHelper.cs [PERCENTAGE=85][/PERCENTAGE]

      - A class for each card used in the deck (Default class for other card on the way...)[PERCENTAGE=75][/PERCENTAGE]

      - Main class in progress -> i_am_murloc.cs [PERCENTAGE=60][/PERCENTAGE]

      I'm working on the Trade class -> TradeHelper.cs [PERCENTAGE=50][/PERCENTAGE]

      Here is the list of card u need in your Deck :
      Screenshot_DeckBuild.png

      In English -> Warlock - Deckbuilder - HearthPwn

      [HR][/HR]

      Work In Progress

      - Code the Leroy card to use instead of the rocketeer
      - TradeHelper.cs -> Lethal dammage

      [HR][/HR]

      Download

      The Project his on GitHub : https://github.com/Shadosky/Custom_Deck/tree/new

      But u can find the .zip here :

      View attachment MurlocCustomRush.zip Rush mode only trade taunter & hero


      View attachment MurlocCustomDeckAlpha1.zip Including TradeHelper ( Murloc kill dangerous ennemy minions )

      Just unzip it in your HearthBuddy\CustomDecks\ folder

      [HR][/HR]

      It's an Alpha Version & i post it for helping people who try to dev & are blocked, it can mannage 90% win vs PracticeNormal but I still have a lot to do on it..
      Ask any question you need if u have trouble to understand how it work

      [HR][/HR]

      How to add a card in the deck

      Create a new .cs file the name must be the Id of the card for the exemple : CS2_065.cs
      Remplace in this code all IdCard with the id of the card u wanna add


      Code:
      using System.Collections;
      using System.Linq;
      using Triton.Bot;
      using Triton.Common;
      using Triton.Game;
      using Triton.Game.Mapping;
      
      // Class & struct by Shadosky
      // Special thanks to Hankerspace
      // Don't forget us in our CustomDeck's credit if u use code find here
      
      namespace Shadosky.murloc
      {
      		public class IdCard : ICardDefinition
      		{
      			public string Id { get { return "IdCard"; } }
      			// Cardname: 
      		    		    
      			public PlayPriority GetPlayPriority()
      			{
                      if (DropHelper.DoIHaveTaunter())
      					return PlayPriority.Low;
                      return PlayPriority.High;
      					
      			}
      
      			public HSCard GetCardToUseOn(HSCard thisCard )
      			{
                      if (Murloc.DoTheEnemyHasATaunter())
                      {
                          // Do our attack on enemy taunter
                         return Murloc.RetrieveEnemyTaunter();
                      }
      
                      // Enemy has NO taunter and we can target him => go for the face
                      if (TritonHS.EnemyHero.CanBeTargetedByOpponents)
                      {
                          // Do our attack
                          return TritonHS.EnemyHero;
                      }
      				
      				return null;
      			}
      
      		    public HSCard UseBattlecryOn(HSCard thisCard)
                  {
                      return null;
                  }
      		}
      	
      }
      Put some condition in the GetPlayPriority() function and return a PlayPriority for each case // .Low .Normal .High .Ultra or .DontPlay


      In the I_am_murloc.cs :

      Code:
      public Dictionary<string, ICardDefinition> MurlocMap = new Dictionary<string, ICardDefinition>()
      		{
      		{ "CS2_065", new CS2_065()},
      		{ "CS2_122", new CS2_122()},
      		{ "CS2_124", new CS2_124()},
      		{ "CS2_168", new CS2_168()},
      		{ "CS2_173", new CS2_173()},
      		{ "CS2_213", new CS2_213()},
      		{ "EX1_004", new EX1_004()},
      		{ "EX1_029", new EX1_029()},
      		{ "EX1_062", new EX1_062()},
      		{ "EX1_103", new EX1_103()},
      		{ "EX1_319", new EX1_319()},
      		{ "EX1_506", new EX1_506()},
      		{ "EX1_506a", new EX1_506a()},
      		{ "EX1_507", new EX1_507()},
      		{ "EX1_508", new EX1_508()},
      		{ "EX1_509", new EX1_509()},
      		{ "NEW1_017", new NEW1_017()},
      		{ "NEW1_019", new NEW1_019()},
      		{ "GAME_005", new GAME_005()}
      		};
      add ur card in the dictionary like all this one ( Format : {"IdCard", new IdCard()} )

      Hope this can help you :)
       
      Last edited: May 27, 2014
      Crippleboxer likes this.
    2. b0rn

      b0rn Member

      Joined:
      Jun 26, 2012
      Messages:
      52
      Likes Received:
      1
      Trophy Points:
      8
      i love french card name :D
      looking forward to test it!

      Merci !

      btw, testing it for a couple of hours to see how it goes
       
      Last edited: May 26, 2014
    3. Shadosky

      Shadosky New Member

      Joined:
      May 22, 2014
      Messages:
      22
      Likes Received:
      1
      Trophy Points:
      0
      Basic trading function added to destroy dangerous card & don't suicide X murloc on a taunter when one is enought buffed to kill ^^"
       
    4. Mario27

      Mario27 Banned

      Joined:
      Jan 15, 2010
      Messages:
      6,338
      Likes Received:
      4
      Trophy Points:
      0
      thnx i wil test this custom class
       
    5. Mario27

      Mario27 Banned

      Joined:
      Jan 15, 2010
      Messages:
      6,338
      Likes Received:
      4
      Trophy Points:
      0
      awsome class man its going good i hope u wil make more classes i would even donate to u
       
    6. b0rn

      b0rn Member

      Joined:
      Jun 26, 2012
      Messages:
      52
      Likes Received:
      1
      Trophy Points:
      8
      You have reached the max. number of possible free downloads for this hour, please try again in an hour or purchase one of our premium products.

      i wanted to try the new version before i go to bed, but i cannot.
      are u planning to use SVN or could you link the zip directly to the forum instead for ease of use ?
       
    7. Aevitas

      Aevitas Well-Known Member Staff Member Buddy Core Dev

      Joined:
      Mar 2, 2010
      Messages:
      2,307
      Likes Received:
      36
      Trophy Points:
      48
      Please post the zip as an attachment rather than an external link. Thanks.
       
    8. Mario27

      Mario27 Banned

      Joined:
      Jan 15, 2010
      Messages:
      6,338
      Likes Received:
      4
      Trophy Points:
      0
      dam 10 wins 1 lose 90% atm i love murloc decks lol op:) at turn 4 5 they can be almost already dead because they have big cards like 5 mana hehe then i already did alot of damage to him and im in casual mode
       
    9. Shadosky

      Shadosky New Member

      Joined:
      May 22, 2014
      Messages:
      22
      Likes Received:
      1
      Trophy Points:
      0
      Zip files & GitHub link added
       
    10. NiklasNikke

      NiklasNikke New Member

      Joined:
      Jul 15, 2010
      Messages:
      129
      Likes Received:
      1
      Trophy Points:
      0
      I just wanted to thank you for contributing. People like you are exactly what makes this community great. Keep up the good work.
       
    11. scrampc

      scrampc New Member

      Joined:
      Apr 24, 2014
      Messages:
      93
      Likes Received:
      0
      Trophy Points:
      0
      I will disenchant cards for getting that deck and testing, thanks for your api, I tought murlock/zoo was the best option for having an api
       
    12. IWishIHadEnoughPoison

      IWishIHadEnoughPoison New Member

      Joined:
      May 26, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      Thanks ;)

      You are really brave, releasing a deck facing the horde of ungrateful users ;)

      Good luck bro'.
       
    13. MarcoNecroY

      MarcoNecroY New Member

      Joined:
      May 6, 2014
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      Hi! I think you could improve the deck a bit before putting work work into this API.

      This is my suggestion:
      [​IMG]

      Main thing is adding power overwhelming and soulfire. Those cards add too much damage for very low price. The cards that need to go for these are raid leader and murloc raider which are both quite bad.
      You can use 2 arcane golems or 1 arcane golem and 1 doomguard to replace wolfriders. They simply do more fast damage.


      Some important things are to try to use power overwhelming at the end. I've seen current bot use 2 power overwhelming on two different minions instead of same one, that's something that should be fixed. Soulfire should be used to kill, this card should have low priorty and increase if you have just that card in your hand. Or used to kill taunts to protect your murlocs. Leeroy should always be used at the end.
       
    14. IWishIHadEnoughPoison

      IWishIHadEnoughPoison New Member

      Joined:
      May 26, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      Maybe you could use this deck and rework his Custom deck ;) just an advise (actually i think he will not change his deck for your good pleasure).
       
    15. MarcoNecroY

      MarcoNecroY New Member

      Joined:
      May 6, 2014
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      It's not 'my pleasure', it's simply a deck with a lot more burst damage.
       
    16. Shadosky

      Shadosky New Member

      Joined:
      May 22, 2014
      Messages:
      22
      Likes Received:
      1
      Trophy Points:
      0
      Leroy gonna be add soon ( don't put him at first cause I don't have the card yet on my account ^^ )

      I like to play with Soulfire & Power OverWhelming too but those 2 are a bit tricky to play and i didn't do anything for spell yet but i gonna code them later to do the best with these card ( need to do the Lethal function for use them as finisher )

      I don't have test this deck with Doomguard & Arcane Golem but i gonna add those card too to the list of playable cards soon if they can improve the win rate

      Thx for the feedback ;)
       
    17. SIL3N7

      SIL3N7 Active Member

      Joined:
      Jun 12, 2012
      Messages:
      1,119
      Likes Received:
      11
      Trophy Points:
      38
      I use the murloc deck found here. Ranked/Legend Guides & Decklists as to these are the currently the most common card decks used by pros to get legendary

      Not saying you or I will achieve legendary. i just wanted to see how the bot would behave with these decks. if the right logic was there it would be amazing. But im a noob and having hard time with making an API . unless some sorta Tool comes out or i just spend more time on it. ill take a look at yours in hopes to understand what im doing wrong

      Keep up the good work
      I thank you.
       
      Last edited: May 26, 2014
    18. DanielMahan

      DanielMahan Member

      Joined:
      Dec 1, 2013
      Messages:
      556
      Likes Received:
      2
      Trophy Points:
      18
    19. Zipnut

      Zipnut New Member

      Joined:
      May 9, 2014
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      Botted this deck a few games this morning... Already up to Rank 16.

      The main thing I notice about both this API along with the default bot API is:

      When you have killing blow, the API tries to take out other minions first resulting in not finishing off the enemy. I've seen a few times where the minions had enough damage to kill the enemy but went for minions instead.

      Maybe you can put something in the code thats is like "If minionDmg >= enemyChampion then killChampion else loopX" or something like that
       
    20. kutsal

      kutsal New Member

      Joined:
      May 8, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      Thank you very much for this deck.

      One think I did notice is that sometimes the bot will play a battlecry murloc before putting all the murloc in his hand. So this means that it wil buff the minions on the field and the next murloc you put will not be buffed.

      Battlecry murlock: Coldlight Seer - Hearthstone: Heroes of Warcraft Wiki

      Another thing I just saw was that the bot played 2 minions before putting down Knife juggler. Knife Juggler - Hearthstone: Heroes of Warcraft Wiki

      One more thing I noticed is that it has issues against taunted mobs? Maybe it was because the enemy had low HP and the bot thought he could finish it off without considering the taunt.
       
      Last edited: May 27, 2014
    Thread Status:
    Not open for further replies.

    Share This Page