C# Latest Topics http://codedeception.net/ipb/index.php?/forum/60-c/C# Latest TopicsenHelp a question on honorbuddy scripthttp://codedeception.net/ipb/index.php?/topic/13599-help-a-question-on-honorbuddy-script/ <If Condition="Me.FreeBagSlots <= 32" > <CustomBehavior File="WaitTimer" WaitTime="1000" /> <CustomBehavior File="ForceSetVendor" DoRepair="True" DoSell="True" /> <CustomBehavior File="WaitTimer" WaitTime="2000" /> </If>

I do not understand what this condition means (& lt; = 32)
Hb What are the operators to judge conditions

If I want the hero backpack <10 grid, slag back to the city mail to other heroes, how should write the code.
Thank you for your help!

]]>
13599Fri, 28 Oct 2016 18:22:38 +0000
Learning WPF (C#)http://codedeception.net/ipb/index.php?/topic/13096-learning-wpf-c/ Does anyone have a very simple WPF GUI working on Honorbuddy opensource? If so please share.

Thank you.

]]>
13096Thu, 02 Jun 2016 12:13:57 +0000
Login and Authentication ( C# / PHP )http://codedeception.net/ipb/index.php?/topic/8642-login-and-authentication-c-php/ private const string _a = "0cHM6Ly9hcGkuZGVlcGJvdC50di9jbGllbnQvYm90bG9naW4ucGhwaHR"; ( Encoded URL, i am able to decode it ) private static NameValueCollection GetBaseParameters() { NameValueCollection values = new NameValueCollection(); values["bot_version"] = Application.ProductVersion; values["comp_name"] = Environment.MachineName; values["win_user_name"] = Environment.UserName; values["win_os"] = Environment.OSVersion.ToString(); return values; } private static string GetResponseText(byte[] bytes) { string str; using (MemoryStream stream = new MemoryStream(bytes)) { using (StreamReader reader = new StreamReader(stream)) { str = reader.ReadToEnd(); } } return str; }

Okay, so i have crack that application, but i have only one problem, what i can not resolve ...

 

What is a good structure for the login.php is it a post or ehat is that and how can i resolve it ?

]]>
8642Wed, 25 Feb 2015 00:21:55 +0000
Troubles with Post-request (Xnet)http://codedeception.net/ipb/index.php?/topic/13136-troubles-with-post-request-xnet/

Im tried to auth on wHPIvxw.png but server responed me error 400 (Wrong Post-request). Im spend a lot of time to anylize that could be my problem but that tries didn't succsesive. Code is below:

Spoiler
 Uri url = new Uri("https://id.g2a.com/signin?client_id=g2a&redirect_uri=https://www.g2a.com/oauth2/token&response_type=code&auth_call=1&auth_json=1"); //post-data server (Sniffed by mozilla)
        using (var req = new HttpRequest())
        {
            req.AllowAutoRedirect = True;
            req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1";
            var param = new RequestParams
            {
                new KeyValuePair<string, string>("username", "TestLogin"), // login 
                new KeyValuePair<string, string>("password", "TestPassword"), // password
                new KeyValuePair<string, string>("security", "123123123"), // Captcha
                new KeyValuePair<string, string>("salt", "doLenFWI2v2oKEUnSNCf76oBj0kq4TgZDB8F%2F7bX7R4%3D"),
                // its changeable. Every requsts needs to have new defenition
                new KeyValuePair<string, string>("protection", "doLenFWI2v2oKEUnSNCf76oBj0kq4TgZDB8F/7bX7R4=")
                // its changeable. Every requsts needs to have new defenition
            };
            // place for keeping response
            Generator.KeeperAnsw = req.Post(url, param).ToString();
        }

 

 

]]>
13136Sat, 11 Jun 2016 19:39:07 +0000
need help in c#http://codedeception.net/ipb/index.php?/topic/7505-need-help-in-c/I have c# code ( a lot of calculation involve ) , I need to find somebody to tweak it or optimized to make it run faster .

any site or experience programmers ?

]]>
7505Tue, 16 Dec 2014 07:13:34 +0000
CSGO - JACKPOThttp://codedeception.net/ipb/index.php?/topic/10262-csgo-jackpot/Hello, is there anyone that is so good that they can remake this site? 

The design and stuff is not important, but the important part is the code behind. 

 

