Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LUA Functions & Variables
#1
Index

1. Information Functions
2. Actions functions 3. Miscellaneous Class & 4. HUD Class

#2
#1 Information Functions

1.1 Character Information

  • id() [number]
  • name() [string]
  • hp() [number]
  • hppc() [number]
  • maxhp() [number]
  • mp() [number]
  • mppc() [number]
  • maxmp() [number]
  • spirit() [number]
  • spiritpc() [number]
  • maxspirit() [number]
  • level() [number]
  • exp() [number]
  • cap() [number]
  • dir() [number] - (0 -> n, 1 ->e, 2 -> s, 3 -> w)
  • party() [number]
  • skull() [number]
  • iswalking() [boolean]
  • outfitid() [number]
  • posx() [number]
  • posy() [number]
  • posz() [number]
  • gotox() [number]
  • gotoy() [number]
  • stamina() [number]
  • soul() [number]
  • isdead() [boolean]
  • actionstate() [boolean]
1.2 Skill Information

  • mlevel() [number]
  • mlevelpc() [number]
  • fist() [number]
  • fistpc() [number]
  • club() [number]
  • clubpc() [number]
  • sword() [number]
  • swordpc() [number]
  • axe() [number]
  • axepc() [number]
  • distance() [number]
  • distancepc() [number]
  • shielding() [number]
  • shieldingpc() [number]
1.3 Conditions Information

  • invisible() [boolean]
  • battlesigned() [boolean]
  • drunk() [boolean]
  • hasted() [boolean]
  • manashielded() [boolean]
  • burning() [boolean]
  • energized() [boolean]
  • paralyzed() [boolean]
  • poisoned() [boolean]
1.4 Equipment Information

  • head() [table]
  • neck() [table]
  • back() [table]
  • armor() [table]
  • lhand() [table]
  • rhand() [table]
  • legs() [table]
  • feet() [table]
  • finger() [table]
  • belt() [table]
    • .id [number]: Item ID of chosen slot.
    • .name [string]: Item NAME of chosen slot.
    • .count [number]: Item COUNT of chosen slot.

1.5 Client Window

  • connected() [boolean]
  • ping() [number]
  • pingaverage() [number]
  • focused() [boolean]
  • minimized() [boolean]
  • chasemode() [number]
  • attackmode() [number]
  • safemode() [number]
1.6 Bot System

  • cavebotstatus() [boolean]
  • waypoint() [table]
    • .id [number]: ID number of waypoint.
    • .name [string]: Wapoint label/name.
    • .type [string]: Waypoint type (drop, action, node, stand, etc.).
    • .x [number]: Waypoint X position.
    • .y [number]: Waypoint Y position.
    • .z [number]: Waypoint Z position.
  • getlurelocation() [table]: Returns the current lure location defined on cavebot/Targeting.
  • isluring() [boolean]: Returns true if Targeting is currently luring.
  • healerstatus() [boolean] Returns true if Healer is enabled.
  • ishealing() [boolean] Returns true if Healer is currently trying to heal.
  • mustheal() [boolean] Returns true if Healer believes you must heal.
  • healerstopwalking() [boolean] Returns true if Healer needs to stop walking to heal.
  • looterstatus() [boolean]
  • islooting() [boolean]
  • lootbodies() [number]: Returns the body's amount left to loot
  • targetingstatus() [boolean]
  • hastarget() [boolean]
  • targettime() [number]: Returns for how long Targeting is selected a creature IN SECONDS.
  • targettimems() [number]: Returns for how long Targeting is selected a creature IN MILLISECONDS.
  • standtime() [number]
  • botpaused() [boolean]
  • isreconnecting()[boolean]
  • getlastonto() [number]
  • islocation(optional number range) [boolean] Returns true if the action script is executed at the location where the action waypoint was set and false otherwise. If the optional parameter range is specified, return true/false if you are standing within range tiles of the waypoint location in x or y.
  • getsettings(string path) [boolean][number][string]: Returns the path's value. e.g.: getsettings('Looter/Enabled'), it's gonna if looter is enabled.
  • runemaker_isondanger() [boolean]: Returns true if Runemaker->Refill Settings->On Danger is currently triggered.
  • runemaker_isondangerconditions() [number]: Returns a number that represents the danger types that Runemaker->Refill Settings->On Danger is currently triggered. 0 means not in danger.
  • runemaker_isrefilling() [boolean]: Returns true if Runemaker->Refill Settings is currently refilling (picking up food, blanks or droping runes).
  • killedcount(string creature) [number]: Returns how many specific creatures Targeting has killed.
  • lootedcount(string creature) [number]: Returns how many specific creatures Looter has looted.

