Versions in this module Expand all Collapse all v1 v1.0.8 Aug 16, 2026 v1.0.7 Aug 16, 2026 Changes in this version + type BotAPI interface + AttackTarget func(guid uint64) error + CanCast func(spellID uint32, targetGUID uint64) bool + CastSpell func(spellID uint32, targetGUID uint64) error + ConsumeTeleport func() bool + FaceTarget func(guid uint64) bool + GetClass func() uint8 + GetFacing func() float32 + GetHealth func() (current, max uint32) + GetLevel func() uint32 + GetNearbyPlayers func(maxDist float32) []UnitInfo + GetNearbyUnits func(maxDist float32) []UnitInfo + GetOwnGUID func() uint64 + GetPetGUID func() uint64 + GetPosition func() (x, y, z, o float32) + GetPower func() (current, max uint32) + GetPowerType func() uint8 + GetStance func() int + GetTargetGUID func() uint64 + GetUnitInfo func(guid uint64) *UnitInfo + HasAuraOn func(guid uint64, spellID uint32) bool + InCombat func() bool + IsAlive func() bool + IsBehindTarget func(targetGUID uint64) bool + IsMoving func() bool + IsSpellReady func(spellID uint32) bool + Log func(format string, args ...interface{}) + Loot func(guid uint64) error + LootAll func(guid uint64) error + MoveTo func(x, y, z float32) error + PetAttack func(target uint64) + SendChat func(message string) error + SendCommand func(command string) error + SendGuildCommand func(command string) error + SetFacing func(o float32) error + SetLevel func(level uint32) + SetSheathed func(state uint32) error + SetTarget func(guid uint64) error + StopAttack func() error + StopMoving func() error + ValidationMode func() bool + type Engine struct + func NewEngine(bot BotAPI) *Engine + func (e *Engine) CallFunction(name string) error + func (e *Engine) CallFunctionIfExists(name string) error + func (e *Engine) CallTick() bool + func (e *Engine) Close() + func (e *Engine) DoFile(path string) error + func (e *Engine) DoString(code string) error + func (e *Engine) Reload(scriptPath string) error + func (e *Engine) SetTable(name string, data map[string]any) + func (e *Engine) SetTickFunc(name string) + type UnitInfo struct + Distance float32 + DynFlags uint32 + Entry uint32 + Faction uint32 + Flags uint32 + GUID uint64 + Health uint32 + IsAlive bool + IsPlayer bool + Level uint32 + Lootable bool + MaxHealth uint32 + NPCFlags uint32 + Name string + PosX float32 + PosY float32 + PosZ float32