Anyone have any ideas what they are using, how they do this, and what i should look for?

 

Thanks alot, peace out!

 

-spot 

]]>
10262Wed, 08 Jul 2015 21:53:39 +0000
Can you help me , the hearthbuddy APIhttp://codedeception.net/ipb/index.php?/topic/8637-can-you-help-me-the-hearthbuddy-api/I'd like to know my current gold of hearthstore . 

Can I use c# API to get it ?

The follow code can get the number of quests, but I can't find the API to know the gold, Can you help me ? Thanks very much.

var quests = TritonHs.CurrentQuests;
]]>
8637Tue, 24 Feb 2015 13:28:55 +0000
Loading HB references into a CR?http://codedeception.net/ipb/index.php?/topic/8342-loading-hb-references-into-a-cr/Hello!

I've been developing php websites for almost 10 years now. However I'm new to C#. I was thinking of making a combatroutine for elemental shaman (honorbuddy), but I can't seem to load the references to my class. I'm using Visual Studio and Add>Reference>Honorbuddy.exe/Tripper.Tools.dll but It wont work. Atleast I wont get any "suggestions" (autocomplete) when writing code.

 

Any ideas?
Thanks!

]]>
8342Sat, 31 Jan 2015 04:21:47 +0000
Need a little helphttp://codedeception.net/ipb/index.php?/topic/1721-need-a-little-help/I am just trying to update a default ahbuddy.xml with the UMJ. Shouldn't be too hard, but i am using c# since two days and need help with the xml class.

The things i got so far:

Please login or register to see this link.

I just don't know how i am able to find the right <market> and replace the <MaxBuyout> Value with this. Shouldn't be too difficult if you know what you are doing, because you have the id tag in both xml files. If the replace works you just have to add a little undercut and you are good to go, i think.

Any ideas?

]]>
1721Tue, 11 Jun 2013 20:12:39 +0000
How to create honorbuddy quest profile(need help)http://codedeception.net/ipb/index.php?/topic/7461-how-to-create-honorbuddy-quest-profileneed-help/Just putting out there I tried to search how to do it but they were all outdated because of the condition and new honorbuddy doesn't work on the conditions. So please help me 

]]>
7461Sun, 14 Dec 2014 09:35:48 +0000
memoryhttp://codedeception.net/ipb/index.php?/topic/7282-memory/I started learning c# .

 

what are different type of memory allocations in c# ?

 

what different between them ?

]]>
7282Sat, 06 Dec 2014 04:42:14 +0000
Learn C#http://codedeception.net/ipb/index.php?/topic/6924-learn-c/So, to explain my situation, i know little to nothing about programming...ive watched a few c# tutorials that got me as far as scripting a calculator in the command prompt that can only multiply ( brackeys tutorials on youtube ) I am broke and preparing for game development class in college and I want to master C#. Any one willing to help me with some free sources? Lots of tips perhaps?

Please, and thank you!

]]>
6924Wed, 19 Nov 2014 05:51:17 +0000
DNBotEU BETA3 [SOURCE CODE]http://codedeception.net/ipb/index.php?/topic/5772-dnboteu-beta3-source-code/As the title says. It's written in C#, the developer hasn't been online for a whole month and the game was updated so it won't work for now. Hopefully someone can update it and share it.
 

.exe(s) removed just so that you won't panic or blame me, compile it yourself

 

Please login or register to see this link.


 

EDIT: This is basically just the gui, everything is in nest.dll so yeah, not really useful.

]]>
5772Thu, 04 Sep 2014 20:05:09 +0000
Help with Arduinohttp://codedeception.net/ipb/index.php?/topic/3280-help-with-arduino/Hi people, 

I have some questions for a small program i'm started to make in Arduino.

The program's overall picture is that when using the serial monitoring, u will be able to write "New User" or "List". If u type "New User" u will be able to write different user information down such as name and age, after where you can store the user. if u on the other hand type "List" u will be able to see the entire list of users there are stored. 

I'm not the best to Arduino, but I know the basic as string, arrays, loops and structs. 

Can anyone help me ?

 

]]>
3280Wed, 20 Nov 2013 11:51:00 +0000
Lets play Ponghttp://codedeception.net/ipb/index.php?/topic/3913-lets-play-pong/Hey,
I´m just went into game development, and I also want to earn my money later with it. So I decided starting with some little projects, so I can show some projects when applying for a job/education

