Hello There, Guest! Login Register


PROShine 2.1.0.0
#1
Changes since 2.0.2.0:

Quote* Add the PC support to the bot. Scripts can now open the PC, deposite, retrieve and even release pokémon.
* Add a lot of API functions related to the pokémon in the team. See below for the complete list.

* Add getPokemonHeldItem(), takeItemFromPokemon() and giveItemToPokemon() API functions.
(Thanks Rympe.)

* Add getTime(), isMorning(), isNoon() and isNight() API functions to retrieve the current pokétime.
* Add the isOutside() API function to check if the current map is outdoors.
* Add isPrivateMessageEnabled(), enablePrivateMessage() and disablePrivateMessage() API functions.

* Fix the bot not able to walk over moving NPC.
* Fix the interface allowing to send chat messages of more than 100 characters.

* Fix the included Route 6 EV training script.

Complete list of the new API functions related to the team:

getPokemonNature(pokemonIndex) -- return string
getPokemonAbility(pokemonIndex) -- return string
getPokemonHappiness(pokemonIndex) -- return int
getPokemonRegion(pokemonIndex) -- return string
getPokemonOriginalTrainer(pokemonIndex) -- return string
getPokemonGender(pokemonIndex) -- return string
getPokemonTotalExperience(pokemonIndex) -- return int
getPokemonRemainingExperience(pokemonIndex) -- return int
getPokemonUniqueId(pokemonIndex) -- return int
getPokemonMove(pokemonIndex, moveIndex) -- return string
getPokemonMoveAccuracy(pokemonIndex, moveId) -- return int
getPokemonMovePower(pokemonIndex, moveId) -- return int
getPokemonMoveType(pokemonIndex, moveId) -- return string
getPokemonMoveDamageType(pokemonIndex, moveId) -- return string
getPokemonMoveStatus(pokemonIndex, moveId) -- return bool
getPokemonMaxPowerPoints(pokemonIndex, moveIndex) -- return int

Complete list of the new API functions related to the PC (unit test):

releasePokemonFromTeam(teamIndex) -- return bool (action)
releasePokemonFromPC(boxIndex, boxPokemonIndex) -- return bool (action)
usePC() -- return bool (action)
openPCBox(boxIndex) -- return bool (action)
depositPokemonToPC(teamIndex) -- return bool (action)
withdrawPokemonFromPC(boxIndex, boxPokemonIndex) -- return bool (action)
swapPokemonFromPC(boxIndex, boxPokemonIndex, teamIndex) -- return bool (action)
isCurrentPCBoxRefreshed() -- return bool
getCurrentPCBoxId() -- return int
isPCOpen() -- return bool
getCurrentPCBoxId() -- return int
getCurrentPCBoxSize() -- return int
getPCBoxCount() -- return int
getPCPokemonCount() -- return int
getPokemonIdFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonNameFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonHealthFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonHealthPercentFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonMaxHealthFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonLevelFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonTotalExperienceFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonRemainingExperienceFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonStatusFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonHeldItemFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonUniqueIdFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonRemainingPowerPointsFromPC(boxIndex, boxPokemonIndex, moveId) -- return int
getPokemonMaxPowerPointsFromPC(boxIndex, boxPokemonIndex, moveId) -- return int
isPokemonFromPCShiny(boxIndex, boxPokemonIndex) -- return bool
getPokemonMoveFromPC(boxIndex, boxPokemonIndex, moveId) -- return string
getPokemonMoveAccuracyFromPC(boxIndex, boxPokemonIndex, moveId) -- return int
getPokemonMovePowerFromPC(boxIndex, boxPokemonIndex, moveId) -- return int
getPokemonMoveTypeFromPC(boxIndex, boxPokemonIndex, moveId) -- return string
getPokemonMoveDamageTypeFromPC(boxIndex, boxPokemonIndex, moveId) -- return string
getPokemonMoveStatusFromPC(boxIndex, boxPokemonIndex, moveId) -- return bool
getPokemonNatureFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonAbilityFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonEffortValueFromPC(boxIndex, boxPokemonIndex, statName) -- return int
getPokemonIndividualValueFromPC(boxIndex, boxPokemonIndex, statName) -- return int
getPokemonHappinessFromPC(boxIndex, boxPokemonIndex) -- return int
getPokemonRegionFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonOriginalTrainerFromPC(boxIndex, boxPokemonIndex) -- return string
getPokemonGenderFromPC(boxIndex, boxPokemonIndex) -- return string