#3
1.7 Item Information

  • windowcount(optional string name) [number]: Represent the amount of defined windows that are open.
  • itemcount(string/number item, optional string location name, optional boolean countEquipments) [number]: Represent the amount of defined items found on opened containers.
  • fluidcount(string/number item, optional string location name, optional boolean countEquipments, optional string/number liquidContainer)[number]: Represent the amount of defined items found on opened containers in a VIAL (or specified liquid container). This is only useful when the server you are playing uses mana fluids or so in a VIAL like in Tibia 7.4. If the server you are playing uses mana potion, stackable mana fluid, etc. then don't use this function!
  • itemid(string itemname) [number]: Represent the ID of defined item.
  • itemname(number itemid) [string]: Represent the name of defined item ID.
  • getcontainers()[table]: Get all open containers.
  • getcontainer(string/number container)[table]: Table of container structure (index or name).
      • .id [number]
      • .index [number]
      • .maxslots [number]
      • .name [string]
      • .open [string]
      • .usedslots [number]
      • .items [table]
        • .id [number]: Item ID.
        • .count [number]: Item amount.
        • .index [number]: Item index in backpack.

1.8 Creature Information

  • maround(optional number range, optional bool allfloors, optional string names) [number]: Numbers of monsters around you in the range, floors and names defined.
  • maroundreachable(optional number range, optional string names) [number]: Numbers of monsters around you in the range that are REACHABLE and names defined.
  • maroundshootable(optional number range, optional string names) [number]: Numbers of monsters around you in the range that are SHOOTABLE and names defined.
  • paround(optional number range, optional bool allfloors, optional string names) [number]: Numbers of monsters around you in the range, floors and names defined.
  • maroundfloor(optional number range, optional number floorDiff, optional string names) [number]: Returns the amount of monsters on the floor difference found in the range and list.
  • paroundfloor(optional number range, optional number floorDiff, optional string names) [number]: Returns the amount of players on the floor difference found in the range and list.
  • paroundignore(optional number range, optional boolean allfloors, optional string names) [number]: Returns the amount of players around you, except the ones found listed.
  • maroundignore(optional number range, optional boolean allfloors, optional string names) [number]: Returns the amount of monsters around you, except the ones found listed.
  • isattackingme(string type) [boolean]: Tells if something is attacking you, you also can use 'p' and 'm'.
  • findcreature(string/number creature) [number]: Searches for a creature and return how far it's from your character. Returns -1 if creature cannot ben found.
  • target() [table]: Returns a table with the creature that Targeting is attacking.
  • attacked() [table]: Returns a table with the attacking creature's (red-square) information.
  • followed() [table]: Returns a table with the following (green-square) creature's information
  • self() [table]: Returns a table with yourself's information
  • lastattacker(optional number lastMilliseconds) [table]: Returns a table with information about the last creature that attacked you (and that Bot could detect!!!) in the last milliseconds. Default lastMilliseconds is 1000.
  • getcreatures(string filter) [table]: (p, m, n, f and s) - You can combine all as you like
    • p: The creature has to be player.
    • m: The creature has to be monster.
    • n: The creature has to be npc.
    • f: The creature must be on the same floor as you.
    • s: The creature must be on the same floor as you and visible on screen.
      • .id [number]
      • .name [string]:
      • .hppc [number]
      • .posx [number]
      • .posy [number]
      • .posz [number]
      • .dir [number] (0 = "n", 2 = "s", 1 = "e" or 3 = "w")
      • .speed [number]
      • .dist [number]
      • .outfitid [number]
      • .skull [number]
      • .party [number]
      • .visible [boolean]
      • .walking [boolean]
      • .ignored [boolean]
      • .isattackme [boolean]
      • .ismonster [boolean]
      • .isplayer [boolean]
      • .isshootable [boolean]
      • .isreachable [boolean]