later.

 

This is my first project, I just coded it while following a tutorial to learn working with the development environment.

 

 

There is no AI yet, so you have to play vs a friend or vs yourself. Left player controlled by W + S  | Right player controlled by arrowUP and arrowDown.

 

So here lets take a look at it :)

 

Please login or register to see this link.

 

Please login or register to see this link.

 

greetings

]]>
3913Mon, 03 Mar 2014 21:38:01 +0000
[AcidRains] MultiVMControllerhttp://codedeception.net/ipb/index.php?/topic/2209-acidrains-multivmcontroller/Hey CM,

I started a new project because I started botting IP points for League of Legends. So my new project is as its written in the topic name, "MultiVMController". For League of Legends you need alot of VM´s, so at the moment I have more then 12 VM´s running and its annoying to switch between all this VM´s to start the bots manually per hand. So thats why I coded something that let your start all VM´s with one command.

For this I use a C# Network API and I coded a TCP Server Client program arround it, its like a simple chat program, but its effectiv.

 

What can you do with this programm ?

You can start and stop and shutdown all your bots at the same time.

There are defined commands like "!start" to start every bot on 1 click.

 

How does it work ?

Its pretty simple. You just download the Client + Server. After that you copy the client to your VM´s and write it in the autostart. Then you just edit the settings.

When you want start your botting session you just start the server.exe on your main pc. Then you have to start your VM´s. You will see if everything is ready in the server.exe connection log.

Then your just type in !start and everythign starts. When you want to go offline you just have to type in !stop and !shutdown. The VM´s will close the bot + lol client and the VM´s will shut down.

 

Upcoming features: - Including Skype API, just send the commands to an extra skype account and its like you type it in the server.exe.
                                 - More commands like "!break" "!switchaccount" and so on....

Supported LoL Bots: - At first I will support Fulcrum Bot only because its works perfectly for me and I got more then 220k IP out of it in less then 8 days.
                                    - I´m also interested in Strategic Bot so maybe I will also support it.

 

When will it be realesed ?  I´m nearly finished, I will test it the next 2 days and then I will realese it.

Some Screenshots

3ROgb.png

 

3ROg5.png

 

AcidRain

]]>
2209Fri, 02 Aug 2013 10:13:42 +0000
Help with powerClick Loginhttp://codedeception.net/ipb/index.php?/topic/3579-help-with-powerclick-login/So im trying to do a login on Powerclick by a C# webbrowser and when i pressed the login button (manually) it just refresh the page instead of login

using System;using System.Drawing;using System.Windows.Forms;using System.Net;using System.IO;namespace ClickTest{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();        }        private void button1_Click(object sender, EventArgs e)        {            Browser.ScriptErrorsSuppressed = true;            Browser.Navigate(textBox1.Text, "_self", null, "User-Agent: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0");        }    private void Browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)        {            var elements = Browser.Document.GetElementsByTagName("input");            elements[1].SetAttribute("Value","User");            elements[2].SetAttribute("Value", "Password");            var captchaimage = Browser.Document.GetElementsByTagName("img");            listBox1.Items.Add(captchaimage[0].GetAttribute("src"));            WebClient wc = new WebClient();            byte[] bytes = wc.DownloadData(captchaimage[0].GetAttribute("src"));            Bitmap image = new Bitmap(new MemoryStream(bytes));                             }    }}

Can any1 see any problem with the code or can help me with the code

]]>
3579Thu, 02 Jan 2014 21:13:58 +0000
Web parser tutorialhttp://codedeception.net/ipb/index.php?/topic/3457-web-parser-tutorial/using System;using System.Diagnostics;using System.Drawing;using System.Net;using System.Threading;using System.Windows.Forms;namespace GTA_SA_Release_Notify{ internal class Program { private static void Main() { var wc = new WebClient(); Reset: string page = wc.DownloadString(new Uri("https://play.google.com/store/apps/developer?id=Rockstar+Games,+Inc.")); //Download page Console.WriteLine("Checked on " + DateTime.Now.ToString("HH:mm:ss tt")); if (page.Contains("San Andreas")) //Parse it { Console.WriteLine("Released on " + DateTime.Now.ToString("HH:mm:ss tt")); ShowBalloon("San Andreas is here", "Click to open"); return; //Exit app } Thread.Sleep(600000); //Wait before loading it again goto Reset; //Do all again } private static void ShowBalloon(string title, string body) //Notification { var notifyIcon = new NotifyIcon {Visible = true, Icon = SystemIcons.Application}; notifyIcon.Click += notifyIcon_Click; if (title != null) { notifyIcon.BalloonTipTitle = title; } if (body != null) { notifyIcon.BalloonTipText = body; } notifyIcon.ShowBalloonTip(30000); } private static void notifyIcon_Click(object sender, EventArgs e) //Open webpage { Process.Start("https://play.google.com/store/apps/developer?id=Rockstar+Games,+Inc."); } }}

