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