List of all functions

Here You can find list of all functions avaiable in CoreBot's Lua Scripter.

1. Items functions:

 * boolean moveItems(item, from, to, count)
 * void reachgrounditem(item)
 * number itemCount(item, where)
 * void dropItems(items, from, x, y, z, count)
 * number getItemId(name)
 * table getItemData(itemId)
 * boolean useItemOnSelf(item)
 * boolean isContainer(item)
 * boolean useItemOnGround(x, y, z, useTibiaMenu)
 * boolean useItemOnCreature(item, creature)
 * boolean useItemOn(item, x, y, z)
 * boolean useItemOnTarget(item, creature)
 * table getEQItem(EQSlot)
 * boolean sellItems(item, count)
 * boolean buyItems(item, count)
 * boolean useItem(item, fromLocation, openNewWindow)

2. Containers functions:

 * void resizewindows
 * void closewindows(windowName)
 * boolean openItem(name, where, inNewWindow)
 * void openMainBackpack
 * number windowcount(windowName)

3. Creatures functions:

 * boolean reachCreature(name)
 * void stopattack
 * table getBattlelist
 * number getCreatureId(name)
 * boolean attack(creature)
 * number maround(range, monsterName1, monsterName2, ...)
 * number paround(range, playerName1, playerName2, ...)

4. Player functions:

 * boolean isLocation(p1, p2, p3, p4)
 * void logout
 * void dance
 * void npcsay(text)
 * boolean visibleOnScreen(x, y, z)
 * boolean isChannelOpen(channel)
 * void opentrade
 * void move(dir)
 * void changeAttackMode(attackMode)
 * void levitate(dir, upDown)
 * void depositall
 * void whisper(text)
 * void yell(text)
 * void say(text, channel)
 * table getMyself
 * void turn(dir)
 * boolean castRune(nameOrId, target, pos)
 * boolean cast(nameOrWords)
 * void useHotkey(hotkey)
 * void setMount(onOff)
 * boolean isPlayerTraped
 * void reconnect
 * void connect(accName, accPass, charName)

5. HUD functions:

 * void clearHUD(HUDId)
 * void startHUD
 * void addtext(HUDId, text, screenX, screenY, color)
 * void stopHUD

6. Other functions:

 * void debug(message)
 * number positive(input)
 * table getTile(x, y, z)
 * number getDistanceSquare(pos1, pos2)
 * number getDistanceManhatan(pos1, pos2)
 * number getDistancePositions(pos1, pos2)
 * void gotoLabel(label)
 * void click(screenX, screenY)
 * void rclick(screenX, screenY)
 * table findPath(x, y, z, screenOnly)
 * boolean fish
 * void playSound(soundFile)
 * void maximiseBattleWindow
 * void minimiseBattleWindow
 * void exitTibia
 * number getTime
 * void wait(from, to)
 * void screenshoot(name)
 * void setCavebot(onOff)
 * void setTargeting(onOff)
 * void setLooting(onOff)
 * boolean isCavebotOn
 * boolean isTargetingOn
 * boolean isLootingOn
 * void showEQWindow
 * void hideEQWindow
 * void setOpenNextBackpack(onOff)
 * void pauseWalking(pauseTime)

1. Advanced functions:

 * void sendChar(char)
 * void sendKey(key)
 * table convertPosition(x, y, z)
 * void sendKeyDown(key)
 * void sendKeyUp(key)
 * void toogleMount
 * string findHotkey(hotkeyType, searched, useType)
 * void selectChannel(channel)
 * string selectedChannel
 * void clickOnSelf
 * void openBattleWindow
 * boolean reachGroundItem(item)
 * table getEQWindow
 * table getNPCTradeWindow
 * table findItemInContainers(item, only, exclude)
 * void doScript(scriptChunk)
 * table getNodesRange(pos, range, borderOnly, center)
 * void toogleMinimiseBattleWindow
 * table getWindow
 * table getGameWindow
 * table getChatWindow
 * table getHotkey(hotkey)
 * void sendDragAndDrop(fromScreenX, fromScreenY, toScreenX, toScreenY)
 * table dictToTable(dict)
 * void executeMove(move, allowDiagonal)
 * table getCooldowns
 * table getCorpsesBattlelist
 * boolean isInWaveBeamRange(playerX, playerY, monsterPos, beamOrWave)
 * string getActionCode(actionScriptName)
 * table getContainersWindow
 * table getBattleWindow
 * table getButtonsWindow
 * void sendText(text, finishEnter)
 * void toogleBattleWindow
 * void closeBattleWindow
 * void minimiseBattleWindow
 * table listToTable(list)
 * table findPathMultiple(goals, screenOnly)
 * void setCursorPos(screenX, screenY)
 * table getSpell(wordsOrNameOrRuneId)
 * table getTibiaMenuWindow
 * void clickOnCreatureBattlelist(name)
 * table getContainer(contIndex)

1. GUI functions:

 * void clearControlItems(controlName)
 * void removeControlSelectedItem(controlName)
 * void removeControlItem(controlName, text)
 * void addControlItem(controlName, text)
 * void insertControlGridData(controlName, index, row)
 * void addControlGridData(controlName, row)
 * void setControlSelectedItem(controlName, text)
 * table getControlItemList(controlName)
 * table getControlGridData(controlName)
 * void setControlParam(controlName, param, value)
 * table getControlGridSelectedRow(controlName)
 * void clearControlGridData(controlName)
 * void insertControlItem(controlName, index, text)
 * var getControlParam(controlName, param)
 * void removeAtControlItem(controlName, index)
 * string getControlSelectedItem(controlName)
 * void removeAtControlGridData(controlName, index)
 * void editControlGridData(controlName, index, newRow)

1. Very advanced functions:

 * table getSettingsTable(path)
 * string prepareName(input)
 * table tradeItemRelativePosition(i)
 * void maximiseContainer(contIndex)
 * void setSettingsTable(path, tab)
 * void removeSettingsPath(path)
 * void setNewAvoidBeamMonsters(monsters)
 * var getSettings(path)
 * void setNewAvoidWaveMonsters(monsters)
 * void openNextBackpacks
 * void setGlobalVar(var, value)
 * var getGlobalVar(var)
 * table battlelistAbsolutePosition(i)
 * void createSettingsPath(path)
 * table itemColRow(i)
 * table itemAbsolutePosition(i)
 * void _sleep(ms)
 * table itemRelativePosition(i)
 * table battlelistRelativePosition(i)
 * void useItemInContainer(contIndex, col, row)
 * void setSettings(path, value)
 * number getDistancePos(x, y, z)
 * table findSpaceInContainer(cont, itemId)
 * table getSpecialAreas
 * void setNewSpecialAreas(specialAreas)