Press like to get more fine tutorials from me

]]>
3457Tue, 17 Dec 2013 17:35:47 +0000
Creating profiles and plugins for ExileBuddyhttp://codedeception.net/ipb/index.php?/topic/3263-creating-profiles-and-plugins-for-exilebuddy/Hi, I know quite a bit of C++ and have just been using Codeblocks for my development. I was looking at the development forum on the ExileBuddy website and they say something about referencing the exe in VS to get the "documentation". Now I wont be able to download Visual Studio for maybe a couple of days, so is there any way you can reference the exe through Codeblocks or another smaller sized IDE? 

Or am I not understanding something and there is another way to create profiles and plugins.for ExileBuddy, oh and I also forgot to mention Combat Routines. On the Buddy forum there isn't much to lead me in the right direction that I could find, even in the Dev forum.

I am just hoping someone here might be able to put me in the right direction. And also I put this in the C# forum because even though I know C++, I am pretty sure that I will need to transalte my knowledge of C++ to C# as I may have read on the Buddy forum.

But again, any help would be greatly appreciated. Thanks.

]]>
3263Sun, 17 Nov 2013 13:34:05 +0000
Need a C# tutor for my cousin (paid)http://codedeception.net/ipb/index.php?/topic/3011-need-a-c-tutor-for-my-cousin-paid/Here's an opportunity for fellow programmers, I'm much to busy these days to teach him myself, but a cousin of mine is in need of tutoring services for C#. He's shopped around on the internet and was willing to pay someone $600-$700 to tutor him in the win32 api and entry level direct X. This sounds a little ludicrous to me as I've seen people tutor other people for $200-$300 (or sometimes free but I know he wouldn't accept free or super cheap tutoring he wouldn't expect someone to give him 2-3 weeks of their time for peanuts) and he's not exactly on a high income, he makes less than $8,000 a year. So I'm trying to help him find tutoring services for cheaper. Hopefully in the $4-$500 range? If you could help me/him out it would be most appreciated.

Oh, by the way time wouldn't really be a factor as he's online for most of  the day. He's on disability just like I am but lives with his parents so he doesn't get as much as I do, and he usually stays up till 1-2am. So anyway, hit me up if you're interested in making some money.

 

]]>
3011Mon, 28 Oct 2013 03:06:42 +0000
Hunt The coders hidden cheathttp://codedeception.net/ipb/index.php?/topic/1645-hunt-the-coders-hidden-cheat/Hey all this is a small barely finished program that does some simple mathchallenges and then gives you the result: how many you got right or wrong:

however my challenge to you all is to find the one hidden easteregg cheat in the program that will allow the player to affect the the score even after the games ended good luck :D

Please login or register to see this link.

Please login or register to see this link.

 

EDIT: also those who like decompiling do not reveal the misguided integer babies come from there!!!

]]>
1645Tue, 04 Jun 2013 19:59:23 +0000
just me that got errors when try decompile the source?http://codedeception.net/ipb/index.php?/topic/1466-just-me-that-got-errors-when-try-decompile-the-source/Removed*

]]>
1466Sat, 25 May 2013 21:19:46 +0000
[GIT] Uservoice, authchecker, C# libraryhttp://codedeception.net/ipb/index.php?/topic/1335-git-uservoice-authchecker-c-library/

Please login or register to see this link.

]]>
1335Sat, 11 May 2013 17:09:28 +0000
[Uservoice] automate the voteshttp://codedeception.net/ipb/index.php?/topic/1242-uservoice-automate-the-votes/Hi there.

 

I recently bought a new mobile phone with Windows Phone 8 and I discovered it cannot share Internet connexion through USB (tethering).

