Para's Script Library

07/06/2019 23:28 agua2o#2281
Quote:
Originally Posted by Paraly View Post
Redownload the Combat Routine file and follow the guide slowly

1. Go to an obelisk nearby the grind spot you want to farm mobs at
2. Bind to the obelisk
3. Open the Combat Wizard (at the traymenu of vanillatool)
4. Click on "Record Return Path" and walk to the grind spot
5. Once you arrived at the grind spot stop recording the Return Path
6. Click on "Record Grind Path" and walk trough some mobs
7. Once you finished recordint the grind route be sure you end recording exactly where you started recording the Grind Path so it can run in a loop
8. Click on "Load Routine" and select the "Combat Routine" file
9. Click on "Build Combat script"and save the script somewhere (this is the final script which you load later with the Script Editor)
10. Simply load and play this final script with the Script Editor
I did exactly that. It kills mobs that attacks the bot, but it does not move nor targets any mobs on its own. There is no trace of the grind or return paths in the Script Editor's command lines. Is it supposed to mention something about them?
07/06/2019 23:29 Paraly#2282
Quote:
Originally Posted by agua2o View Post
I did exactly that. It kills mobs that attacks the bot, but it does not move nor targets any mobs on its own.
are you on a mount?
07/06/2019 23:34 agua2o#2283
Quote:
Originally Posted by Paraly View Post
are you on a mount?
No, I'm not. Also not using any motion.

There is no trace of the grind or return paths in the Script Editor's command lines. Is it supposed to mention something about them?
07/06/2019 23:39 Paraly#2284
Quote:
Originally Posted by agua2o View Post
No, I'm not. Also not using any motion.

There is no trace of the grind or return paths in the Script Editor's command lines. Is it supposed to mention something about them?
Yes it should write FlySmooth lines with the current coordinates

[Only registered and activated users can see links. Click Here To Register...]

Try a client restart and don't sit on mount while you record the paths
07/07/2019 09:24 agua2o#2285
Quote:
Originally Posted by Paraly View Post
Yes it should write FlySmooth lines with the current coordinates

[Only registered and activated users can see links. Click Here To Register...]

Try a client restart and don't sit on mount while you record the paths
I had messed up with the files, lol! It's working now.

Also how to make the bot attack mobs that attack him on the return path? Right now it just runs through the mobs, even if the mobs attack it. Also, to make it attack mobs regardless of HP or target. Thanks!

It would be nice to make so that the bot doesn't walk back to the path it was before selecting a mob and running to the appropriate distance. Is there a command to disable the walk back?
07/07/2019 11:55 Paraly#2286
Quote:
Originally Posted by agua2o View Post
I had messed up with the files, lol! It's working now.

Also how to make the bot attack mobs that attack him on the return path? Right now it just runs through the mobs, even if the mobs attack it. Also, to make it attack mobs regardless of HP or target. Thanks!

It would be nice to make so that the bot doesn't walk back to the path it was before selecting a mob and running to the appropriate distance. Is there a command to disable the walk back?
Add "_ACCheckMob=;" lines at every second line on your return path