1.9 Messages Information

  • ischannelopen(stringchannel) [boolean] Returns true the specified channel is open.
  • ischannelselected(string channel) [boolean] Returns true if the specific channel is open and active (selected)
  • statusmessage() [string]: Returns the currently written text in the 'Statusbar'.
  • screenmessage(optional bool visibleOnly = true, optional string type = 'any') [string]: Returns the last green message that appeared to you. The optional parameter bool visible, true by default, if true will only return if the message is currently visible.
  • itemcountmsg(string item, string message) [number]: Returns the amount of items from a using on message. E.g.: itemcountmsg('vial', 'Using one of 2 vials...') will return value 2. itemcountmsg('vial', 'Using the last vial...') will return value 1.
  • getmessages() [table]: Get the last messages on the current active channel.
  • getnewmessages() [table]: Get the news received messages on the current active channel.
    • .time [string]
    • .sender [string]
    • .content [string]
    • .fullcontent [string]

  • getstatictexts(optional number x, optional number y, optional number z) [table]: Get the current static messages showing up on your screen. Alternatively, you can use parameters to get only from a specific tile.
  • getnewstatictexts() [table]: Get the new static messages showing up on your screen.
    • .sender [string]
    • .message [string]
    • .mode [number]
    • .color [number]
    • .posx [number]
    • .posy [number]
    • .posz [number]

1.10 Private Messages Information

  • getlastprivatemessage() [table]: Get the latest private message received.
    • .hour [string]
    • .minute [string]
    • .sender [string]
    • .content [string]

1.11 Map Information

  • isposonscreen(number x, number y, number z, optional number fromX, optional number fromY, optional number fromZ) [boolean]: Returns true if item is on tile.
  • isitemontile(string/number item, number x, number y, number z) [boolean]: Returns true/false if the position set on parameters is on screen
  • tilereachable(number posx, number posy, number posz) [boolean]: Return true/false if specific tile is REACHABLE
  • tileshootable(number posx, number posy, number posz) [boolean]: Return true/false if specific tile is SHOOTABLE.
  • tileiswalkable(number posx, number posy, number posz) [boolean]: Return true/false if specific tile is WALKABLE.
  • tileismoveable(number posx, number posy, number posz) [boolean]: Return true/false if you can move items to that specific tile.
  • tilereachcost(number posx, number posy, number posz, optional number fromX, optional number fromY, optional number fromZ, optional boolean stepIn) [number]: Return the cost to walk/reach that tile.
  • gettiles() [table]: Return a table with tiles information on your screen
  • gettile(number posx, number posy, number posz) [table]: Return tile information
    • .posx [number]
    • .posy [number]
    • .posz [number]
    • .items [table(item)]
    • .topitem [item]
    • .itemcount [number]
  • finditemonground(string item/number itemId) [table]: Searches for an item on ground and returns a table with it's position and item amount/count.
    • .id [number]: Item ID.
    • .count [number]: Item amount.
    • .index [number]: Item index in backpack.
    • .posx [number]
    • .posy [number]
    • .posz [number]
  • topitem(number posx, number posy, number posz, optional boolean considerCreatures) [table]: Return top of specific tile.
    • .id [number]: Item ID.
    • .count [number]: Item amount.
    • .index [number]: Item index in backpack.
    • .posx [number]
    • .posy [number]
    • .posz [number]

  • gettileeffect(number posx, number posy, number posz) [table]: Return a table with effects on this tile.

  • gettileseffect() [table]: Return a table with tiles that has at least one effect
    • .posx [number]
    • .posy [number]
    • .posz [number]
    • .effects [table(number)] -> Table with effects ids

  • istrapped() [boolean]: Return true/false if you are trapped.
  • istrappedcreatures() [boolean]: Return true/false if you are trapped only by creatures.

  • iscreatureontile(number x, number y, number z) [boolean]: Return true/false if there's a creature on specified tile location.
  • wheretomoveitem(number fromX, number fromY, number fromZ) [table]: Return a table with information about the tile you can move an item to from the specified location. That's useful when you want to untrash
    • .posx [number]
    • .posy [number]
    • .posz [number]


