|
Post by rirague on Jun 28, 2005 11:40:35 GMT -5
Hi, Ive been trying out 'Thecandyman's TargetNPC VokeBot' and I saw some areas I thought could be made a little better, but Ive run into problems. I dont know whether they dont work and if thats why they wernt put in. The bot targets enemies by using a /targetnpc macro, problem with this is that it only targets the closest mob. So I thought Id try changing this to tab or the 0 key on the numpad, but these dont seem to work in FF, they work when moving around windows but not at all in FF. I was wondering if SE had somehow blocked these commands coming from a third party software affecting the game, or whether I was just doing somethign wrong.
Well heres the current code:
While $TargetName <> $Mob Keydown @1 10 <--alt 1 is the /targetnpc macro End
and here is the code I tried:
While $TargetName <> $Mob Keydown {TAB} 10 <--also tried {Num 0} End
can anyone tell me if Im doing something wrong, or whether it cant be done. Thanks ^^
|
|
|
Post by rirague on Jun 28, 2005 13:51:51 GMT -5
ok I read up on otehr forums and found keyascii. looked up in help and showed tab as 9, so I changed my code thusly
original: While $TargetName <> $Mob Keydown @1 10 End
new: While $TargetName <> $Mob Keydown keyascii 9 10 End
I found that didne work so I tried
While $TargetName <> $Mob Keydown keyascii 9 End
ok this tabs a mob, but it then skips out the rest of the tabbing and starts attacking the first mob it sees
here is the bulk of the original code: Constants (* Set Up: *) (* The exact name of the mob you want to kill: *) Mob = anymobname (* Do not change the line below. *) Temp = {null} End delay 3000 Call Init
Procedure Init Call LoadFFACT Call TargetAndClaim Call Kill End
Procedure TargetAndClaim (* Targets and claims the wanted mob. *) SetActiveWindow FFXiApp While $TargetName <> $Mob <------------the code Im trying to change Keydown @1 10 End Keydown @2 10 While $TargetStatus <> 1 Keydown @2 10 End End
Procedure Kill (* Kills the targetted mob. If you didn't claim it, it will start running forward *) SetActiveWindow FFXiApp If $TargetDistance >= 10 (* If the target is far away, locks on, gets closer, then attacks *) Keydown @4 100 keydown wr 100 While $TargetDistance >= 5 Delay 100 End keydown r 100 End Keydown @a 100 While $TargetStatus = 1 While $TargetDistance >= 3 (* if the target is too far away, moves closer *) Keydown w 1000 End While $PlayerTP >= 100 (* If you have more than 100% TP, uses a weaponskill *) Keydown @3 10 delay 50 End keydown s 100 (* These two lines make sure you are facing the target *) keydown w 100 Delay 100 End End
Im not really sure why this happens at all..but any help would be much appreciated ^^
|
|
|
Post by rirague on Jun 28, 2005 13:58:05 GMT -5
haazah! I did it by more researching XD
I ended up with the final code:
While $TargetName <> $Mob keyascii 9 delay 10 End
well thanks for the great forum, couldnt have done it w/o the useful links on other threads ^^
|
|