Open the Combat Routine script with some text editor, scroll down to the "Basic Settings" part, add these lines
Code:
_ACAllowAllMobs=True;
_ACResetPosition=False;
_ACIgnoreAtDistance=17;
07/07/2019 19:54 MamaMercy#2287
Got banned for using this sadly :(
07/07/2019 19:55 agua2o#2288
Quote:
Originally Posted by Paraly View Post
Add "_ACCheckMob=;" lines at every second line on your return path

Open the Combat Routine script with some text editor, scroll down to the "Basic Settings" part, add these lines
Code:
_ACAllowAllMobs=True;
_ACResetPosition=False;
_ACIgnoreAtDistance=17;
Thanks! It worked, kind of. The bot still doesn't finish killing the mobs on the return path at times (it starts killing the mobs but then it just gives up and continue walking on the path lol), but it's much better now.

The other settings are working as intended.

Quote:
Originally Posted by MamaMercy View Post
Got banned for using this sadly :(
Well, it's a hack tool so you are accepting the risk to get banned lol.
07/10/2019 20:39 agua2o#2289
Is there a way to set the "_ACPotion=%Var3,HP/MP,50,66;" command to use multiple potions? I know that you can create a function like the transformation potions function, I was looking for a cleaner way.
07/10/2019 20:47 Paraly#2290
Quote:
Originally Posted by agua2o View Post
Is there a way to set the "_ACPotion=%Var3,HP/MP,50,66;" command to use multiple potions? I know that you can create a function like the transformation potions function, I was looking for a cleaner way.
No, the only way is like you said trough a similar function like the transformation potion function
07/10/2019 21:20 agua2o#2291
Quote:
Originally Posted by Paraly View Post
No, the only way is like you said trough a similar function like the transformation potion function
Could you create something like that? :S

Or do I have all the information I need in the thread? I can look it up myself if all the commands and functions are already available. The InventoryCheck one is pretty obvious. But i couldn't find a command to check for the HP/MP that the character currently has.

Or a way to call for a function when the HP/MP fall below a certain percentage.

Thanks in advance!
07/10/2019 21:26 Paraly#2292
Quote:
Originally Posted by agua2o View Post
Could you create something like that? :S

Or do I have all the information I need in the thread? I can look it up myself if all the commands and functions are already available. The InventoryCheck one is pretty obvious. But i couldn't find a command to check for the HP/MP that the character currently has.

Or a way to call for a function when the HP/MP fall below a certain percentage.

Thanks in advance!
Code:
start_HPPotions;

_SetVar=PotionsPerRound,3;

_IFInventoryContains=162005003,%Var[PotionsPerRound]; // If has 3 or more of this potion
_SetVar3=162005003; // set item ID as variable 3
#ENDIF

_IFInventoryContains=162005007,%Var[PotionsPerRound];
_SetVar3=162005007; // set item ID as variable 3
#ENDIF

_IFInventoryContains=162000178,%Var[PotionsPerRound];
_SetVar3=162000178; // set item ID as variable 3
#ENDIF

_IFInventoryContains=162000181,%Var[PotionsPerRound];
_SetVar3=162000181; // set item ID as variable 3
#ENDIF

//highest priority potions should be declared as late as possible

#EXECUTE=CombatSort; // call combatsort function so %Var3 gets applied at the _ACPotion line

end_HPPotions;
07/10/2019 21:31 agua2o#2293
Quote:
Originally Posted by Paraly View Post
Code:
start_HPPotions;

_SetVar=PotionsPerRound,3;

_IFInventoryContains=162005003,%Var[PotionsPerRound]; // If has 3 or more of this potion
_SetVar3=162005003; // set item ID as variable 3
#ENDIF

_IFInventoryContains=162005007,%Var[PotionsPerRound];
_SetVar3=162005007; // set item ID as variable 3
#ENDIF

_IFInventoryContains=162000178,%Var[PotionsPerRound];
_SetVar3=162000178; // set item ID as variable 3
#ENDIF

_IFInventoryContains=162000181,%Var[PotionsPerRound];
_SetVar3=162000181; // set item ID as variable 3
#ENDIF

//highest priority potions should be declared as late as possible

#EXECUTE=CombatSort; // call combatsort function so %Var3 gets applied at the _ACPotion line

end_HPPotions;
You are awesome. Now I need to check for the bot's HP, would this IF do it?
Code:
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<65;
#EXECUTE=HPPotions;
#ENDIF
07/10/2019 21:35 Paraly#2294
Quote:
Originally Posted by agua2o View Post
You are awesome. Now I need to check for the bot's HP, would this IF do it?
Code:
_IFMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,<65;
#EXECUTE=HPPotions;
#ENDIF
No I don't think you understood what _ACPotions does, like all other _AC commands it does just declare rules for the AutoCombat system, this means _ACPotions will never actively use a potion when you execute the line, _ACCheckMob=; will use the declared potion during combat


If you want to use the potion with a certain line you need
Code:
UseID=ItemID;
Delay=450;
Your HP check line is correct
07/10/2019 21:43 agua2o#2295
Quote:
Originally Posted by Paraly View Post
No I don't think you understood what _ACPotions does, like all other _AC commands it does just declare rules for the AutoCombat system, this means _ACPotions will never actively use a potion when you execute the line, _ACCheckMob=; will use the declared potion during combat


If you want to use the potion with a certain line you need
Code:
UseID=ItemID;
Delay=450;
Your HP check line is correct
Ok. So all that I need to do is to thrown the HPPotions function in the scritpt and at the end of every round the script will check if I have the potions on my inventory and set Var3 with the ID. Is that it? And the number 3 means what? (not the %Var3, the other number 3)