1.12 Vip Information

  • isviponline(string vipName) [boolean]: Return true/false if player in your viplist is online
  • getviplist() [table]: Return a table with vip information
    • .name [string]
    • .isonline [boolean]
    • .id [number]
    • .icon [number]
1.13 Miscellaneous Information

  • cancast() [boolean]: Return if can cast spell.
  • cancasttime() [number]: Returns how long to be able to cast spell again.
  • exptolevel(optional number level) [number]: Amount of experience to level.
  • expgained() [number]: Returns exp gained since you chosen the client.
  • exphour() [number]: Current exp per hour
  • timenow() [number]: Returns the current time IN SECONDS.
  • runningtime() [number]: Returns the time in SECONDS SINCE the bot has started.
  • startedtime() [number]: Returns the time in SECONDS WHEN the bot has started.
  • formattedtime() [string]: Returns the current time formated (e.g. 22:03:51).
  • date() [string]: Returns the current date (mm/dd/yyyy -> 12/25/2017)).
  • timetosec(string timeConvert) [string]: Converts the string time (hour:minutes) to seconds (15:30 -> 53534)).
  • cursorinfo(optiona bool getItemId)[table]: Table of mouse cursor information.
    • .x [number]
    • .y [number]
    • .posx [number]
    • .posy [number]
    • .posz [number]
    • .id [number]

#4
#2 Action Function's

