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
UPdating Text Box - Page 3
Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: UPdating Text Box

  1. #21
    Junior Member
    Join Date
    Aug 2012
    Posts
    27
    Quote Originally Posted by Blequi View Post
    My bet goes to: he's using some ot fully edited (maybe not even a tibia client, like OTClient, that Tibia's class name is not matching) or 'logged in' constant is wrong. As I took a look in the tibia api source and it should be the possible bugs, because I'm pretty sure my timer example works and he had a post explaining an "NotLoggedInException".
    Im using my frineds OT which currently has no edits (RL map). Im just trying to get a timer to load the exp text box every 5 seconds or so.

  2. #22
    Junior Member
    Join Date
    Aug 2012
    Posts
    27
    I got it to work. Thanks everyone. Next project is to make the client say commands. Example: Spell trainer text box when checked says spell in client.

  3. #23
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    Quote Originally Posted by athenso View Post
    I got it to work. Thanks everyone. Next project is to make the client say commands. Example: Spell trainer text box when checked says spell in client.
    c.Console.Say("Hello, world!");

  4. #24
    Junior Member
    Join Date
    Aug 2012
    Posts
    27
    Yeah that works but im trying to make a spell trainer (using a timer) So far i have:

    Code:
            private void OnTimerEvent2(object sender, EventArgs e)
            {
                Client C = Client.GetClients()[0];
                Player P;
                P = C.GetPlayer();
    
                if (checkBox1.Checked == true)
                {
                C.Console.Say(textBox1.Text);
                }
            }
    but its spamming xD

    my timer code is
    Code:
                Tibia.Util.Timer tt = new Tibia.Util.Timer();
                t.Interval = 70000;
                timer2.Enabled = true;
                timer2.Tick += new System.EventHandler(OnTimerEvent2);
                timer2.Start();

  5. #25
    Hope this will help you......C# Textbox Tutorial

    Vayne

Posting Permissions

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