Table of Contents

Class Hero

Namespace
GrindFest.BotApi
Assembly
GrindFest.dll
public static class Hero
Inheritance
object
Hero

Properties

Party
SelectedHero

Methods

AttackNearestEnemy(int)

Attack the nearest enemy

BuyStat(Stat, int)
DrinkHealthPotion()

Start drinking a health potion if the hero has one

Equip(ItemBehaviour)

Equip an item, picking it up if necessary

FindItemInInventory(string, bool)

Finds an item in the inventory by name

FindNearestEnemy(float)

Returns a list of nearby enemies

FindNearestItem(string, string, string, float)

Finds the nearest item on the ground that matches the specified name criteria.

Follow(GameObject, float)
FollowCursorAndAttack()

Makes your hero follow your mouse cursor and attack nearest enemies in a way

FollowFlags(Color)

Follow the flags of a certain color

GetRandomPointInArea()
GoTo(Vector3, float)
GoToAnd(Vector3, float, Func<bool>)
GoToAndAttack(Vector3, float)
GoToArea(string)
HasHealthPotion()
HasManaPotion()
HealthPotionCount()
LookAt(InteractiveBehaviour)
OpenInventory()
PickUp(ItemBehaviour)

Pick up an item, moving to it if necessary

ResetFlags()
RunAroundInArea()

Makes the hero run around randomly within the current area.

RunAroundInAreaAndAttack()

Makes your hero run around and attack enemies in the area

RunAwayFromNearestEnemy(float)
RunInDirection(Direction)
Say(string)
SayTo(string, Transform)

Say something

StopRunningAround()