2.1 Character Actions

  • attack(string creature) [void]: Attack first creature with this name or id.
  • follow(string/number creature) [void]: Follow first creature with this name or id.
  • stopattack() [void]: Send ESC key if attacking.
  • stop() [void]: Send ESC key single time.
  • cast(string spellwords) [boolean]
  • castareaspell(string spell, number minCount, optional boolean canTurn, optional boolean checkPlayers, optional number priorityAttacked, optional string monsterNames ...) [boolean]: Try to cast wave/beam spells on at least min monsters. string spell = spell words / number minCount = min amount monsters to cast spell / optional boolean canTurn = Should bot turn or just cast if on current direction? /optional boolean checkPlayers = check if player on screen then don't cast. / optional number priorityAttacked = 0 -> Doesn't matter; 1 -> Spell on any, but try focus on attacked creature; 2 -> Spell on any, but focus on attacked creature if minimum amount; 3 -> Only if hits attacked creature; optional string monsterNames = Specific monsters to hit, leave as empty to hit any.
  • dropitems(number array id) [void]: Drop items.
  • eatfood(number amount, optional boolean alsoFromInventory) [void]: Eat any food found in backpacks and inventory (if enabled).
  • move(string direction) [void]: Move to any direction ("n", "s", "e", "w", "nw", "ne", "sw" or "se").
  • moveitems(string item, string to, string from, optional in count) [boolean]Moves items based on its name or id.
  • moveitemsslot(number slot, string to, string from, optional in count) [boolean]Moves items based on its slot index from a container. slot parameter is zero based
  • moveitemsonto(string/number item, string/number OnToItem, number Index, string ToItem, string From, number Amount) [void]
  • pickupitems(string dir) [void]
  • reachlocation(number x, number y, number z, optional bool stepIn) [boolean]: Try to move to location.
  • resizewindow(string/number item, number size) [void]: Resize defined window to defined size.
  • resizewindows() [void]: Resize to minimum size all open windows.
  • closewindow(string windowname) [void]: Close a specific container window.
  • closewindows() [void]: Close all open containers windows.
  • resizebattle(number size) [void]: Resize battle window to defined size.
  • say(string text, optional string channel) [void]: Speaks defined text in defined channel, if channel not defined, speak in default.
  • turn(string direction) [void]: Turn your character in direction ("n", "e", "s" ou "w").
  • rturn(number times, optional bool backOriginal) [void]: Turn your character in random directions, then back to original or not.
  • openitem(string/number item, string location, bool newWindow, number Index) [void]: Open an item located inside your containers, inventory or ground, depends of your location choice.
  • openitemslot(number slot, string location, bool newWindow) [boolean]Opens an item based on its slot index from a container. slot parameter is zero based
  • useitem(string/number item, string location) [void]: Use an item located inside your containers or inventory.
  • useitemslot(number slot, string location) [boolean]Uses an item based on its slot index from a container. slot parameter is zero based
  • useitemon(string item, number x, number y, number z) [void]: Use an item located inside your containers or inventory in the floor with X, Y and Z defined position.
  • useitemonitem(string item, string itemon, string itemon location) [void]: Use an item on another item inside your containers or inventory.
  • useitemoncreature(string item, string/number creature) [void]: Use an item located inside your containers or inventory in the creature with the defined name or id.
  • moveitemspos(number x, number y, string item, optional string location, optional number count) [void]: Move an item located inside your containers or inventory in X/Y PIXEL defined position.
  • useitemonpos(number x, number y, string item, optional string location) [void]: Use an item located inside your containers or inventory in the X/Y PIXEL defined position.
  • minimizewindow(string windowName) [void]: Minimize windows. Parameters can be: "equip".
  • restorewindow(string windowName) [void]: Maximize windows. Parameters can be: "equip".
  • higherwindow(string windowName) [void]: Try to back to parent container of defined container.
  • stackitems(optional string location, optional boolean onlyOnce, optional string itemName) [void]: Try to stack items on defined container.
  • connect(string account, string password, string characterName) [void]: Connect to this account and character if not connected.
  • logout() [boolean]: Logs you out by pressing CTRL+L..
  • xlog() [boolean]: Try to logout and close the kasteria client.
  • reachgrounditem(string item/number itemId, optional boolean stepIn) [void]: Searches for specific item on ground on your screen and try to reach it. Optional parameter boolean set to TRUE to walk over it or FALSE to just reach (adjacent).
  • reachlocation(number posx, number posy, number posz, optional bool stepIn, optional bool mapClicks) [boolean]: Try to reach specific location on your screen.
  • reachcreature(string/number creature, optional number distance) [void]: Searches for specific creature on your screen and try to reach it.
  • shootarearune(string/number rune, number minMonsters, string Monsters ...) [boolean]: Try to shoot specific area rune on at least min monsters.
  • shootexplosion(string rune, number minMonsters, string Monsters ...) [boolean]: Try to shoot explosion rune on at least min monsters.
  • shootexplosion(number minMonsters, string Monsters ...) [boolean]: Try to shoot explosion rune on at least min monsters.
  • setattackmode(string mode) [void]: Set the specific mode ("chase", "stand", "offensive", "balanced", "defensive").
  • setpvpmode(string pvpMode) [void]: Set the specific pvp mode ("dove" or "red").
  • changegold(string/number container, optional boolean openNextBackpacks, optional boolean backFirstBackpack) [boolean]: It will count your gold and try to change gold you. If can also search for more gold on next backpacks and back to first backpack after all.
  • opensomething(number X, number Y, number Z, string/number item, table holes) [boolean]: Open something based on specified location, tool used to open and item to be opened, usefull for open pick holes, shovel holes, sand, etc.
  • usedoor(number X, number Y, number Z, string action) [boolean]: Open or close a door on specified location. Action parameter must be 'open' or 'close'.
  • selectchannel(string channel) [boolean] Returns true if the specific channel is open and will active (select) it.
  • inviteparty(string name) [boolean]: Invites someone to your part or join someone's party.
  • isinvitedparty(string name) [boolean]: Returns if someone is invited you to a party or you invited someone to a party.
  • isonparty(string name) [boolean]: Returns if someone is on your party.

  • closetextwindow(optional bool OK)[boolean]: Closes a text window. Returns true if sucessfully closed text window.
  • gettextwindow()[string]: Returns the text content of a text window.
  • writetextwindow(string/number item, string text, optional string location, optional number index)[boolean]: Uses a window and writes a text then close it. Useful to write on labels, letters, etc.

  • antifurnituretrap(string weapon, number maxRange, string/number extraIds)[boolean]: Return true If one of given ids or some IDs Bot has built-in are found in the given distance then reach and destroy it using the specified weapon.
  • antipush(string/number ids)[boolean]: Trashes under feet with ONE of given items.

