Skip to content

mCodex/nExBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

367 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

nExBot

Version License Lua

Modular Tibia bot for OTClientV8 and OTCR. Auto-detects client at startup.

Quick Start

  1. Copy nExBot/ into your client's bot/ directory
  2. Open client, press Ctrl+B, select nExBot, click Enable
  3. Configure HealBot (healing), TargetBot (creatures), CaveBot (route)

Install paths:

  • vBot: %APPDATA%/OTClientV8/<ServerName>/bot/nExBot
  • OTCR: ~/.local/share/<otcr-data>/<ServerName>/bot/nExBot

Modules

Module Function
HealBot Spell/potion healing at configurable HP thresholds. 75ms response.
AttackBot Attack spell/rune rotation with AoE optimization
CaveBot Waypoint navigation, floor-change safety, supply refills, 50+ pre-built routes
TargetBot 9-stage priority targeting, Monster Insights AI, movement coordination
Hunt Analyzer Session analytics β€” kills/hr, XP/hr, profit, Hunt Score
Containers Event-driven BFS, O(1) operations, generation tracking, quiver management πŸŽ’
Follow Player Party hunt β€” stays near leader while attacking
Extras Anti-RS, alarms, equipment swap, combo system, push max

Architecture

 Loader.lua (entry)
β”œβ”€β”€ ACL (vBot/OTCR detection + adapter)
β”œβ”€β”€ EventBus (event-driven communication)
β”œβ”€β”€ UnifiedTick (single 50ms master timer)
β”œβ”€β”€ UnifiedStorage (per-character JSON persistence)
β”‚
β”œβ”€β”€ Containers πŸŽ’
β”‚   β”œβ”€β”€ identity (physical container identity)
β”‚   β”œβ”€β”€ queue (head/tail FIFO, O(1) dequeue)
β”‚   β”œβ”€β”€ state_machine (13 states, generation tracking)
β”‚   β”œβ”€β”€ registry (O(1) lookups, incremental item index)
β”‚   β”œβ”€β”€ bfs (event-driven traversal)
β”‚   β”œβ”€β”€ scheduler (UnifiedTick integration)
β”‚   β”œβ”€β”€ readiness (derived snapshots)
β”‚   β”œβ”€β”€ quiver (paladin ownership)
β”‚   └── discovery (orchestrator)
β”‚
β”œβ”€β”€ HealBot ←── player:health events
β”‚   └── spell_resolver (conversion functions)
β”œβ”€β”€ AttackBot ←─ TargetBot decisions
β”‚   β”œβ”€β”€ attack_data (pure data tables)
β”‚   └── attack_analytics (recording functions)
β”œβ”€β”€ CaveBot ←─── 250ms waypoint engine
β”œβ”€β”€ TargetBot ←─ creature events + Monster AI
β”‚   β”œβ”€β”€ AttackStateMachine (sole attack issuer)
β”‚   β”œβ”€β”€ Monster Insights (12 AI modules)
β”‚   └── MovementCoordinator (intent voting)
β”‚
└── Hunt Analyzer ←─ passive analytics

Documentation

Guide Description
Installing Installation for vBot and OTCR
HealBot Healing spells, potions, conditions
AttackBot Attack spells, runes, AoE optimization
CaveBot Navigation, waypoints, supply management
TargetBot Combat AI, Monster Insights, movement
Follow Player Party hunt companion
Containers Container management, quiver system
Hunt Analyzer Session analytics
Extras Safety, equipment, utilities
Architecture Technical design
Performance Optimization and tuning
FAQ Troubleshooting

Contributing

See CONTRIBUTING.md. Run make check before submitting. Follow existing Lua style (2-space indentation).

License

MIT License

About

πŸ€– High-performance Tibia bot for OTClientV8 and Opentibiabr's Otclient with smart targeting, cavebot, healing & multi-client support

Topics

Resources

Contributing

Stars

7 stars

Watchers

0 watching

Forks

Contributors

Languages