Register for your free account! | Forgot your password?

You last visited: Today at 20:15

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

Advertisement



Help

Discussion on Help within the SRO Coding Corner forum part of the Silkroad Online category.

Closed Thread
 
Old   #1

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,026
Received Thanks: 512
Unhappy Help

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



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
SubZero** is offline  
Old 08/21/2017, 01:43   #2
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 2,008
Received Thanks: 1,193
Debug the program by pressing F5 in visual studio
B1Q is offline  
Thanks
1 User
Old 08/21/2017, 02:19   #3

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,026
Received Thanks: 512
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
SubZero** is offline  
Old 08/21/2017, 02:30   #4
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
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
Mr.Awesome1337 is offline  
Thanks
1 User
Old 08/21/2017, 02:32   #5

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,026
Received Thanks: 512
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
sir, as you see am very bad in c#~c++ if you can just edit it and i will test it
SubZero** is offline  
Old 08/21/2017, 03:16   #6
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
Bro,the prog seems it works fine,but i should ask you Question are you have the db of this program?



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
Mr.Awesome1337 is offline  
Thanks
1 User
Old 08/21/2017, 08:13   #7
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 2,008
Received Thanks: 1,193
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());
            }
        }
B1Q is offline  
Thanks
1 User
Old 08/21/2017, 22:51   #8

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,026
Received Thanks: 512
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?



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
SubZero** is offline  
Old 08/21/2017, 23:09   #9
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 2,008
Received Thanks: 1,193
did you create a new table with the same columns?
B1Q is offline  
Thanks
1 User
Old 08/22/2017, 17:04   #10

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,026
Received Thanks: 512
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
SubZero** is offline  
Old 08/22/2017, 20:55   #11
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 88
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
Mr.Awesome1337 is offline  
Thanks
1 User
Old 08/22/2017, 22:51   #12

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,026
Received Thanks: 512
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
SubZero** is offline  
Closed Thread


Similar Threads Similar Threads
[HELP]HELP HELP HELP[HELP]
09/23/2013 - Facebook - 3 Replies
GUYS ^^ THIS IS A HELP THREAD NOT REQUEST THREAD BUT YOU CAN CONSIDER IT AS REQUEST THREAD DOES ANYONE OF YOU KNOW THE AUTO SUBMIT PHP CODE? THANKS!
[HELP][HELP][HELP][HELP]!!
09/11/2009 - Soldier Front - 3 Replies
Microsoft Visual C++ Run time error! :(:( **HELP ME PLEASE!!***
help help help help help help
06/28/2009 - Say Hello - 0 Replies
how i can dowmload Mangos 6385 ??????????????????????????????????? please give me the limk i can't see that i know it is in www.elitepvpers.com/.../153716-release-mangos-relea ses-blackscorpian-win32-2-4-3-a.html - but give me link sent it to my email plz



All times are GMT +1. The time now is 20:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.