2.2.1 Bot Systems

  • pausebot(bool pause) [void]: Will pause Kasteria OTBot. Set true to pause and false to unpause.
  • pausetargetingspell(number time) [void]: Pauses targeting from shooting runes or casting spells for a certain time.
  • flashclient() [void]
  • focusclient() [void]
  • restoreclient() [void]
  • minimizeclient() [void]
  • gotolabel(string/number label) [void]: Make the next waypoint the string/number to be defined as parameter "label".
  • clearlastonto() [void]
  • islocationxyz(number X, number Y, number Z, optional number range) [boolean] Returns true if the action script is executed at the location within range.
  • pausewalking(number time) [void]: Pause cavebot, targeting and looter WALKING during time set in milliseconds.
  • print(string text) [void]: Print text in Console window.
  • printerror(string text) [void]: Print text (red color) in Console window.
  • wait(number first time, optional number second time) [void]: Make scripts sleeps (wait) for desired time in milliseconds.
  • waitping(number multiplier) [void]: Make scripts sleeps (wait) for a random time based on your current ping multiplied by a given number.
  • setlurelocation(number posx, number posy, number posz) [void]: Set a lure location to Cavebot/Targeting.
  • setsettings(string path, string/number/boolean value) [void]: Changes the path's value. e.g.: setsettings('Looter/Enabled', 'yes'), it's gonna enable Looter. To find a tools path you should right click on the option that you wanna find out and click on copy path.
  • setglobal(string NAME, string/number/boolean/table VALUE) [void]: Define a global variable.
  • updateglobals()[void]: Sincronize global variables set with the current script.
  • messagebox(string text, optional string caption, optional number icon) [void]: Displays a modal dialog box witj following text, caption and system icon. Icon: 0 = None, 1 = Information, 2 = Warning and 3 = Error.
  • screenshot(optional string name) [void]: Takes a screenshot of the entire client window. If filename is not specified, a filename will be named as "SS_" and the current time (in ticks) will be created.
  • ground(number X, number Y, number Z) [string]: Return the chosen xyz ground position in string, must be used as parameters on functions that requires ground position.
  • addwaypoint(string type, number x, number y, number z, number rangeX, number rangeY, optional string name, optional number index) [void]: Add a new waypoint on Cavebot.
  • addhudloot(string item, optional number count) [void]: Add a specific count (+1 by default) to an item's count to loot's counter.
  • sethudloot(string item, number count) [void]: Set an item's count to loot's counter.
  • gethudloot(string/number item) [number]: Returns the amount of items looted of a specific item.
  • getlootitems()[table]: Returns a table with each item that looter has looted.
    • .itemid [number]
    • .itemname [string]
    • .id [number]
  • addhudsupply(string item, optional number count) [void]: Add a specific count (+1 by default) to an item's count to supplies' counter.
  • sethudsupply(string item, number count) [void]: Set an item's count to supplies' counter.
  • gethudsupply(string/number item) [number]: Returns the amount of items useds of a specific item.
  • getsupplyitems()[table]: Returns a table with each item that Healer has used.
    • .itemid [number]
    • .itemname [string]
    • .id [number]
  • addhuddropped(string item, optional number count) [void]: Add a specific count (+1 by default) to an item's count to droppeds' counter.
  • sethuddropped(string item, number count) [void]: Add an item's count to droppeds' counter.
  • gethuddropped(string/number item) [number]: Returns the amount of items dropped of a specific item.
  • getdroppeditems()[table]: Returns a table with each item that Looter has dropped.
    • .itemid [number]
    • .itemname [string]
    • .id [number]
  • resethud() [void]: Reset entire HUD. Which means running time, looted items, dropped items and supplies.
  • resethudloot() [void]: Reset looted items.
  • resethudsupply() [void]: Reset supplies.
  • resethuddropped() [void]: Reset dropped items.
  • resetrunningtime() [void]: Reset running time.
  • resetexp() [void]: Reset exp hour calculator.

  • speech(string text, optional number speed, optional number volume, optional string voice, optional boolean sync) [void]: Will speak the contents of the string given. Speed from -10 to 10; Volume from 0 to 100. If SYNC is true, Bot waits until it finishes speaking before continuing to the next line of code, otherwise it will start speaking and go to next line of code. Every other function on Bot is synchronized.
  • stopspeech() [void]: Stops a currently running speech. This works only if SYNC parameter set to FALSE on speech() function.
  • speechstate() [number]: Returns the current state of a speech. This works only if SYNC parameter set to FALSE on speech() function.


  • statssupply()[table]: Returns a table with each item that's showing up on Supply on Loot Statistics on Analyser.
    • .id [number]
    • .name [string]
    • .count[number]

  • statssupplycount(string/number item) [number]: Returns the count of a specific item showing up on Supply on Loot Statistics on Analyser.

  • statsdrop()[table]: Returns a table with each item that's showing up on Drops on Loot Statistics on Analyser.
    • .id[number]
    • .name [string]
    • .count [number]

  • statsdropcount(string/number item) [number]: Returns the count of a specific item showing up on Drop on Loot Statistics on Analyser.

  • actionbarcount(string/number item) [number]: Returns the count of a specific item showing up the Actionbar.
  • random(number first number, number second number) [number]: Gives a random value between first and second number.
  • isinitrun() [boolean]: Returns true if that's the first time that tool (Cavebot, Persistent, etc.) runs a LUA Script. Useful to use when you wanna setup variables on your LUA Script.

  • contextmenu(string option, number posX, number posY, number posZ) [boolean]: Tries to use option (CTRL+Click -> Option) on that location.
  • contextmenupos(string option, number pixelX, number pixelY) [boolean]: Tries to use option (CTRL+Click -> Option) on your screen location based in PIXELS.
  • contextmenubattle(string option, string/number creature) [boolean]: Tries to use option (CTRL+Click -> Option) on a creature on battle window.
  • contextmenucontainer(string option, string/number container, number itemSlot) [boolean]: Tries to use option (CTRL+Click -> Option) on a creature on item inside a container.
  • contextmenuinventory(string option, string slot) [boolean]: Tries to use option (CTRL+Click -> Option) on a creature on a inventory slot.

  • setexhaust(number milliseconds) [void]: Set current Bot's exhausted time to value. Calling with milliseconds parameter equal zero means reset exhausted.

  • runemaker_setondangercondition(bool danger)[void]: Set/unset danger condition that is used on Runemaker -> Refill Settings.

  • iscreatureignored(number creatureId)[boolean]: Return true if a creature is currently ignored.
  • ignorecreature(number creatureId, bool ignore)[void]: Ignores/Unignores a creature, it will be ignored/unignored on Targeting and .ignored on getcreatures().

  • gethealingattempts()[table]: Returns latest 100 healing attempts by Healer, which are logged when Healer -> Log healing attempts is enabled.
    • .starttime [number]
    • .endtime [number]
    • .spell [string]
    • .condition [string]
    • .condvalue [string]
    • .extracondition [string]
    • .extracondvalue [string]
    • .healed [boolean]


