World of Kungfu Bot (Updated)
Re: World of Kungfu Bot (Updated)
Sorry about that.
what happens if alt F4 dont work on the game? is there an alternative?
what happens if alt F4 dont work on the game? is there an alternative?
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
You could reproduce opening the menu (typically pressing ESC a few times), and clicking the "exit game" button. You could also induce the OS's kill command to kill the process.
Re: World of Kungfu Bot (Updated)
alt f4 doesn't work. Os kill as in shut down computer? hmm. what about task manager to kill the game
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
Actually, I was thinking more along the lines of this:
Code: Select all
os.execute("taskkill /IM whatever.exe");
Re: World of Kungfu Bot (Updated)
sweet where do i put that command?
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
Put it in place of the ALT F4 press from the previous code.
Re: World of Kungfu Bot (Updated)
when i was botting i found tat the char will get stuck(rocks,trees..etc) sometime and do nth. is there anyway to fix this?
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
Well, the easiest thing to do would be to bot in an area that's wide open and devoid of anything you can get stuck on. If this is not an option, you can try making a timed function to switch targets after 1 minute of not killing the targeted monster.
Add this anywhere outside of any function
Then modify your fight function by adding the noted lines
That should help, at least. You can also try having the character jump (if WoKF supports this), or move a few steps.
Add this anywhere outside of any function
Code: Select all
function switch_target_timer()
target_monster();
unregisterTimer("switch_target");
end
Code: Select all
function fight_warrior()
registerTimer("attack_timer", 3000, attack_timer);
registerTimer("switch_target", minutesToTimer(1), switch_target_timer); -- ADD THIS
while( have_target() ) do
if( HP < HP_potion ) then
hp_potion(); end
if( MP < MP_potion ) then
mp_potion(); end
keyboardPress(key_skill1);
yrest(120);
keyboardPress(key_skill2);
yrest(120);
keyboardPress(key_skill3);
yrest(120);
coroutine.yield();
end
unregisterTimer("attack_timer");
unregisterTimer("switch_target"); -- ADD THIS
yrest(1000);
end
Re: World of Kungfu Bot (Updated)
very nice of u to reply so fast. thx alot , tat shd help
Re: World of Kungfu Bot (Updated)
hmm any idea y it doesnt work?
-------------------------------------------------
-- FUNCTION MAIN
-------------------------------------------------
function main()
win = findWindow("Kungfu Client");
hdc = openDC(win);
proc = openProcess( findProcessByExe("GongfuClient.exe") );
attach(win);
registerTimer("update_vars", 100, update_vars);
registerTimer("buff1_timer", buff1_duration, buff1_timer);
registerTimer("buff2_timer", buff2_duration, buff2_timer);
registerTimer("buff3_timer", buff3_duration, buff3_timer);
function switch_target_timer()
target_monster();
unregisterTimer("switch_target");
end
i tried puting it above
-- update client variables by reading from it's memory function update_vars()
but it doesnt work too
-------------------------------------------------
-- FUNCTION MAIN
-------------------------------------------------
function main()
win = findWindow("Kungfu Client");
hdc = openDC(win);
proc = openProcess( findProcessByExe("GongfuClient.exe") );
attach(win);
registerTimer("update_vars", 100, update_vars);
registerTimer("buff1_timer", buff1_duration, buff1_timer);
registerTimer("buff2_timer", buff2_duration, buff2_timer);
registerTimer("buff3_timer", buff3_duration, buff3_timer);
function switch_target_timer()
target_monster();
unregisterTimer("switch_target");
end
i tried puting it above
-- update client variables by reading from it's memory function update_vars()
but it doesnt work too
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
You need to define "doesn't work." Does the script run? Does the script exit in error? Does it appear to run fine, just does not switch targets after that 1 minute?
Re: World of Kungfu Bot (Updated)
yea it does run normally but it doesnt change target after 1min
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
target_monster() seems to just be pressing the TAB button. If you have a target, and press TAB, does it switch to a new target, or keep the same target?
Re: World of Kungfu Bot (Updated)
yup it does change target when i press tab
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
Edit switch_target_timer(). Add
to it, and make sure the function is actually being called. If you see the line "switch_target_timer" printed to MicroMacro's screen, then it is obviously being called.
Code: Select all
printf("switch_target_timer");
Re: World of Kungfu Bot (Updated)
in which line to change u mean?
this registerTimer("switch_target", minutesToTimer(1), switch_target_timer);
or
function switch_target_timer()
this registerTimer("switch_target", minutesToTimer(1), switch_target_timer);
or
function switch_target_timer()
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
I said to add that line into the function. You should not be changing any lines, just adding one.
Re: World of Kungfu Bot (Updated)
elverion, do you have hackbar's msn ? need his help again for the new offsets.
or someone has knowledge on how to get that.
PM me, i'll be checking my pm tonight when i reach work
or someone has knowledge on how to get that.
PM me, i'll be checking my pm tonight when i reach work
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: World of Kungfu Bot (Updated)
I do not have his MSN address, however, he has marked his e-mail address for his profile. You could just click that little mail icon under his name on his first post in this topic. At least, I think you can see that, right?
Re: World of Kungfu Bot (Updated)
How can this game be played when it lags like hell.
Who is online
Users browsing this forum: No registered users and 1 guest