kumpel100 - maglins is right you can lower the spell sleep to make it cast faster.
Code: Register to unlock hidden link
Const SPELL_SLEEP = 3000 ' Spell cooldown
This is more for everyone that is using the bot that is having any problems.
It is hard for me to track down why something might be wrong if I'm not having the same problem.
Such as Maglins said his Health Graft is not working just a quick example how to test this.
If you look in the code
Code: Register to unlock hidden link
Const BUFF_HEALTH_GRAFT = "%5" '"Health Graft III"
The buff should be on ALT-5
So hold down your ALT key and push the number 5, if it buffed you go to the next step
Code: Register to unlock hidden link
Function CHECK_BUFFS
This is the section where your bot buffs, find out if it is getting to the buff function is easy to do.
Add one line inside the buff section to see if the bot is getting there.
Code: Register to unlock hidden link
Function CHECK_BUFFS
Log.debuglog " I'm in the Buff Section"
Run the bot you should get spam in your debuglog every loop saying "I'm in the Buff Section"
If you get that spam go back remove that line and move to the next step.
Look in the Health Graft buff section.
Code: Register to unlock hidden link
If ((LEVEL_TRAINED => 6) And (DIFF_TIME => 50) And (HEALTH_GRAFT = 0)) Then
VGSEndText BUFF_HEALTH_GRAFT ' Buffs Player
HEALTH_GRAFT = 1 ' Sets Buff Flag to True
SLEEP SPELL_SLEEP
End If
That is what the code looks like, change a couple things and we can see what is going on here.
First of all it buffs once every hour and we really do not want to wait that long to test so we can change the DIFF_TIME => 50 to DIFF_TIME => 2 that will make it try to buff after DIFF_TIME = 2.
We can also add a couple Log lines where we can see what all the values are.
So I replaced the last code with this.
Code: Register to unlock hidden link
Log.debuglog " Level " & LEVEL_TRAINED & " Diff Time " & DIFF_TIME & " Health Graft " & HEALTH_GRAFT
If ((LEVEL_TRAINED => 6) And (DIFF_TIME => 2) And (HEALTH_GRAFT = 0)) Then
VGSEndText BUFF_HEALTH_GRAFT ' Buffs Player
HEALTH_GRAFT = 1 ' Sets Buff Flag to True
Log.debuglog " I should of just buffed myself with Health Graft"
SLEEP SPELL_SLEEP
End If
So once Diff time = 2 you should have got the second message.
"I should of just buffed myself with Health Graft"
This is a way to track down a problem.
maglins - I know you were not asking for help just was an easy example to show people how to find a problem.