What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Question about the CombatRoutine.

hansmeier

Member
Joined
Jul 12, 2014
Messages
158
Reaction score
0
What would I have to change, so it fires Frenzy until I have x (max) charges and fire lightning bolts after.
 
ExampleRoutine is not setup in a manner where you can control logic like that as it was in the old Exile.cs. With Exile, there were a lot of complaints about the lack of a GUI and making it easier to setup for basic skill using, so it was changed. In the new version, you lose the ability for being able to edit in new logic more easily, but if you're into coding, you don't need that because you'll be able to just take parts of the code you want instead and put into your own custom routine.

The more ideal solution, which isn't a possibility right now in terms of our development, but is for users, would be something along the middle, except rather than code in logic codnitions in C#, like Exile.cs, you'd do it via Python, and still be able to have a GUI (like ExampleRoutine) where users could configure and change things without having to re-code the CR itself. The profile systems we use in the other bots do something similar, so taking that concept and applying it to the logic aspect of CRs, while not trying to make a CR a profile, might offer the perfect balance.
 
heyas,

luckily for you, the community is awesome ^_^
that offsets any coding retardation


threw together something for ya. It uses frenzy in the following conditions:

1. you already have frenzy charges, but the duration is 2 seconds or less (to keep the stack refreshed)

2. there is only one monster left in combat range. This is to keep the duration refreshed when killing the last monster, so the stack is more likely to still be there by the time you reach the next mob pack. Only downside I can see is it will cast frenzy repeatedly when just one mob (such as a boss fights)
If you want that criteria removed, delete the line
(Utility.NumberOfMobsNear(LokiPoe.Me, 70) == 1) || //refresh frenzy stacks if 1 mob left, to keep duration high for next pack. effectively makes frenzy only single target skill usable
from ExampleRoutine.cs, edit with notepad or something

3. you have no frenzy charges, and there are mobs in combat range

4. you are not at max frenzy charges, and there are mobs in combat range


you will need frenzy on one of your skill slots (any slot is fine)

I only did very quick testing of like a minute with a bow, and a minute with a melee weapon (to check it wasn't running to melee range with a bow to refresh frenzy etc)
seems to be working as intended, but hard to say with such minimal testing

so use at your own risk. I take no responsibility for any deaths etc caused by idiocy in my code :)

let me know of any problems with it, and if you would like the frenzy conditions changed


Thanks!
 

Attachments

That's actually perfect :D

I wanted Frenzy as Single Target :D

Thanks a bunch mate!
 
Back
Top