/** Constants **/
NEW: int[] Bankers - Array containing the ID's of all types of
bankers
NEW: int[] Bones - Array containing the ID's of all types of bones
NEW: String[] Spells - Array containing the Name's of all spells
/** Server Functions **/
boolean ChangeWorld(int i) - Changes to the given world
int GetWorld() - returns the world your currently on
boolean LoggedIn() - returns true if your logged in
void LogOut() - Logs you out if possible (10sec rule still applies)
void AutoLogin(boolean on) - true to enable, false to disable
boolean IsAutoLogin() - return true is AutoLogin is enabled, false if it isn't
void Login(String user, String pass) - tries to login with the given user and
pass
void HopServer() - hops to the next server
/** Npc Functions **/
int CountNpcs() - returns the amount of NPCs near you
int[] GetNpcById(int id) - returns the npc's index, x-coord and y-coord as an
array, ignores npc's that are in combat
int[] GetNpcById(int[] id) - returns the npc's index, x-coord and y-coord as an
array, ignores npc's that are in combat
int[] GetAllNpcById(int id) - returns the npc's index, x-coord and y-coord as an
array, including ones in combat
int[] GetAllNpcById(int[] id) - returns the npc's index, x-coord and y-coord as
an array, including ones in combat
boolean NpcAttackable(int id) - returns true if the npc is attackable
boolean NpcInCombat(int index) - returns true if the npc is in combat, false if
it isnt
boolean NpcHealthBarShowing(int index) -returns true if the npc's health bar is
showing , false if it isnt
String NpcName(int id) - returns the name of the given npc
String NpcDesc(int id) - returns the npc's description
int NpcCombat(int id) - returns the combat level of the given npc
void AttackNpc(int index) - attacks npc's based on their index
void TalkToNpc(int index) - talks to npc's based on their index
void ThieveNpc(int index) - thieves to npc's based on their index
int NpcId(int index) - returns the id of the given npc
int NpcX(int index) - returns the x-coord of the given npc
int NpcY(int index) - returns the y-coord of the given npc
void UseOnNpc(int pos, int index) - uses item in position pos, on the given npc
/** Communication Functions **/
void Speak(String s) - say the given message
void SendPM(String to, String message) - send a private message to the given
player
void AddToFriends(String player) - add the specified player to your friend list
void AddToIgnore(String player) - add the specified player to your ignore list
String[] GetFriendList() - returns an array containing the names of everyone on
your friend list
String[] GetIgnoreList() - returns an array containing the names of everyone on
your ignore list
void RemoveFromFriends(String player) - removes the given name from your friend
list
void RemoveFromIgnore(String player) - removes the given name from your ignore
list
boolean IsOnFriendList(String player) - returns true if the given player is on
your friend list, otherwise false
boolean IsOnIgnoreList(String player) - returns true if the given player is on
your ignore list, otherwise false
/** Spell Functions **/
void CastOnNpc(int spell, int index) - casts the spell on an npc based on their
index
void CastOnItem(int spell, int pos) - cast the spell on an item based on its
position in your inventory
void CastOnGItem(int spell, int id, int x, int y) - cast the spell on an item on
the ground
/** Npc Interaction Functions **/
boolean QuestMenu() - returns true if the quest menu is visible, false otherwise
int CountQuestMenu() - returns the amount of options on the quest menu
String GetQuestOption(int i) - returns the given option
void Answer(int i) - answers the quest menu with the given option
/** Bank & Shop Functions **/
void Withdraw(int id, int amount) - withdraws the given amount of items from
your bank (can only withdraw 1 non-stackable at a time)
void Deposit(int id, int amount) - deposit the given amount of items into your
bank
boolean ItemInBank(int id) - returns true if the item is in your bank
int CountInBank(int id) - returns the amount of the given item in your bank
boolean InBank() - returns true if your bank is open, false is it isn't
void CloseBank() - closes the bank screen
boolean InShop() - returns true if the shop screen is open
void CloseShop() - closes the shop screen
int FindShopSlot(int id)
void BuyShopItem(int id) - buy the given item from the shop
void SellShopItem(int id) - sell the given item to the shop
int ShopBuyPrice(int id) - returns the price of the given item in the shop
int ShopSellPrice(int id) - returns the price the shop will give for the item
int CountShop(int id) - returns the amount of the given item in the shop
/** Status Functions **/
boolean Sleeping() - returns true if you are currently sleeping
void SetMode(int i) - sets your fightmode
int GetMode() - returns your current fightmode
int GetPid() - returns your current player id
int GetFatigue() - returns your fatigue level
long GetExp(int i) - returns the amount of exp in the given stat
String GetLvlName(int i) - returns the name of the given stat
int GetCurLvl(int i) - returns your current level in the given stat
int GetMaxLvl(int i) - returns your max level in the given stat
int GetCombatLvl() - returns your combat level
int GetX() - returns your x-coord
int GetY() - returns your y-coord
boolean InCombat() - returns true if your in combat, false if your not
boolean HealthBarShowing() returns true if your health bar is showing, false if
it isn't
int HitsPercent() - returns your current hp as a percentage
boolean IsPrayerOn(int i) - returns true if the given prayer is switched on
void PrayerOn(int i) - turn on the given prayer
void PrayerOff(int i) - turn off the given prayer
int PrayerLvl(int i) - returns the required level for the given prayer
boolean QuestDone(int i) - returns true if the given quest is completed
boolean IsWalking() - returns true if you are currently walking
/** Inventory Functions **/
int CountInv() - returns the amount of items in your inventory
int CountInv(int id) - returns the amount of the given item in your inventory
int CountInv(int[] id) - returns the amount of the given items in your inventory
boolean InInv(int id) - returns true if the given item is in your inventory,
false if it isn't
int GetItemPos(int id) - returns the position of the given item in your
inventory
void UseItem(int pos) - use an item based on its position
void UseItemWithItem(int pos1, int pos2) - use the item in the first given
position with the item in the second given position
void DropItem(int pos) - drop the item in the given position
boolean IsItemWearable(int id) - returns true if the given item is wearable
boolean WearingItem(int pos) - returns true if your wearing the item in the
given position
void WearItem(int pos) - wears the item in the given position
void RemoveItem(int pos) - removes the item in the given position
boolean CanEat(int id) - returns true if the given item can be eaten
void UseItemOnGItem(int pos, int x, int y, int id) - uses an item in your
iventory with an item on the ground
int InvItemId(int pos) - returns the id of the item in the given position
/** Movement Functions **/
void WalkTo(int x,int y) - walk to the given coords
void WalkToWait(int x,int y) - walk to the given coords and pause the script
until you are at them
void ForceWalkTo(int x,int y) - used to walk to the given coords even if a
person is currently standing there
void ForceWalkToWait(int x, int y) - used to walk to the given coords even if a
person is currently standing there
boolean IsReachable(int x, int y) - returns true if you can reach the current
coords
/** Wall Object Functions **/
void OpenDoor(int x, int y, int dir) - Opens the door using its coords and direction.
void CloseDoor(int x, int y, int dir) - Get the direction by opening a door on runescape, check the dos screen
int CountWallObjects() - returns the amount of wall objects near you
int[] GetWallObjectById(int id) - returns the id, x-coord and y-coord of the
nearest given wall object
int[] GetWallObjectById(int[] id) - returns the id, x-coord and y-coord of the
nearest given wall object
int GetWallObjectByCoords(int x, int y)
void AtWallObject(int x,int y) - main action on the wall object at the given
coords
void AtWallObject2(int x,int y) - secondary action on the wall object at the
given coords
int GetIdWallObject(int x, int y) - returns the id of the wallobject at the
given coords
void UseOnWallObject(int pos, int x, int y) - use the item in the given pos on
the wallobject at the given coords
int WallObjectX(int index) - returns the X coord of the given wallobject
int WallObjectY(int index) - returns the Y coord of the given wallobject
int WallObjectId(int index) - returns the Id of the given wallobject
String WallObjectName(int id) - returns the name of the given wallobject
String WallObjectDesc(int id) - returns the description of the given wallobject
/** Item Functions **/
int CountItems() - returns the amount of items near you
String ItemName(int id) - returns the name of the given item
String ItemDesc(int id) - returns the description of the given item
int[] GetItemById(int id) - returns the id, x-coord and y-coord of the nearest
given item
int[] GetItemById(int[] id) - returns the id, x-coord and y-coord of the nearest
given item
void PickupItem(int x, int y) - picks up the item at the specified coords
void PickupItem(int x, int y, int id) - picks up an item based on its coords and
id
void PickupItemById(int id) - picks up the closest item of the given id
void PickupItemById(int[] id) - picks up the closest item of the given ids
int ItemX(int index) - returns the X coord of the given item
int ItemY(int index) - returns the Y coord of the given item
int ItemId(int index) - returns the Id of the given item
/** Object Functions **/
int CountObjects() - returns the amount of objects near you
int[] GetObjectById(int id) - returns the id, x-coord and y-coord of the nearest
given object
int[] GetObjectById(int[] id) - returns the id, x-coord and y-coord of the
nearest given object
void AtObject(int x,int y) - main action on the object at the given coords
void AtObject2(int x,int y) - secondary action on the object at the given coords
void UseOnObject(int pos, int x, int y) - use the item in the given position on
the given object
int GetIdObject(int x, int y) - return the id of the object at the specified
coords
int ObjectX(int index) - returns the X coord of the given object
int ObjectY(int index) - returns the Y coord of the given object
int ObjectId(int index) - returns the Id of the given object
String ObjectName(int id) - returns the name of the given object
String ObjectDesc(int id) - returns the description of the given object
boolean IsObjectAt(int id, int x, int y) - returns true if an object on the
given id is at the given coords
boolean IsObjectAt(int[] id, int x, int y) - returns true if an object on the
given ids is at the given coords
/** Setup Functions **/
void SaveScreenShot(String name) - Will save a screenshot with the specified
name.
String GetInput(String message) - prompts the user for input and returns it as a
string
String GetRsName() - returns the users username
int DistanceTo(int x, int y) - returns the distance between you and the given
coords
int DistanceTo(int x1, int y1, int x2, int y2) - returns the distance between
the given coords
void UnlockMode() - return the fightmode to normal
void LockMode(int i) - lock the fightmode to the given mode
void End() - stop the script
void Die(String s) - display the given message then exit the bot
void Die() - totally exit the bot
void Display(String s) - display the given message
void Display(int i) - display the given message
int Rand(int low, int high) - returns a random number between the given
boundaries
boolean Running() - returns true if the script is still running
void Wait(int ms) - pause the script for the given length of milliseconds
long GetMillis() - returns the system time
String IntToStr(int i) - converts an integer to a string
String IntToStr(long i) - converts a long to a string
int StrToInt(String s) - converts a string to an integer
NEW: int[] StrArrayToIntArray(String[] s) - converts a string array to an
integer array
NEW: String[] IntArrayToStrArray(int[] i) - converts an integer array to a
string array
boolean IsInStr(String string, String findme) - returns true if the given string
is in the main string
boolean InArray(String sarray[], String s) - returns true if the given string is
in the array
boolean InArray(int iarray[], int i) - returns true if the given integer is in
the array
int GetAverage(int[] values) - returns the average of the given values
/** Player Functions **/
int LastAttackedPlayer() - Returns the last attacked player id
int[] GetPlayerById(int id) - Returns player's index, x coord, and y coord by id
NEW: int[] GetPlayerByName(String name) - returns the index,
x-coord and y-coord as an array
int PlayerX(int index) - Returns a player's x coord by index
int PlayerY(int index) - Returns a player's y coord by index
int PlayerDestX(int index) - Returns a player destination x coord by index
int PlayerDestY(int index) - Returns a player destination y coord by index
String PlayerName(int index) - Returns a player name by index
int PlayerCombatLvl(int index) - Returns a player combat level by index
void AttackPlayer(int id) - Attacks a player by id
NEW: void TradePlayer(int id) - Trades a player by id
void CastOnPlayer(int spell, int id) - Casts a spell on a player by id
boolean PlayerInCombat(int index) - Returns true if player in combat, False if
it isnt. Using its index
boolean PlayerIsWalking(int index) - Returns true if player is walking, False if
it isnt. Using its index
boolean PlayerHpBarShowing(int index) - Returns true if player hp bar is
showing, False if it isnt. Using its index
/** Trade Functions **/
NEW: void AcceptTrade1() - accepts the first trade screen
NEW: void AcceptTrade2() - accepts the second trade screen
NEW: void DeclineTrade() - declines the trade
NEW: void DeclineTrade() - declines the trade
NEW: void AddToOffer(int item, int amount) - add items into the trade window
NEW: boolean InTradeScreen1() - returns true if in the first trade screen
NEW: boolean InTradeScreen2() - returns true if in the second trade screen
NEW: boolean MyTrade1Accepted() - returns true if you have accepted the first
trade screen
NEW: boolean MyTrade2Accepted() - returns true if you have accepted the second
trade screen
NEW: boolean IsOffered(int id, int amount) - returns true if opponent has
offered amount and id given