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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Temetito

Member
Joined
Oct 9, 2014
Messages
56
Hi,

I am fairly new to the bot and programming in general and decided to tweak the CR as a learning experience. I would like to prevent the routine from spamming an ability that has no cooldown. For example Unsteady Miasma (engi support ability). I would like it to cast only once every 6 seconds or so.

I assume its as easy as adding a command to:
Code:
if (SpellController.CanCast("Unsteady Miasma") && Me.InnateResource > 50)
     return "Unsteady Miasma";
But I don't know what the command is.

Is it possible? I appreciate any help or suggestions.

Thanks!
 
This is a little trickier than it seems, unfortunately! Agility internally tracks when a spell was last cast, but it's currently unreliable due to the spamming nature of the Botbase to use it in this way. I've been looking into a better way to handle these, but with the holidays, I may be on a bit of a break. :P

However, there's another way, mind you, it is still not perfect as it takes a while for the DoT to register!

Code:
if (SpellController.CanCast("Unsteady Miasma") && Me.InnateResource > 50 && SpellController.IsTicking("Blunder"))
    return "Unsteady Miasma";

There's a similar issue with the Spellslinger DoT so I am aware of the annoyance these abilities cause. :(
 
Is there a reference list or some other document that lists all these commands that can be used for the bot? Would be very helpful for someone starting to learn this stuff and experimenting. I apologize if there's a post about this already. Looked around and didn't find anything and didn't know how to search for it. :confused:
 
Agility/Controllers/SpellController.cs contains all the methods for SpellController, and referencing Wildbuddy.exe in Visual Studio (or something with an object browser) will let you browse the API.
 
Back
Top