Documentation

nCastle Wars User Manual

An AFK Castle Wars bot that earns tickets by waiting in games while staying on the upper floor.

Links: TRiBot Store | Discord


Table of Contents


Quick Start

  1. Start anywhere - the script will travel to Castle Wars
  2. Empty your inventory - Castle Wars only allows potions, runes, and combat equipment (no food, no skilling items)
  3. Select your preferred team (or Guthix for random assignment)
  4. Click Start

The script will:

  • Travel to Castle Wars if not already there
  • Hop to a Castle Wars world if needed
  • Bank any prohibited items automatically
  • Enter the waiting room and join games
  • AFK on the upper floor during games to collect tickets

Script Arguments

Load a saved settings profile by passing the profile name as a script argument:

MyProfile

This loads <tribot-folder>/nScripts/nCastle Wars/settings/MyProfile.ini and starts immediately without showing the GUI. Useful for automation and automatically starting scripts on clients.

Additional options:

  • last - Load the most recently used settings
  • Profiles saved to nScripting.com Settings Storage can also be loaded by name

Requirements

No Requirements

Castle Wars has no skill, quest, or level requirements. It is a safe minigame where you will not lose items if you die.

Items

  • Empty inventory recommended - The script will automatically bank prohibited items if needed
  • You may bring combat equipment if desired, but it's not necessary for AFK ticket farming

Prohibited Items

Castle Wars only allows:

  • Potions
  • Runes
  • Combat-related equipment (weapons, armor)

The following are NOT allowed:

  • Food
  • Skilling items
  • Capes and scarves (except the Castle Wars cloak given during games)
  • Dwarf multicannons

Note: If you enter with prohibited items, the script will automatically bank them for you.


How It Works

The script operates in three phases:

1. Enter Portal

  • Travels to Castle Wars lobby if not already there
  • Hops to a Castle Wars world if not on one
  • Banks any prohibited items that would prevent entry
  • Enters the team portal based on your settings

2. Waiting Room

  • Waits for the next game to start (games last 20 minutes, with 5 minute wait between on Castle Wars worlds)
  • If a spot opens in an ongoing game, accepts the prompt to join
  • Performs occasional random actions to prevent logout
  • Moves mouse off-screen to appear AFK

3. In Game

  • Climbs the ladder to the upper floor of the castle
  • AFKs on the upper floor for the duration of the game
  • Performs occasional random actions to prevent logout
  • Returns to waiting room when the game ends

Ticket Collection: Tickets are automatically awarded at the end of each game if you've been in the game for at least 15 minutes.


Settings Reference

Team Selection

Join team

  • Zamorak - Always join the red team
  • Saradomin - Always join the blue team
  • Guthix (default) - Random team assignment; joins whichever team needs players

Note: On dedicated Castle Wars worlds, only Guthix (random assignment) is available.

Behavior

Sleep

  • When enabled: Adds longer random sleeps between actions (30-70 seconds of extra AFK time)
  • When disabled: Uses shorter reaction-time-based delays
  • Recommended: Enable for maximum AFK time and more human-like behavior

Advanced Settings

Standard settings for antiban, stuck failsafe, and other nScript features are available via the Advanced Preferences button.


Rewards

Tickets are earned based on game outcome and whether you're on a Castle Wars world:

Castle Wars Worlds (Recommended)

Outcome Your Team Tickets
Shut-out win (e.g., 1-0) Winner 4
Shut-out win (e.g., 1-0) Loser 2
Regular win (e.g., 2-1) Winner 3
Regular win (e.g., 2-1) Loser 2
Scoreless draw (0-0) Either 2
Draw with points (e.g., 1-1) Either 3

Non-Castle Wars Worlds

Outcome Your Team Tickets
Shut-out win Winner 3
Shut-out win Loser 1
Regular win Winner 2
Regular win Loser 1
Scoreless draw Either 1
Draw with points Either 2

Important: You must be in the game for at least 15 minutes to receive tickets. You also need at least one free inventory slot to receive them.

What Can You Buy?

Tickets can be exchanged with Lanthus in the Castle Wars lobby for:

  • Decorative armor (red, white, gold) - Cosmetic melee armor
  • Decorative magic robes - Cosmetic magic armor
  • Decorative ranged armor - Cosmetic ranged armor
  • Halos - Cosmetic head slot items (Saradomin, Zamorak, Guthix, etc.)
  • Castle wars bracelet storage - Convenience feature

Troubleshooting

"Do not start the script with items you cannot bring into castle wars"

Cause: You started the script with prohibited items in your inventory, and the game rejected your entry attempt.

Fix:

  • Empty your inventory before starting the script
  • The script will attempt to bank prohibited items automatically, but if you receive this error, manually bank everything and restart

Getting Help

If you run into issues not covered in Troubleshooting:

  1. Generate a bug report - In TRiBot: Dev Tab → Generate Bug Report (includes logs, settings, and screenshot)
  2. Post on Discord - Share the zip and describe what happened vs. what you expected at discord.gg/BFtypSSbjp

For issues that are hard to capture in a screenshot, a short screen recording helps.


Tips

  • Use Castle Wars worlds for better ticket rewards (2-4 tickets vs 1-3 tickets per game)

  • Enable the Sleep option for maximum AFK time - the script will wait 30-70 seconds between major actions

  • Guthix team is recommended for faster queue times, as it automatically balances teams

  • Games last 20 minutes with 5-minute breaks between them on Castle Wars worlds. Expect roughly 2-3 games per hour.

  • Safe minigame - You will not lose any items if you die during the game, so don't worry about bringing expensive gear