Microsoft actively checks the website windowsphone.uservoice.com to discuss with the users asking new features.

 

I wrote this script to powerlevel a little bit the vote for this feature :P

It obviously can be adapted for other votes on Uservoice.

Be careful: the website blocks after x votes with the same IP address. Don't be surprise you cannot post more than 20 votes at a time.

using System;using System.IO;using System.Net;using System.Text;using System.Text.RegularExpressions;using System.Threading;namespace Uservoice{    class Program    {        // ###############################        // #          Settings           #        // ###############################        // Url corresponding to the public page for voting        private const string UrlOfTheVote = "http://windowsphone.uservoice.com/forums/101801-feature-suggestions/suggestions/3581775-usb-tethering";        // Url used by Uservoice to increase the number of vote (just substitute the numbers from the previous url)        private const string UrlOfTheAjaxRequest = "http://windowsphone.uservoice.com/api/v1/forums/101801/suggestions/3581775/votes.json";        // Url for managing sessions        private const string UrlOfTheSessions = "http://windowsphone.uservoice.com/session";        // The number of the suggestion (first number in the url above)        private const int SuggestionNumber = 101801;        // Time between vote        private static readonly TimeSpan _timeBetweenVote = TimeSpan.FromSeconds(30);        /// <summary>        /// The entry-point with an infinite loop.        /// </summary>        /// <remarks>Written by DarkZe.</remarks>        static void Main()        {            uint counter = 0;            while (true)            {                counter++;                Console.Write("Vote #{0} in progress... ", counter);                Vote();                Console.WriteLine("done");                Thread.Sleep(_timeBetweenVote);            }        }        /// <summary>        /// Automates votes on Uservoice.com.        /// </summary>        /// <remarks>Written by DarkZe.</remarks>        private static void Vote()        {            // ###############################            // #     Get the identifiers     #            // ###############################            var cookies = new CookieContainer();            var request = (HttpWebRequest)WebRequest.Create(UrlOfTheVote);            request.CookieContainer = cookies;            string csrfToken;            using (var response = request.GetResponse())            {                var regex = new Regex("<meta name=\"csrf-token\" content=\"(.*)\"/>");                csrfToken = regex.Match((new StreamReader(response.GetResponseStream())).ReadToEnd()).Groups[1].Value;            }            // ###############################            // #  Authenticate the session   #            // ###############################            request = (HttpWebRequest)WebRequest.Create(UrlOfTheSessions);            request.CookieContainer = cookies;            var random = new Random();            var data = string.Format("site2=1&forum_id={0}&display_name=str{1}&email={1}%40hotmail.com", SuggestionNumber, random.Next(100000, 999999));            var encodedData = Encoding.UTF8.GetBytes(data);            request.Method = "POST";            request.ContentLength = encodedData.Length;            request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";            request.Headers.Add("X-CSRF-Token", csrfToken);            using (var stream = request.GetRequestStream())            {                stream.Write(encodedData, 0, encodedData.Length);            }            request.GetResponse().Dispose();            // ###############################            // #       Submit the vote       #            // ###############################            request = (HttpWebRequest)WebRequest.Create(UrlOfTheAjaxRequest);            request.CookieContainer = cookies;            data = "to=3&oauth_signature_method=HMAC-SHA1&oauth_consumer_key=1aEpNly5pjcYOpC7L4FXag";            encodedData = Encoding.UTF8.GetBytes(data);            request.Method = "POST";            request.ContentLength = encodedData.Length;            request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";            request.Headers.Add("X-CSRF-Token", csrfToken);            using (var stream = request.GetRequestStream())            {                stream.Write(encodedData, 0, encodedData.Length);            }            request.GetResponse().Dispose();        }    }}

Enjoy.

~ DarkZe

]]>
1242Wed, 01 May 2013 21:00:58 +0000
Need some help with a CC for zurasbothttp://codedeception.net/ipb/index.php?/topic/1333-need-some-help-with-a-cc-for-zurasbot/The owner of this CC stoped with tera, and didnt release his source code. i tried with net reflector getting the source and tried solve some problems, but iam stuck at 1 error,

could some one help me with this?

 

Regards

 

LINK:

Please login or register to see this link.

]]>
1333Sat, 11 May 2013 14:35:39 +0000