Complete Scripting Reference
VSwitcher Scripting Guide
Your comprehensive guide to OSRS automation with VSwitcher. Learn the API, explore examples, and build your first script.
Get Started21API Categories
166+Methods
166Code Examples
Everything You Need
From your first script to advanced automation
Complete API Reference
Every method across 21 categories — inventory, combat, banking, walking, NPCs, and more. All documented with syntax and parameters.
Copy-Paste Examples
Every single method includes working Java code examples you can copy directly into your scripts. No guesswork.
Beginner Friendly
New to VSwitcher? Our Getting Started guide walks you through setup, your first script, and core concepts step by step.
API Categories
Browse all 21 categories
CORECore functionality and essential methods for VSwitcher automation.8 methodsINVENTORYHandles the player's inventory items, including item management and interactions.10 methodsEQUIPMENTHandles the player's equipment and worn items.4 methodsPRAYERManages the player's prayer abilities and overhead prayers.8 methodsBANKHandles the player's bank actions including deposits, withdrawals, and bank management.12 methodsCOMBATHandles combat actions and checks.9 methodsNPCHandles NPC interactions including combat, dialogue, and trading.7 methodsWALKINGHandles walking and movement functions for navigation.9 methodsTILE OBJECTSHandles interactions with tile objects like trees, rocks, doors, and other game objects.7 methodsVARIABLESStores and retrieves custom variables for script state management and data persistence.10 methodsGAME STATEHandles general game state actions including world management, chat, and system information.10 methodsWIDGETSHandles widget interactions for UI elements, interfaces, and game components.6 methodsDIALOGHandles dialogue window interactions including NPC conversations and option selection.8 methodsTILE ITEMSHandles interactions with items on the ground including picking up, counting, and searching.7 methodsGENERALGeneral control functions for automation including script management and trigger control.6 methodsLOCAL PLAYERHandles functions related to the local player including animations and player state.1 methodsVARBITSHandles retrieval of varbit values for game state information and quest progress.2 methodsCALLBACKHandles function callbacks for timed actions and delayed execution.1 methodsGRAND EXCHANGEHandles Grand Exchange trading operations including buying, selling, and offer management.16 methodsTRADEHandles player-to-player trading operations including trade requests, offers, and trade management.15 methodsPLAYERHandles player search and interaction functionality for finding and interacting with other players.10 methods