Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Looking for help - Page 4
Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 43

Thread: Looking for help

  1. #31
    Senior Member
    Join Date
    Feb 2013
    Posts
    187
    figured it out
    Last edited by ruffs; 10-13-2013 at 08:33 PM. Reason: figured it out

  2. #32
    Senior Member
    Join Date
    Feb 2013
    Posts
    187
    Needing some help with my attacker C#
    Code:
    public string AttackName()
            {
                
                string res = "";
                this.Invoke((MethodInvoker)delegate
                {
                    foreach (Creature c in client.Battlelist.GetCreatures().Where(x => x.IsOnScreen))
                    {
                        foreach (System.Windows.Forms.DataGridViewColumn col in TibianicBot.FormObjects.targetForm.dataGridView1.Columns)
                        {
                                res = col.Name.ToLower();
                        }
                    }
                }); 
                return res;          
             }
    im trying to get it to read from my gridview in the name column just not sure how to do it i have 0 code errors but runtime isnt able to read the grid column boxes could someone help?
    Last edited by ruffs; 10-11-2013 at 08:43 PM.

  3. #33
    Junior Member
    Join Date
    May 2012
    Posts
    13
    I guess you would better ask that in a C# board. Anyways, to get productive you will have to start working in a way that u dont need to wait for replys from other people. Everybody started at some point, but there are those who keep asking questions when they stumble across something and those that keep googling for examples on how to use something until they succeed. In my professional career, I have only seen the later one's surviving - as it is much more productive. You might have to google a few hours to get into something, but its still faster than waiting a few days for a reply on some board. Try to do it like that If you stumble across something tibia related, this boards search function covers many topics and theres still people that will help you out if u cant find something.

  4. #34
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    Quote Originally Posted by ruffs View Post
    Needing some help with my attacker C#
    Code:
    public string AttackName()
            {
                
                string res = "";
                this.Invoke((MethodInvoker)delegate
                {
                    foreach (Creature c in client.Battlelist.GetCreatures().Where(x => x.IsOnScreen))
                    {
                        foreach (System.Windows.Forms.DataGridViewColumn col in TibianicBot.FormObjects.targetForm.dataGridView1.Columns)
                        {
                                res = col.Name.ToLower();
                        }
                    }
                }); 
                return res;          
             }
    im trying to get it to read from my gridview in the name column just not sure how to do it i have 0 code errors but runtime isnt able to read the grid column boxes could someone help?
    You want to get one entry specifically or an array of entries? For what purpose do you want to read it? You can access the DataGridView.Rows as an array, and select a specific row from the datagrid (e.g dataGridView1.Rows[0] to select the first row), then access the name using a similar method I believe.

    My strongest advice at this point would be to contemplate your future with WinForms. It looks like right now you would benefit endlessly from switching to WPF, as the data binding would mean you could use this data far more easily and manipulate it much better.

    Also, as Jah said, googling is always better than posting. By all means post after a couple of bad result from google, but continue to search while waiting for replies. Chances are even if you don't find what you're looking for on Google, you'll at least learn something new. I learn something new almost every time I visit Google

    Also, each row is just an array of strings, so you can then access the rows elements using the same method (treating each row as an array).

    A useful page for you (first result on google for DataGridView): http://msdn.microsoft.com/en-us/libr...agridview.aspx

    Look right down the bottom of the page for examples.
    Last edited by XtrmJash; 10-17-2013 at 04:59 PM.

  5. #35
    Senior Member
    Join Date
    Feb 2013
    Posts
    187
    just because i post doesnt mean i quit trying ;p, i just skip to the next part and come back later

  6. #36
    Senior Member
    Join Date
    Feb 2013
    Posts
    187
    and im not changing to wpf, im halfway done with my bot in c# why would i want to change, and i will figure it out thanks anyways, and i am constantly searching codeproj and other sites for info just not finding anything useful to work with my code ;p

  7. #37
    Administrator
    Join Date
    Mar 2007
    Posts
    1,723
    Set a breakpoint on your attack function and step through it to make sure it's even looping through your grid columns. Also, it's been mentioned a few times recently, IsOnScreen in TibiaAPI seems to be broken, use something else here. Check my recent posts for sample code.

  8. #38
    Senior Member
    Join Date
    Feb 2013
    Posts
    187
    im not using tibiaapi im using mouse clicks as my attack on battlelist with big help from pBot creator thanks to him~

  9. #39
    Senior Member
    Join Date
    Feb 2013
    Posts
    187
    and it wont read the cell of the row, all i can get it to do is read how many rows or if i do the column way how many columns and what they are but i cant access the cell box

  10. #40
    Senior Member
    Join Date
    Feb 2024
    Location
    Buying Gold
    Posts
    2,768

    New Slot Gacor Hari Ini Blog

    In reply to the man inquiring about free gambling real money, play for money online, free spins today casino, free real money games online, best casino login, most popular slot games online, best no account casinos, free slots with no deposit, biggest online casinos, win real money games no deposit, I highly recommend this these details on link slot gacor info or online casino best games, free bonus casino, betting slots sites, best slots game to win real money, us casino online real money, interactive casino, need for spins casino, sign up bonus casino games, online slots no deposit, bonus free spins, and don't forget this cool situs slot url as well as jili site, casino games without money, easy to win casino games, slots x, real casino games real money, new online casino free spins, casino games online that pay real money, casino games to play, free spins today casino, online gambling win, on top of this the original source for link slot gacor tips which is also great. Also, have a look at this see post for situs slot forum as well as best time to go to the casino to win, casinos that play for real money, casino wilds, the best casino games online, best free online gambling, top game slot, casino online win money, new casino sites, join casino, casino live video, and don't forget this conversational tone for situs slot gacor advice with spins games, online casino real money philippines, best casino online to win real money, casino games that pay you real money, free gambling real money, best online slots websites, play live casino online, legit online casinos for us players, online games with free spins, online casino registration bonus, for good measure. Check more @ Awesome Slot Maxwin Blog 6fd6b89

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •