[help request] multithreading, delegates, events menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    abuckau907's Avatar Active Member
    Reputation
    49
    Join Date
    May 2009
    Posts
    225
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [help request] multithreading, delegates, events

    Hello,

    Basically I've been learning vb/vb.net for 5+ years, but never anything technical and serious (always little apps like..keylogger, chat programs, encryptions, pixelbots, basically things that don't require good OOP techniques) so while I say 5 years, it's actually like year 2 as far as 'good' technique..Anyway, the bot is fine, i don't need help for wow-specific stuff..but I've noticed that not using multi-threading is making my life very hard, and lots of extra code.. For example...before entering combat I check my hp/energy to see if I should heal first --> which looks something like..
    Code:
    If LocalPlayer.NumberOfAttackers = 0 then
    'nobody is trying to kill me
    
     If Health >= _sitHealth 
       'we have enough health to fight
       Call ContinueBotting()
     else
       'we need to heal (ie. sit)
       LocalPlayer.Sit()
       while health <= 95%
       'do nothing until is healed
       end while
       Call ContinueBotting()
    Else
      'someone is killing me!
      Call KillAttackers()
    End If
    but that's not good because it does nothing while it heals --> and that's not smart..I mean, i could say..
    Code:
    while Health <=95%
    If LocalPlayer.numbersOfAttackers = 0
    'keep healing
    else
    'Someone started attacking us
    Call KillAttackers()
    End if
    end while
    but..that's a crappy work-around and I keep writing the same code over and over again...I thought using events/multi-threading would be better, but I keep trying to read it online and something isn't *clicking*... so, if someone here has enough extra time to help explain it (multithreading and events mostly, I think?) via msn messenger @ [email protected] (excuse the email..had it since I was in 6th grade) ..that would be awesome. Thanks for reading.

    -Andrew
    Last edited by abuckau907; 08-06-2009 at 03:23 AM.

    [help request] multithreading, delegates, events

Similar Threads

  1. It keeps DCing me.Help request!
    By sirios in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-20-2008, 01:40 AM
  2. [Help/request/crazy] Look inside please.
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 01-01-2008, 07:26 PM
  3. [help/request] I need trainers for 2.3 lol
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-28-2007, 12:39 PM
  4. Getting A Friend Connected (Help Request)
    By Magnusvermis in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 12-07-2007, 11:57 PM
  5. Help Request
    By sirios in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 10-14-2007, 12:47 PM
All times are GMT -5. The time now is 08:02 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search