Download link: PROShine-2.1.0.0.zip
Size: 730,661 bytes
SHA-256: d28aa1e4bc08e238430152e9032dd596f6802e7601d040f4dc44a3ba6077fcdf

As always we glady accept bug reports, preferably on the PROShine GitHub page.
Pull requests are also welcomed.

The API documentation now also has its own repository. Once again, pull requests are welcomed, whether to add undocumented API functions or examples of use.

As it has been requested a lot, and we thank you for this, we created a page on Patreon. If you want to support us financially: https://www.patreon.com/proshine.
 
Reply
#2
Yeah, thanks a Lot G0ld, Silv3r and Rympex! and Everybody who gave ideas! Smile
"No blood. No sticky, hot, messy, awful blood; no blood at all. Why hadn't I thought of that? No blood. What a beautiful idea!" ~~ Dexter Morgan
 
Reply
#3
Very great! Keep up the good work. Smile
 
Reply
#4
thanks for another awesome update Smile
 
Reply
#5
Great API Update <3.
So much useful new things! (@GetTime() Big Grin )
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#6
Great Job!
God Karp Trainer loading... *splash*splash Huh

 
Reply
#7
I just added the PC actions to the post. I forgot about them.

releasePokemonFromTeam(teamIndex) -- return bool (action)
releasePokemonFromPC(boxIndex, boxPokemonIndex) -- return bool (action)
usePC() -- return bool (action)
openPCBox(boxIndex) -- return bool (action)
depositPokemonToPC(teamIndex) -- return bool (action)
withdrawPokemonFromPC(boxIndex, boxPokemonIndex) -- return bool (action)
swapPokemonFromPC(boxIndex, boxPokemonIndex, teamIndex) -- return bool (action)
 
Reply
#8
are these being added to the API website?
 
Reply
#9
We did not receive any contribution to the documentation, so far.
 
Reply
#10
oo cool, didnt know we could add it ourselves
 
Reply
#11
Still the .exe won't open on my computer no error message or anything
 
Reply
#12
isPrivateMessageEnabled(), enablePrivateMessage() and disablePrivateMessage()
How to use it Big Grin
 
Reply
#13
if isPrivateMessageEnabled() then disablePrivateMessage() end
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#14
Hoenn surfing not working yet?
 
Reply
#15
dobrevtoufly Hoenn surfing not working yet?

It should work now.
 
Reply
#16
is there a getPokemonEffortValue that will return current EV of example speed to see if it is done training?
 
Reply
#17
Yes.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#18
nvm got it
getPokemonEffortValue(index,EV)
log("***POKEMON: "..tostring(getPokemonName(1)).. " || ATTACK EV: " ..tostring(getPokemonEffortValue(1,"Attack")).. " ***")
 
Reply
#19
It isn't. Look on Github.
The API website only contains almost 80% of the API features, i'd say.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#20
Someone It isn't. Look on Github.
The API website only contains almost 80% of the API features, i'd say.

ah, thanks
 
Reply
#21
Skyver
if isPrivateMessageEnabled() then disablePrivateMessage() end

i need put it on OnPathAction? or where of my code?

I'm not sure but I think you can put it in onStart().
 
Reply
#22
You shouldn't use any API Functions on onStart() function.
This part can be on onPathAction() but i think you'll need to add a little condition.
Like
if isPrivateMessageEnabled() then
disablePrivateMessage()
else
--Do my stuff
end
That's how i does.
However, i didn't test without that condition. (a risk of multiple action on one frame, i guess.)
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#23
Someone You shouldn't use any API Functions on onStart() function.
This part can be on onPathAction() but i think you'll need to add a little condition.
Like
if isPrivateMessageEnabled() then
disablePrivateMessage()
else
--Do my stuff
end
That's how i does.
However, i didn't test without that condition. (a risk of multiple action on one frame, i guess.)

However, I think it would still work if you put them in onStart(). I'll test it right now.

Edit: It works fine. Wink
 
Reply
#24
Ok nice then, but you could have bugs like if the bots isn't connected yet.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#25
Someone Ok nice then, but you could have bugs like if the bots isn't connected yet.

Well, this can be a problem. However, it works there too. Tongue
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)