#5
3 Miscellaneous Class


3.1 Functions


  • abs(number arguments) [number]: Absolute value of the equation given.
  • random(number first number, number second number) [number]: Gives a random value between first and second number.
  • unpack(table arguments) [void]: Unpacks the arguments within the table.

  • isnumeric(any object) [boolean]: Returns if object given is a number.
  • isstring(any object) [boolean]: Returns if object given is a string.
  • istable(any object) [boolean]: Returns if object given is a table.
  • isboolean(any object) [boolean]: Returns if object given is a boolean.

  • table.upper(table arguments) [void]: Converts all string elements of the table to uppercase.
  • table.lower(table arguments) [void]: Converts all string elements of the table to lowercase.
  • table.find(table tab, mixed argument, mixed value) [mixed]: Returns the object found on given table.

  • file.rewrite(string fileName, string Text) [boolean]: Write content to the given file, erasing any previous content. If the file does not exist, it's created.
  • file.write(string fileName, string Text) [boolean]: Appends content to the end of given file. If the file does not exist, it's created.
  • file.writeline(string fileName, string Text) [boolean]: Appends content to the end of given file, on a new line. If the file does not exist, it's created.
  • file.addline(string fileName) [boolean]: Appends a new line. If the file does not exist, it's created.
  • file.readfile(string fileName) [string]: Gets all the content of a given file. Returns empty ("") if file doesn't exist.
  • file.readline(string fileName, number line) [string]: Gets the content of the nth file line. Returns empty ("") if file doesn't exist.
  • file.exists(string fileName) [boolean]: Checks given file exists in files folder or not.
  • file.clear(string fileName) [boolean]: Clears all the content of the given file. If the file does not exist, it's created. Useful to create new, empty files.
  • file.isline(string fileName, string Text) [boolean]: Checks whether the any file line matches given content. Returns false if it can't be found.

  • presshotkey(string hotkeys) [boolean]: Press the keys. Examples: presshotkey('F1'); presshotkey('CTRL+F5'); presshotkey('ALT+F4');
  • presskey(number key, optional number secondKey) [void]: This function accepts two keys, but it wasn't developed for using combo hotkeys like CTRL+F1.
    |Only Registered members can see download links. | Click here to buy subscription or here to register.

  • pressesc() [void]: Press ESC key.
  • pressenter() [void]: Press ENTER key.
  • keyboardwrite(string text) [void]: Write the following text. This function is not about "saying", but writing only.
  • cmd(string code) [boolean]: Runs code in a Prompt Command. You MUST have -cmd in your startup settings, otherwise this function will not work.

  • unixtime(optional string date) [boolean]: Returns date's unix timestamp. If date is not given or invalid then returns current timestamp. Date example: "2009-05-01 14:57", "2009-05-01 14:57", "2009-05-01 12:00 GMT", "2009-05-01 12:00:02 GMT".
  • utctime() [boolean]: Returns UTC time is a given format: HH:mm
    |Only Registered members can see download links. | Click here to buy subscription or here to register.
    |Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Confused" title="Confused" class="smilie smilie_13" />s.


