Help

08/20/2017 23:04 SubZero**#1
am very bad in c#~c++
i have a src for auto notice,totown char,recal char, etc
can any one fix it?
screen for the program

[Only registered and activated users can see links. Click Here To Register...]

when i just press "send login" program get crashed

here link for src if any one will fix it
or share with me same src if you have and work fine
#
at least sorry for my bad english :)
08/21/2017 01:43 B1Q#2
Debug the program by pressing F5 in visual studio
08/21/2017 02:19 SubZero**#3
Quote:
Originally Posted by B1QB0SS :3 View Post
Debug the program by pressing F5 in visual studio
its work
the problem is
when i set id pw and press send login to spawn the char
program get crashed
08/21/2017 02:30 Mr.Awesome1337#4
I think the problem from Agent.cs ,try use another one instead of/ or u can use that open src it is benift for u
[Only registered and activated users can see links. Click Here To Register...]
08/21/2017 02:32 SubZero**#5
Quote:
Originally Posted by Mr.Awesome1337 View Post
I think the problem from Agent.cs ,try use another one instead of/ or u can use that open src it is benift for u
[Only registered and activated users can see links. Click Here To Register...]
sir, as you see am very bad in c#~c++ if you can just edit it and i will test it
:handsdown:
08/21/2017 03:16 Mr.Awesome1337#6
Bro,the prog seems it works fine,but i should ask you Question are you have the db of this program?

[Only registered and activated users can see links. Click Here To Register...]

this pic prove that send login packet not the problem ,as you say befor you got crush when you just press (send login)
but in this pic show you that the char has been spawned successfully
but the main problem in the database of this program because in (select charater button) there is a command to start Bot which have a specifc database which you have to resotre it in your SQll! :3
specifically the crush is due to database not due to Agent
i got also crush but due to the db ,the program cannot recognize this data which forced to crushed ..
i hope i helped you :)
08/21/2017 08:13 B1Q#7
replace your button4_click method with this one and try to select your character again

Code:
        private void button4_Click(object sender, EventArgs e)
        {
            string str = Convert.ToString(this.char_list.SelectedItem);
            Packet packet = new Packet(0x7001);
            packet.WriteAscii(this.char_list.SelectedItem);
            Agent.Send(packet);
            try
            {
                if (!Bot.isRunning)
                {
                    Globals.MainWindow.Log("Connected to the AgentServer and Spawned ingame! Character : " + str, new object[0]);
                    this.DisableAllButtons();
                    Thread.Sleep(0xbb8);
                    Bot.start();
                }
                else
                {
                    Globals.MainWindow.logs.AppendText(" \nThe bot is already running....\n");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
08/21/2017 22:51 SubZero**#8
Quote:
Originally Posted by Mr.Awesome1337 View Post
Bro,the prog seems it works fine,but i should ask you Question are you have the db of this program?

[Only registered and activated users can see links. Click Here To Register...]

this pic prove that send login packet not the problem ,as you say befor you got crush when you just press (send login)
but in this pic show you that the char has been spawned successfully
but the main problem in the database of this program because in (select charater button) there is a command to start Bot which have a specifc database which you have to resotre it in your SQll! :3
specifically the crush is due to database not due to Agent
i got also crush but due to the db ,the program cannot recognize this data which forced to crushed ..
i hope i helped you :)

brow am unpack this prog it read 1 table so i want to make more than 1 program with other tables name

Quote:
Originally Posted by B1QB0SS :3 View Post
replace your button4_click method with this one and try to select your character again

Code:
        private void button4_Click(object sender, EventArgs e)
        {
            string str = Convert.ToString(this.char_list.SelectedItem);
            Packet packet = new Packet(0x7001);
            packet.WriteAscii(this.char_list.SelectedItem);
            Agent.Send(packet);
            try
            {
                if (!Bot.isRunning)
                {
                    Globals.MainWindow.Log("Connected to the AgentServer and Spawned ingame! Character : " + str, new object[0]);
                    this.DisableAllButtons();
                    Thread.Sleep(0xbb8);
                    Bot.start();
                }
                else
                {
                    Globals.MainWindow.logs.AppendText(" \nThe bot is already running....\n");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
am trying
08/21/2017 23:09 B1Q#9
did you create a new table with the same columns?
08/22/2017 17:04 SubZero**#10
Quote:
Originally Posted by B1QB0SS :3 View Post
did you create a new table with the same columns?
its old table
i just rename it :)
08/22/2017 20:55 Mr.Awesome1337#11
Quote:
Originally Posted by Zoro.Sro View Post
its old table
i just rename it :)
You have to set the name of table as in the program
08/22/2017 22:51 SubZero**#12
Quote:
Originally Posted by Mr.Awesome1337 View Post
You have to set the name of table as in the program
yes i knew that thank you solved by B1Q