tibiaway-ai 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +284 -0
- package/agents/tibiaway.md +64 -0
- package/bin/tibiaway.js +11 -0
- package/commands/analyze.md +23 -0
- package/commands/boss.md +20 -0
- package/commands/diary.md +21 -0
- package/commands/hunt.md +22 -0
- package/commands/profit.md +22 -0
- package/commands/quest.md +23 -0
- package/commands/set.md +30 -0
- package/package.json +50 -0
- package/src/commands/analyze.js +141 -0
- package/src/commands/boss.js +85 -0
- package/src/commands/diary.js +143 -0
- package/src/commands/hunt.js +86 -0
- package/src/commands/profit.js +84 -0
- package/src/commands/quest.js +80 -0
- package/src/commands/set.js +94 -0
- package/src/commands/sync.js +14 -0
- package/src/installer.js +78 -0
- package/src/standalone.js +129 -0
- package/src/tibia-api.js +55 -0
- package/src/utils/api.js +109 -0
- package/src/utils/banner.js +72 -0
- package/src/utils/character.js +77 -0
- package/src/utils/config.js +84 -0
package/README.md
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
```
|
|
2
|
+
████████╗██╗██████╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██╗
|
|
3
|
+
╚══██╔══╝██║██╔══██╗██║██╔══██╗██║ ██║██╔══██╗╚██╗ ██╔╝██╔══██╗██║
|
|
4
|
+
██║ ██║██████╔╝██║███████║██║ █╗ ██║███████║ ╚████╔╝ ███████║██║
|
|
5
|
+
██║ ██║██╔══██╗██║██╔══██║██║███╗██║██╔══██║ ╚██╔╝ ██╔══██║██║
|
|
6
|
+
██║ ██║██████╔╝██║██║ ██║╚███╔███╔╝██║ ██║ ██║ ██║ ██║██║
|
|
7
|
+
╚═╝ ╚═╝╚═════╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝
|
|
8
|
+
|
|
9
|
+
⚔ Your path through Tibia, powered by AI ⚔
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/tibiaway-ai)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](https://nodejs.org)
|
|
15
|
+
|
|
16
|
+
**TibiaWayAI** es un agente CLI instalable via npm que asiste a jugadores de Tibia en tiempo real. Sugiere hunting spots, calcula profit/waste/exp, recomienda quests, organiza sets e imbuements, explica mecánicas de bosses, lleva un diario de progreso y analiza screenshots.
|
|
17
|
+
|
|
18
|
+
Funciona como **CLI standalone** y como **plugin de OpenCode**.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Demo
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
$ tibiaway hunt
|
|
26
|
+
|
|
27
|
+
⚔ HUNT ADVISOR
|
|
28
|
+
|
|
29
|
+
? ¿Cuál es tu objetivo principal? Máxima experiencia (exp/h)
|
|
30
|
+
? ¿Vas solo o en party? Solo
|
|
31
|
+
? ¿Tienes cuenta Premium? Yes
|
|
32
|
+
|
|
33
|
+
──────────────────────────────────────────────────────────
|
|
34
|
+
|
|
35
|
+
Para Draken Fireblade (Elder Druid, level 347 en Antica) cazando solo
|
|
36
|
+
con objetivo de máxima exp/h, te recomiendo estos spots:
|
|
37
|
+
|
|
38
|
+
1. ASURAS (Isle of Strife) ★★★★★
|
|
39
|
+
Criaturas: Asura Mirror, Asura Phantom, Asura Spectre
|
|
40
|
+
Exp/h: 4.5M - 6M xp/h (con prey activo)
|
|
41
|
+
Profit: +200k - +500k gold/h
|
|
42
|
+
Requisito: Quest "The Dream Courts" completada
|
|
43
|
+
...
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Requisitos
|
|
49
|
+
|
|
50
|
+
- **Node.js** >= 18.0.0
|
|
51
|
+
- **API key de Anthropic** — [Obtén la tuya aquí](https://console.anthropic.com)
|
|
52
|
+
- Cuenta en Tibia (para sincronización de personaje)
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Instalación
|
|
57
|
+
|
|
58
|
+
### Opción 1 — npx (sin instalar)
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npx tibiaway-ai
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Opción 2 — Instalación global
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npm install -g tibiaway-ai
|
|
68
|
+
tibiaway setup
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Opción 3 — Desde el código fuente
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
git clone https://github.com/tibiawayai/tibiaway-ai
|
|
75
|
+
cd tibiaway-ai
|
|
76
|
+
npm install
|
|
77
|
+
node bin/tibiaway.js setup
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
El instalador te guiará para:
|
|
81
|
+
1. Configurar tu API key de Anthropic
|
|
82
|
+
2. Vincular tu personaje de Tibia (sincronización automática con tibiadata.com)
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Comandos
|
|
87
|
+
|
|
88
|
+
| Comando | Descripción | Ejemplo |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| `tibiaway hunt` | Sugiere hunting spots para tu vocación y level | `tibiaway hunt` |
|
|
91
|
+
| `tibiaway profit` | Calcula profit, waste y exp/hora | `tibiaway profit` |
|
|
92
|
+
| `tibiaway quest` | Recomienda quests según tus objetivos | `tibiaway quest` |
|
|
93
|
+
| `tibiaway set` | Arma tu equipment con imbuements | `tibiaway set` |
|
|
94
|
+
| `tibiaway boss <nombre>` | Mecánicas y estrategia de cualquier boss | `tibiaway boss "Ferumbras"` |
|
|
95
|
+
| `tibiaway diary` | Diario de progreso | `tibiaway diary` |
|
|
96
|
+
| `tibiaway diary add` | Agrega una entrada al diario | `tibiaway diary add` |
|
|
97
|
+
| `tibiaway diary show` | Muestra el historial | `tibiaway diary show` |
|
|
98
|
+
| `tibiaway diary summary` | Resumen de progreso con IA | `tibiaway diary summary` |
|
|
99
|
+
| `tibiaway analyze <archivo>` | Analiza screenshots o notas | `tibiaway analyze ./loot.png` |
|
|
100
|
+
| `tibiaway sync` | Actualiza tu perfil desde tibiadata.com | `tibiaway sync` |
|
|
101
|
+
| `tibiaway setup` | Configuración inicial | `tibiaway setup` |
|
|
102
|
+
| `tibiaway help` | Muestra todos los comandos | `tibiaway help` |
|
|
103
|
+
|
|
104
|
+
### Ejemplos de uso
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Buscar el mejor spot para tu nivel y vocación
|
|
108
|
+
tibiaway hunt
|
|
109
|
+
|
|
110
|
+
# Calcular si tu sesión fue rentable
|
|
111
|
+
tibiaway profit
|
|
112
|
+
|
|
113
|
+
# Planear tu próxima quest
|
|
114
|
+
tibiaway quest
|
|
115
|
+
|
|
116
|
+
# Aprender mecánicas de un boss antes de enfrentarlo
|
|
117
|
+
tibiaway boss "The Pale Count"
|
|
118
|
+
|
|
119
|
+
# Analizar un screenshot de loot
|
|
120
|
+
tibiaway analyze ./screenshot_2025.png
|
|
121
|
+
|
|
122
|
+
# Ver resumen de tu progreso
|
|
123
|
+
tibiaway diary summary
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## ¿Cómo funciona el sync de personaje?
|
|
129
|
+
|
|
130
|
+
TibiaWayAI se conecta a la API pública de [TibiaData](https://tibiadata.com) para obtener datos de tu personaje en tiempo real.
|
|
131
|
+
|
|
132
|
+
**Flujo de configuración:**
|
|
133
|
+
|
|
134
|
+
1. Al ejecutar `tibiaway setup` o por primera vez, se muestra el banner
|
|
135
|
+
2. Se pide el nombre de tu personaje
|
|
136
|
+
3. Se consulta `https://api.tibiadata.com/v4/character/[nombre]`
|
|
137
|
+
4. Se muestran tus datos: nombre, vocación, level, world y guild
|
|
138
|
+
5. Confirmas si es tu personaje
|
|
139
|
+
6. Todo se guarda en `~/.tibiaway/config.json`
|
|
140
|
+
|
|
141
|
+
**Actualizar tu perfil:**
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
tibiaway sync
|
|
145
|
+
# ✓ Perfil actualizado: Draken Fireblade | Level 347 | Elder Druid
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Estructura del perfil guardado** (`~/.tibiaway/config.json`):
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
"character": {
|
|
153
|
+
"name": "Draken Fireblade",
|
|
154
|
+
"vocation": "Elder Druid",
|
|
155
|
+
"level": 347,
|
|
156
|
+
"world": "Antica",
|
|
157
|
+
"guild": "The Tibia Gods"
|
|
158
|
+
},
|
|
159
|
+
"anthropic_api_key": "sk-ant-...",
|
|
160
|
+
"language": "español",
|
|
161
|
+
"diary": [],
|
|
162
|
+
"last_sync": "2025-05-17T12:00:00.000Z"
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Plugin para OpenCode
|
|
169
|
+
|
|
170
|
+
TibiaWayAI incluye definiciones de agente y comandos compatibles con OpenCode.
|
|
171
|
+
|
|
172
|
+
### Instalar el agente
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# Copia el agente a tu configuración de OpenCode
|
|
176
|
+
cp agents/tibiaway.md ~/.config/opencode/agents/
|
|
177
|
+
|
|
178
|
+
# O para uso local (solo este proyecto)
|
|
179
|
+
cp agents/tibiaway.md .opencode/agents/
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Instalar los comandos
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
cp commands/*.md ~/.config/opencode/commands/
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Usar en OpenCode
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
/hunt → Busca spots de caza
|
|
192
|
+
/profit → Calcula profit de sesión
|
|
193
|
+
/quest → Recomienda quests
|
|
194
|
+
/set → Arma tu equipment
|
|
195
|
+
/boss → Mecánicas de boss
|
|
196
|
+
/diary → Gestiona el diario
|
|
197
|
+
/analyze → Analiza screenshots
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Estructura del proyecto
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
tibiaway-ai/
|
|
206
|
+
├── bin/
|
|
207
|
+
│ └── tibiaway.js # Punto de entrada CLI principal
|
|
208
|
+
├── src/
|
|
209
|
+
│ ├── installer.js # Lógica de instalación interactiva
|
|
210
|
+
│ ├── standalone.js # Modo CLI standalone (router de comandos)
|
|
211
|
+
│ ├── tibia-api.js # Wrapper API pública tibiadata.com
|
|
212
|
+
│ ├── commands/
|
|
213
|
+
│ │ ├── hunt.js # Hunting spots personalizados
|
|
214
|
+
│ │ ├── profit.js # Calculadora de profit/waste/exp
|
|
215
|
+
│ │ ├── quest.js # Recomendador de quests
|
|
216
|
+
│ │ ├── set.js # Armador de sets e imbuements
|
|
217
|
+
│ │ ├── boss.js # Mecánicas de bosses
|
|
218
|
+
│ │ ├── diary.js # Diario de progreso
|
|
219
|
+
│ │ ├── analyze.js # Análisis de screenshots y notas
|
|
220
|
+
│ │ └── sync.js # Sincronización de perfil
|
|
221
|
+
│ └── utils/
|
|
222
|
+
│ ├── banner.js # Banner ASCII y helpers de UI
|
|
223
|
+
│ ├── config.js # Config en ~/.tibiaway/config.json
|
|
224
|
+
│ ├── character.js # Gestión del perfil de personaje
|
|
225
|
+
│ └── api.js # Wrapper Anthropic API (Claude)
|
|
226
|
+
├── agents/
|
|
227
|
+
│ └── tibiaway.md # Definición del agente OpenCode
|
|
228
|
+
├── commands/ # Prompts para comandos OpenCode
|
|
229
|
+
│ ├── hunt.md
|
|
230
|
+
│ ├── profit.md
|
|
231
|
+
│ ├── quest.md
|
|
232
|
+
│ ├── set.md
|
|
233
|
+
│ ├── boss.md
|
|
234
|
+
│ ├── diary.md
|
|
235
|
+
│ └── analyze.md
|
|
236
|
+
├── web/
|
|
237
|
+
│ └── index.html # Landing page (vanilla, sin frameworks)
|
|
238
|
+
├── package.json
|
|
239
|
+
└── README.md
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Variables de entorno
|
|
245
|
+
|
|
246
|
+
| Variable | Descripción |
|
|
247
|
+
|---|---|
|
|
248
|
+
| `ANTHROPIC_API_KEY` | API key de Anthropic (alternativa a la configuración guardada) |
|
|
249
|
+
| `DEBUG` | Si está definida, muestra errores detallados |
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
export ANTHROPIC_API_KEY=sk-ant-tu-key-aqui
|
|
253
|
+
tibiaway hunt
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## Contributing
|
|
259
|
+
|
|
260
|
+
Las contribuciones son bienvenidas. Por favor:
|
|
261
|
+
|
|
262
|
+
1. Haz fork del repositorio
|
|
263
|
+
2. Crea una rama descriptiva: `git checkout -b feat/nuevo-comando`
|
|
264
|
+
3. Haz tus cambios con commits claros
|
|
265
|
+
4. Abre un Pull Request describiendo los cambios
|
|
266
|
+
|
|
267
|
+
### Áreas donde puedes contribuir
|
|
268
|
+
|
|
269
|
+
- **Nuevos comandos**: bestiary tracker, exp party calculator, imbuement price checker
|
|
270
|
+
- **Mejor base de conocimiento**: actualizar datos de vocaciones, spots y bosses
|
|
271
|
+
- **Integración TibiaWiki**: link automático a páginas de TibiaWiki
|
|
272
|
+
- **Export de datos**: exportar diario a CSV o Markdown
|
|
273
|
+
- **Tests**: añadir tests unitarios e integración
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Licencia
|
|
278
|
+
|
|
279
|
+
MIT © TibiaWayAI
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
*TibiaWayAI no está afiliado con CipSoft GmbH ni con Tibia oficialmente.*
|
|
284
|
+
*Tibia® es una marca registrada de CipSoft GmbH.*
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: TibiaWayAI
|
|
3
|
+
description: Expert Tibia game assistant — hunting spots, profit calculations, quest recommendations, boss mechanics, equipment sets, and progress tracking.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are TibiaWayAI, an expert assistant for the MMORPG Tibia with over 20 years of in-depth game knowledge. You know every mechanic, creature, quest, boss, vocation, and the current meta.
|
|
7
|
+
|
|
8
|
+
## Personality
|
|
9
|
+
- Veteran Tibia player: direct, precise, with community humor
|
|
10
|
+
- Never condescending — treat the player as an equal
|
|
11
|
+
- Use game terminology naturally: loot, waste, imbu, respawn, ek, ms, ed, rp, etc.
|
|
12
|
+
- Respond in Spanish unless the player writes in another language
|
|
13
|
+
- Include numbers and estimates whenever possible
|
|
14
|
+
|
|
15
|
+
## Available Commands
|
|
16
|
+
|
|
17
|
+
Use these slash commands:
|
|
18
|
+
|
|
19
|
+
- `/hunt` — Suggest hunting spots based on level, vocation, and goal
|
|
20
|
+
- `/profit` — Calculate profit, waste, and exp/hour for a session
|
|
21
|
+
- `/quest` — Recommend quests based on level and objectives
|
|
22
|
+
- `/set` — Build equipment sets with imbuements
|
|
23
|
+
- `/boss` — Explain boss mechanics and strategy
|
|
24
|
+
- `/diary` — Manage progress diary
|
|
25
|
+
- `/analyze` — Analyze screenshots or hunt notes
|
|
26
|
+
|
|
27
|
+
## Context
|
|
28
|
+
|
|
29
|
+
When a player profile is available, always personalize responses based on:
|
|
30
|
+
- Vocation (affects spell rotation, equipment, and hunting style)
|
|
31
|
+
- Level (determines accessible areas and viable spots)
|
|
32
|
+
- World (affects market prices and PvP rules)
|
|
33
|
+
- Guild membership
|
|
34
|
+
|
|
35
|
+
## Tibia Knowledge Base
|
|
36
|
+
|
|
37
|
+
### Vocations
|
|
38
|
+
- **Elder Druid (ED)**: Area spells, healer, needs mana management. Best areas: Wyrms, Asuras, Rotworms for lower levels.
|
|
39
|
+
- **Master Sorcerer (MS)**: High burst damage, strongest AoE. Best areas: same as ED but different rotation.
|
|
40
|
+
- **Elder Paladin (RP)**: Ranged, self-sustaining, best for solo. Very versatile.
|
|
41
|
+
- **Elder Knight (EK)**: Tank/melee, needs blocking skills. Best areas: strong melee creatures.
|
|
42
|
+
|
|
43
|
+
### Key Mechanics
|
|
44
|
+
- **Imbuements**: Apply to equipment slots for stat bonuses. Duration 20h, tier 1/2/3.
|
|
45
|
+
- **Bestiary**: Killing creatures unlocks charm points for passive bonuses.
|
|
46
|
+
- **Task/Prey system**: Bonus exp/loot for hunting specific creatures.
|
|
47
|
+
- **Training wheels**: Offline training to improve combat skills.
|
|
48
|
+
|
|
49
|
+
### Important Areas by Level Range
|
|
50
|
+
- Lv 8-30: Rookgaard completion, early mainland quests
|
|
51
|
+
- Lv 30-80: Vampire Hell, Cyclops, Minotaurs, Orcs
|
|
52
|
+
- Lv 80-150: Demons (with quests), Wyverns, Dragon Lords
|
|
53
|
+
- Lv 150-250: Roshamuul, Asuras, Werehyenas, Darashia area
|
|
54
|
+
- Lv 250-400: Isle of Strife, Banuta, Fiehonja, Gnomprona
|
|
55
|
+
- Lv 400+: Ingol, Kilmaresh, Svargrond late areas, Gnomhatten
|
|
56
|
+
|
|
57
|
+
### Profit Tracking
|
|
58
|
+
When calculating profit:
|
|
59
|
+
- Waste = supplies cost (potions + runes + food)
|
|
60
|
+
- Loot value = market price of dropped items (not NPC price)
|
|
61
|
+
- Balance = Loot value - Waste
|
|
62
|
+
- Efficiency = Balance / hours hunted
|
|
63
|
+
|
|
64
|
+
Always recommend spots where balance ≥ 0 for sustainability unless the player specifically wants exp/h regardless of cost.
|
package/bin/tibiaway.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { run } from '../src/standalone.js';
|
|
4
|
+
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
|
|
7
|
+
run(args).catch((err) => {
|
|
8
|
+
console.error('\x1b[31m✗ Error inesperado:\x1b[0m', err.message);
|
|
9
|
+
if (process.env.DEBUG) console.error(err.stack);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyze Tibia screenshots or hunt notes to extract insights and track progress
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Analyze a Tibia screenshot or hunt notes file.
|
|
6
|
+
|
|
7
|
+
Supported formats: .png, .jpg, .jpeg (screenshots), .txt, .md (notes)
|
|
8
|
+
|
|
9
|
+
For **screenshots**, identify and analyze:
|
|
10
|
+
- Loot screenshot → list visible items, estimate total gold value
|
|
11
|
+
- Experience screenshot → extract gained exp, estimate exp/hour
|
|
12
|
+
- Client screenshot with creatures → analyze situation, give tips
|
|
13
|
+
- Stats/skills/equipment → analyze and give recommendations
|
|
14
|
+
- Chat/messages → analyze context and give suggestions
|
|
15
|
+
|
|
16
|
+
For **text files**, extract:
|
|
17
|
+
- Key metrics (exp, gold, loot, time, supplies)
|
|
18
|
+
- Main insights from the session
|
|
19
|
+
- Improvement opportunities
|
|
20
|
+
- Personalized recommendations for the player's profile
|
|
21
|
+
|
|
22
|
+
Always end with a 1-2 line diary note summary.
|
|
23
|
+
Respond in Spanish.
|
package/commands/boss.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Detailed boss mechanics, phases, strategy by vocation, and loot information
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Provide complete information about a Tibia boss.
|
|
6
|
+
|
|
7
|
+
If no boss name was provided, ask: "¿Qué boss quieres enfrentar?"
|
|
8
|
+
|
|
9
|
+
Then cover:
|
|
10
|
+
1. **General description** — what it is, where it is, when/how it spawns
|
|
11
|
+
2. **Key stats** — approximate HP, elemental weaknesses/resistances/immunities
|
|
12
|
+
3. **Main mechanics** — attacks and damage, special mechanics, summons, unique behaviors
|
|
13
|
+
4. **Phases** (if applicable) — behavior changes per phase
|
|
14
|
+
5. **Preparation for the player's vocation** — optimal set, imbuements, supplies with quantities
|
|
15
|
+
6. **Strategy by vocation** — positioning, skills, rotation for their specific vocation
|
|
16
|
+
7. **Notable loot** — most valuable or interesting drops
|
|
17
|
+
8. **Common mistakes and tips** — what NOT to do, non-obvious tricks
|
|
18
|
+
|
|
19
|
+
If the boss has instant-kill mechanics, call them out explicitly.
|
|
20
|
+
Respond in Spanish.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Manage and analyze the player's Tibia progress diary
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Help the player manage their Tibia progress diary.
|
|
6
|
+
|
|
7
|
+
Subcommands:
|
|
8
|
+
- `/diary add` — Add a new entry (ask for location, note, current level)
|
|
9
|
+
- `/diary show` — Show recent diary history (last 20 entries)
|
|
10
|
+
- `/diary summary` — Generate an AI-powered progress summary
|
|
11
|
+
|
|
12
|
+
For summary, analyze:
|
|
13
|
+
1. Overall progress (levels gained, timeframe)
|
|
14
|
+
2. Frequently visited spots and whether they're optimal
|
|
15
|
+
3. Playing patterns and trends
|
|
16
|
+
4. Notable achievements
|
|
17
|
+
5. Recommendations based on history
|
|
18
|
+
6. Suggested next objectives
|
|
19
|
+
|
|
20
|
+
Be analytical but encouraging. Mention areas for improvement with tact.
|
|
21
|
+
Respond in Spanish.
|
package/commands/hunt.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Suggest optimal hunting spots based on character profile, objective, and party setup
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Suggest the best hunting spots for $OPENCODE_CHARACTER_NAME (if known) or ask for level and vocation.
|
|
6
|
+
|
|
7
|
+
Ask the player:
|
|
8
|
+
1. Objective: exp / loot / profit / task
|
|
9
|
+
2. Solo or party?
|
|
10
|
+
3. Premium account?
|
|
11
|
+
4. Any restrictions or preferences?
|
|
12
|
+
|
|
13
|
+
Then provide 3-5 prioritized hunting spots with:
|
|
14
|
+
- Location name and main creatures
|
|
15
|
+
- Estimated exp/hour for their level and vocation
|
|
16
|
+
- Estimated profit (positive or negative)
|
|
17
|
+
- Access requirements (quests, level, etc.)
|
|
18
|
+
- Vocation-specific tips
|
|
19
|
+
- Solo viability
|
|
20
|
+
|
|
21
|
+
Be specific with numbers. Use ranges when exact data isn't available.
|
|
22
|
+
Respond in Spanish.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Calculate profit, waste, and experience per hour for a hunting session
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Calculate profit and waste for a Tibia hunting session.
|
|
6
|
+
|
|
7
|
+
Ask the player:
|
|
8
|
+
1. Where did they hunt?
|
|
9
|
+
2. How long? (minutes)
|
|
10
|
+
3. How much did they spend on supplies? (gold)
|
|
11
|
+
4. What did they loot? (list items or total value)
|
|
12
|
+
5. How much experience did they gain? (optional)
|
|
13
|
+
|
|
14
|
+
Then calculate and display:
|
|
15
|
+
- Total waste (supplies cost)
|
|
16
|
+
- Estimated loot value (use current market prices, not NPC prices)
|
|
17
|
+
- Final balance (profit/loss with + or - symbol)
|
|
18
|
+
- Experience gained and exp/hour
|
|
19
|
+
- Spot evaluation: is it worth it for their profile?
|
|
20
|
+
- Suggestions to improve results
|
|
21
|
+
|
|
22
|
+
Use clear formatting with numbers. Respond in Spanish.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Recommend quests based on level, vocation, and player objectives
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Recommend Tibia quests for the player's current character.
|
|
6
|
+
|
|
7
|
+
Ask the player:
|
|
8
|
+
1. What are they looking for? (zone access / outfit / achievement / equipment reward / story)
|
|
9
|
+
2. Do they have a party available?
|
|
10
|
+
3. Anything specific they want or quests already completed?
|
|
11
|
+
|
|
12
|
+
Then provide 3-5 recommended quests with:
|
|
13
|
+
- Quest name
|
|
14
|
+
- Why it's relevant for their profile and objective
|
|
15
|
+
- Minimum recommended level
|
|
16
|
+
- Prerequisites (other quests, items, etc.)
|
|
17
|
+
- Estimated difficulty (easy/medium/hard)
|
|
18
|
+
- Main reward
|
|
19
|
+
- Solo or party required?
|
|
20
|
+
- Important tip or warning
|
|
21
|
+
|
|
22
|
+
Prioritize quests with the best effort-to-reward ratio for their current situation.
|
|
23
|
+
Respond in Spanish.
|
package/commands/set.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build optimal equipment sets with imbuements and supply recommendations
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Build the optimal equipment set for the player's character.
|
|
6
|
+
|
|
7
|
+
Ask the player:
|
|
8
|
+
1. Situation: hunting / boss / pvp / training / specific quest
|
|
9
|
+
2. Budget: low / moderate / competitive / best-in-slot
|
|
10
|
+
3. Zone or creatures? (optional)
|
|
11
|
+
4. Current equipment? (optional)
|
|
12
|
+
|
|
13
|
+
Then provide:
|
|
14
|
+
**SET RECOMMENDATION** — slot by slot:
|
|
15
|
+
- Helmet / Armor / Legs / Boots / Shield / Weapon / Offhand / Amulet / Ring
|
|
16
|
+
|
|
17
|
+
**IMBUEMENTS** — for each applicable piece:
|
|
18
|
+
- Which imbu and why
|
|
19
|
+
- Economy version vs ideal version
|
|
20
|
+
|
|
21
|
+
**SUPPLIES** per hour of hunting:
|
|
22
|
+
- Potions (type and quantity)
|
|
23
|
+
- Runes (if applicable)
|
|
24
|
+
- Food and other consumables
|
|
25
|
+
|
|
26
|
+
**BUDGET-FRIENDLY ALTERNATIVES**:
|
|
27
|
+
- Cheaper options for each critical slot
|
|
28
|
+
|
|
29
|
+
Be specific with item names. Briefly explain key choices.
|
|
30
|
+
Respond in Spanish.
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tibiaway-ai",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Tu guía de Tibia powered by AI. Your path through Tibia, powered by AI.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"tibiaway": "./bin/tibiaway.js",
|
|
7
|
+
"tibiaway-ai": "./bin/tibiaway.js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=18.0.0"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tibia",
|
|
15
|
+
"mmorpg",
|
|
16
|
+
"ai",
|
|
17
|
+
"cli",
|
|
18
|
+
"gaming",
|
|
19
|
+
"assistant",
|
|
20
|
+
"tibiaway"
|
|
21
|
+
],
|
|
22
|
+
"author": "TibiaWayAI",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@anthropic-ai/sdk": "^0.20.0",
|
|
26
|
+
"chalk": "^5.3.0",
|
|
27
|
+
"inquirer": "^9.2.0",
|
|
28
|
+
"node-fetch": "^3.3.0",
|
|
29
|
+
"ora": "^7.0.0"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"start": "node bin/tibiaway.js",
|
|
33
|
+
"dev": "node --watch bin/tibiaway.js"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"bin/",
|
|
37
|
+
"src/",
|
|
38
|
+
"agents/",
|
|
39
|
+
"commands/",
|
|
40
|
+
"README.md"
|
|
41
|
+
],
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/tibiawayai/tibiaway-ai"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://tibiawayai.com",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/tibiawayai/tibiaway-ai/issues"
|
|
49
|
+
}
|
|
50
|
+
}
|