Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 Main - Discussions / Questions > CO2 Programming
You last visited: Today at 23:59

  • Please register to post and access all features, it's quick, easy and FREE!


Hey guys and girls,programming help needed

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 8
Received Thanks: 0
Exclamation Hey guys and girls,programming help needed

Hey everyone =]

I've played co for sometime now,and i feel like i wana start programming stuff,for now stuff related to co,bots and such.

I know the basic langs such as Assembler, C and Pascal,a bit of python and a bit of C++.


I have NO IDEA how to even start making programs for CO,all i know is that i worked in the past on some programming tools for C and pascal and assembler,i made basic programms,and it wasnt hard.

My question is,what lang do i need to know to start programming in CO?
and what engines/programming tools do i use? im really exited ,help me out=D



volraze is offline  
Old 11/10/2009, 22:07   #2
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,877
If your willing to learn a .NET language such as C# you can program on the JProxy API


Which is extremely easy to develop bots on.
Otherwise if your not willing to get JProxy, I suggest looking around for some open-source bots and learning from those. Here's an example of an aimbot written using the JProxy API:
When you cast fastblade (or scentsword) it'll target the person for you.

Code:
    public class Aimbot
    {
        public static JPacketProcessHelper hlpClient;
        public static JPacketProcessHelper hlpServer;

        public uint TargetID;
        public bool AutoSit;
        public int SpellID;
        public bool On;

        private bool GetTarget(JNativeGameClient Client, out JNativeBasicEntity Target)
        {
            Target = default(JNativeBasicEntity);
            foreach (JNativeBasicEntity Entity in Client.Screen.Objects)
            {
                if (Entity.UID == TargetID)
                {
                    Target = Entity;
                    return true;
                }
            }
            return false;
        }
        
        static Aimbot()
        {
            hlpServer = new JPacketProcessHelper();
            hlpServer.OnJump += new JOnEntityJumpCallback(hlpServer_OnJump);
            hlpClient = new JPacketProcessHelper();
            hlpClient.OnMagicAttack += new JOnStandardAttack(hlpClient_OnMagicAttack);
        }
        public Aimbot(JNativeGameClient Client)
        {
            Client.Variables["Aimbot"] = this;
            SpellID = 1045;
            On = false;
            TargetID = 0;
            AutoSit = false;
        }

        private static bool hlpServer_OnJump(IntPtr nativeClient, uint UID, int X, int Y, int OldX, int OldY)
        {
            JNativeGameClient Client = new JNativeGameClient(nativeClient);
            Aimbot Aimbot = Client.Variables["Aimbot"] as Aimbot;
            if (Aimbot != null)
            {
                if (Client.UID == UID && Aimbot.AutoSit)
                {
                    Client.ChangeAction(JNativeConquerAction.Sit);
                }
            }
            return true;
        }
        private static bool hlpClient_OnMagicAttack(IntPtr nativeClient, uint AttackerUID, ushort X, ushort Y, uint TargetUID, DamageSpellUnion Value)
        {
            JNativeGameClient Client = new JNativeGameClient(nativeClient);
            Aimbot Aimbot = Client.Variables["Aimbot"] as Aimbot;
            if (Aimbot != null)
            {
                if (AttackerUID == Client.UID)
                {
                    if (Value.SpellID == Aimbot.SpellID && Aimbot.On)
                    {
                        JNativeBasicEntity Target;
                        if (Aimbot.GetTarget(Client, out Target))
                        {
                            Client.CastMagic(Target.X, Target.Y, Value.SpellID, 0);
                            return false;
                        }
                    }
                }
            }
            return true;
        }
    }


InfamousNoone is offline  
Old 11/11/2009, 10:34   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 8
Received Thanks: 0
C# is a .net? im sorry for the stupid question,i just never programmed in .net.

so i dont need php or VB.NET or ASP.NET?

im welling to learn any lang,i dont have a problem,prettymuch they are all the same, im a fast learner.

so its settled,C# is what i need for this kinda work then ill do that.

by the way i started using Blender for 3D graphics,made a skeleton in first hour =D i wana eventually be able to make a game,but first stop is cracking them down in bots,second is making them =]

Thanks alot for your help,if u got anymore usefull advice ill love to hear em
volraze is offline  
Old 11/11/2009, 10:36   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 8
Received Thanks: 0
oh yeah,what simulators do i need for em? dev ccp?
i usually write down skeleton in notepad ++ (kickass prog) that supports almost all langs ,then move it to a simulator,so which one do i use for C#? dev ccp? cuz i got no idea


volraze is offline  
Old 11/11/2009, 11:39   #5
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 79
Quote:
I know the basic langs such as Assembler, C and Pascal,a bit of python and a bit of C++
why lie? i find it very hard to believe you've worked with them languages, and you don't know what .Net is, as well as the general way your talking.
ChingChong23 is offline  
Old 11/11/2009, 13:03   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 8
Received Thanks: 0
I am not lieng,i learned a year in software engineering and got recruited to the army (its compulsory) so i had to leave,while there i worked with assembler and C,i only had 1 semester inC++ so i dont remember alot of it,im good at C and pascal though,i learned 5 unites of pascal in highschool and C in first 2 semesters of univirsity,i wrote alot of programms in them,and no i never got to .NET ,maybe it was at the end of C++ course? idk cuz i only had 1 semester of it.

so please,don't call people liars over nothing,i have nothing to lie for,i told him what languages i worked with in order for him to reply me accordingly,not for you to call me a liar.

i worked with dev ccp complier and turbo C ,and a simulator called PDP-11 for assembler,which is one of the hardest assembler machines,and turbo pascall,i never ever used C#,so i have no idea what simulators i run it on.


volraze is offline  
Reply



« special for all | [Request] Ancient C# Sourcecode. »

Similar Threads
to all the guys and girls here
08/02/2009 - Say Hello - 1 Replies
hello too all of you
Hey guys and girls
06/26/2009 - Say Hello - 0 Replies
Hey im new here :)
Hello,Guys & Girls!
03/13/2009 - Say Hello - 0 Replies
New guy here. I'm new to this forum:mofo:
Hi guys and girls ^^
05/30/2008 - Say Hello - 0 Replies
Hey everyone! Seems like a very interesting place you got goin here. I'm new to the whole forum scene but I'd like to be a contributing member to your online society ;). I think you'll be happy to know that i actually wont be the impatient newblett...
Hey guys/girls a lil help if u can
06/28/2007 - CO2 Main - Discussions / Questions - 0 Replies
does anyone know where and how to change the COLOR or size of monsters HP bar? Thx for the help <hr>Append on Jun 29 2007, 09:44<hr> sry for double posting.. but ..... come on guys no1 knoes where? plsss pretty plsssssss



All times are GMT +2. The time now is 23:59.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.