4 HUD Class

4.1 Functions
Those functions can be used only on HUD scripts.

  • addtext(string text, number X, number Y) [void]: Add a text to HUD on specific position.
  • addtextstroke(string text, number X, number Y) [void]: Add a stroked text to HUD on specific position.
  • addrect(number X, number Y, number Width, number Height) [void]: Add a rectangle to HUD.
  • addroundrect(number X, number Y, number Width, number Height, optional rX, optional rY) [void]: Add a rounded rectangle to HUD.
  • addimage(string url/filename, number X, number Y, number Width, number Height) [void]: Add an image to HUD. You can specify an URL or file name. If it's filename, it must be on "PRO Bot's folder/files".
  • setfontstyle(string font, number size, string style) [void]: Sets a font style to the next texts. on "style": "B" means BOLD and "I" means ITALIC.
  • setfontcolor(string color) [void]: You can choose a color name like 'brown' or color hex like '#FFFFFF' to white.

  • httpget(string url, optional table cookies) [string]:REQUIRES -http startup option. Sends a GET request to the specific url. Optionally, you can specify cookies. Example: httpget('
    |Only Registered members can see download links. | Click here to buy subscription or here to register.
    { { 'cookie_name', 'cookie_value'} }). Returns the contents of request.

  • httpget(string url, optional table formUrlEncodedContent, optional table cookies) [string]:REQUIRES -http startup option. Sends a POST request to the specific url. Optionally, you can specify formUrlEncodedContent AND cookies. Example: httppost('
    |Only Registered members can see download links. | Click here to buy subscription or here to register.
    { { 'key', 'value' }, { 'another_key', 'value again'}, { { 'cookie_name', 'cookie_value'} }). Returns the contents of request.


  • setfillcolor(string color) [void]: Set the rect's fill color. You can choose a color name like 'brown' or color hex like '#FFFFFF' to white.
  • setpen(string color, number width) [void]: Set the pen's (border) color and width to be used on Rectangles. You can choose a color name like 'brown' or color hex like '#FFFFFF' to white.
  • setpencolor(string color) [void]: Set the pen's (border) color and width to be used on Rectangles. You can choose a color name like 'brown' or color hex like '#FFFFFF' to white.
  • rgbcolor(number R, number G, number B) [number]: Converts R, G, B to color.
  • tocolor(string color) [number]: Convert color name or hexstring to color. You can choose a color name like 'brown' or color hex like '#FFFFFF' to white.



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016