Hello There, Guest! Login Register


PROBot(alpha testing)
#26
Confuse make scripts ...?
 
Reply
#27
Someone can give me example script to train 5poke,farming money and hunting poke???
 
Reply
#28
(2017-10-21, 07:26:28)Prolover Someone can give me example script to train 5poke,farming money and hunting poke???

I'm Working on it for a Drangon Cave but i've some problem to cross water and to use pokecenter the command path.MoveToCell is bugged and my trainer is moving no-stop between two Cell make the rest of the script not working.
 
Reply
#29
(2017-10-01, 13:46:53)Icesythe7 This will be an alpha test of PROBot for mainly pathfinding, however feel free to test what you want and report any errors you find. Please note use this at your own risk there is always a chance of getting banned regardless of what bot you use, if you do not feel safe using this bot then simply do not use it(all anti-cheats have been removed however I didn't add any cheating of any kind to the bot as that is not its intended goal).

[Image: 68e9d5a6cbd79ce856f234c0dac92e47.png]

Currently Supported API


Battle Object

battle.isWild returns bool if the battle is wild or not
battle.activePokemon int returns number of currently active pokemon
battle.useMove(int moveIndex) uses the move at the index
battle.attack() uses strongest move against enemy
battle.weakAttack() uses weakest move against enemy
battle.run() attempts to run from enemy
battle.sendPokemon(int pokeIndex) sends out the pokemon at pokeIndex
battle.sendUsablePokemon() sends first usable pokemon

Dialog Object

dialog.canSelect bool returns if dialog options can be selected
dialog.isOpen bool returns if there is currently a dialog isOpen
dialog.numOptions int returns number of option available
dialog.select(int answerIndex / string text) selects dialog answer answerIndex or the string of the answer
dialog.optionsText(int textIndex) returns string of the answer text
dialog.text returns string of the dialog text
dialog.advance() basically clicks the dialog window to advance it

Enemy Object

enemy.isShiny bool returns true if enemy is is shiny
enemy.name string returns enemys name
enemy.id int returns enemys id
enemy.hp int returns enemys current hp
enemy.maxHp int returns enemys total hp
enemy.hpPercent int returns enemys percentage of hp
enemy.status string returns string of enemy status
enemy.form string returns string of enemys form
enemy.gender string returns enemys gender
enemy.level int returns enemys level
enemy.isCaught bool returns true if you have already caught the enemy pokemon

Game Object

game.print(string msg) prints the msg to the message box localy(only you can see) alternatevly u can just use print()
game.msgBox(string title, string message) pops up a messagebox with given title and message
game.logout() self explanitory
game.fatal(string msg) stops the bot and prints a message to the messagebox and also a popup box

Path Object

path.moveToMap(string mapName) moves user to the mapName
path.moveToCell(int x, int y) moves user to cell x and y on current map
path.talkToNpcOnCell(int x, int y) moves user to x,y and talks to the npc
path.links returns table of all possible links and their x and y coords
path.moveToGrass() moves player in grass randomly
path.moveToWater() moves player randomly in water
path.moveToNormalGround() moves player randomly on normal ground
path.moveToRectangle(int minx, int miny, int maxx, int maxy) moves player randomly in predefined rectangle

Player Object

player.name returns players name as string
player.x int returns players x coord
player.y int returns players y coord
player.mapName string returns current mapname
player.isMember bool returns true if player is member
player.money int returns current pokedollars
player.coins int returns players coins
player.pvpCoins int returns players pvp coins
player.hoursPlayed int returns players hours played
player.minsPlayed int returns players mins played
player.server string returns server name
player.hasItem(string name) bool returns true if u have item name
player.useItem(string name) uses the item with the name
player.isMounted bool returns true if u are mounted
player.isSurfing bool returns true if u are surfing
player.isOutside bool returns true if u are outside
player.isDark bool returns true if is dark
player.interact() interacts with anything if it is interactable like a tree or rock or npc
player.weather string returns the current weather
player.region int returns id of region

Pokemon Object

pokemon.seen int returns pokedex seen
pokemon.caught int returns pokedex caught
pokemon.evolved int returns pokedex evolved
pokemon.teamSize int returns teamsize
pokemon.name(int index) returns name of pokemon at index
pokemon.id(int index) returns pokemon pokedex id at index
pokemon.hp(int index) returns pokemon current hp at index
pokemon.maxHp(int index) returns pokemon total hp at index
pokemon.hpPercent(int index) returns pokemon percent hp at index
pokemon.level(int index) returns pokemon level at index
pokemon.exp(int index) returns pokemon current exp at index
pokemon.totalExp(int index) returns pokemon total exp at index
pokemon.status(int index) string returns status of pokemon at index
pokemon.form(int index) returns form of pokemon at index
pokemon.item(int index) string returns name of help item of pokemon at index
pokemon.pp(int index, int mIndex) returns remaining powerpoints of pokemon at index and move at mIndex
pokemon.maxPp(int index, int mIndex) returns maximum powerpoints of pokemon at index and move at mIndex
pokemon.isShiny(int index) returns true if pokemon at index is shiny
pokemon.moveName(int index, int mIndex) returns name of move for pokemon at index and move index
pokemon.isInTeam(string name) returns true if u have pokemon name in your team
pokemon.movePower(int index, int mIndex) returns move power of pokemon at index and move index
pokemon.isUsable(int index) returns true if pokemon at index is usable

Global Functions

onPathAction() called when not in battle
onBattleAction() called when in battle
onStart() called once upon pressing the start button
onUpdate() called 24/7 while bot is running
onBattleStart() called once when a battle starts
onBattleEnd() called once when a battle ends
onStop() called once when the bot stops

Installation Instructions

Step 1: Open PRO64_Data and locate the folder "Managed"
Step 2: Rename the Managed folder to "Managed_bac"
Step 3: Unzip the new managed folder you downloaded and paste it here.
Step 4: Create a new folder in the same directory as "PRO64.exe" named "Scripts"
Step 5: ???
Please Note this will not run ProShines scripts you will need to code your own, if you have any questions ask in discord



I did everything that appears in "Installation Instructions" and I loaded the script I did, but when I hit "Start Bot" it does nothing, if I move to where the bot should go (a route or city) and I get a message in the chat saying that the name of the map is different and I'm doing the script well, bone, load correctly, but at the time of running it. Does not it work like the normal bot?
 
Reply
#30
(2017-10-21, 14:56:24)perzeus I did everything that appears in "Installation Instructions" and I loaded the script I did, but when I hit "Start Bot" it does nothing, if I move to where the bot should go (a route or city) and I get a message in the chat saying that the name of the map is different and I'm doing the script well, bone, load correctly, but at the time of running it. Does not it work like the normal bot?

can you show your code here ?
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)