Hello There, Guest! Login Register


ProShine Script Creator
#1
[Image: f3350ef46cc1aaf22b20d925c27cf4a0.png]

How To: Watch Me

Future Plans: add all map names to a list for easy searching possibly implement algorithm to generate the path for you based on a starting point and end point.

P.S. You can start typing the name of a specific pokemon in the dropdown box to find it faster!

If the code errors at any point please post a screenshot of the error.

Credits: Zonz, PreciousTrainer

 
Reply
#2
nice idea keep it up mr ice!
 
Reply
#3
Updated
 
Reply
#4
wow u are amazing ice Smile TY
 
Reply
#5
Thanks mate
 
Reply
#6
heey i need help whit this! and how to make it in other maps for ej..



local path = { 'Pokecenter Violet City', 'Violet City', 'Route 31', }

local falseSwipePokeUser = nil

local catchList =
{
}

function onPathAction()
if isPokemonUsable(1) and getRemainingPowerPoints(falseSwipePokeUser, 'False Swipe') > 1 then
if lastMap() then
return moveToGrass() or moveToWater() or moveToNormalGround()
end
elseif firstMap() then
return usePokecenter()
end
end

function onBattleAction()
if isWildBattle() and (isOpponentShiny() or getOpponentForm() ~= 0 or catchList[getOpponentName()]) then
if sendPokemon(falseSwipePokeUser) or (getOpponentHealthPercent() > 30 and useMove('False Swipe')) then
return
end
return useItem('Pokeball') or useItem('Great Ball') or useItem('Ultra Ball') or sendAnyPokemon()
end
return attack() or sendUsablePokemon() or logout()
end

function onStart()
falseSwipePokeUser = getPokemonWithMove('False Swipe')
end

function getPokemonWithMove(moveName)
for i = 1, getTeamSize() do
if hasMove(i, moveName) then
return i
end
end
fatal('No False Swiper could be found')
return nil
end

local function firstMap()
if getMapName() == path[1] then
return true
end
moveToMap(path[getPathIndex() - 1])
end

local function lastMap()
if getMapName() == path[#path] then
return true
end
moveToMap(path[getPathIndex() + 1])
end

local function getPathIndex()
for i = 1, #path do
if getMapName() == path[i] then
return i
end
end
fatal('error: current map is not present in the path table.')
end
 
Reply
#7
(2017-11-03, 13:26:14)kuma heey i need help whit this! and how to make it in other maps for ej..



local path = { 'Pokecenter Violet City', 'Violet City', 'Route 31', }

local falseSwipePokeUser = nil

local catchList =
{
}

function onPathAction()
if isPokemonUsable(1) and getRemainingPowerPoints(falseSwipePokeUser, 'False Swipe') > 1 then
if lastMap() then
return moveToGrass() or moveToWater() or moveToNormalGround()
end
elseif firstMap() then
return usePokecenter()
end
end

function onBattleAction()
if isWildBattle() and (isOpponentShiny() or getOpponentForm() ~= 0 or catchList[getOpponentName()]) then
if sendPokemon(falseSwipePokeUser) or (getOpponentHealthPercent() > 30 and useMove('False Swipe')) then
return
end
return useItem('Pokeball') or useItem('Great Ball') or useItem('Ultra Ball') or sendAnyPokemon()
end
return attack() or sendUsablePokemon() or logout()
end

function onStart()
falseSwipePokeUser = getPokemonWithMove('False Swipe')
end

function getPokemonWithMove(moveName)
for i = 1, getTeamSize() do
if hasMove(i, moveName) then
return i
end
end
fatal('No False Swiper could be found')
return nil
end

local function firstMap()
if getMapName() == path[1] then
return true
end
moveToMap(path[getPathIndex() - 1])
end

local function lastMap()
if getMapName() == path[#path] then
return true
end
moveToMap(path[getPathIndex() + 1])
end

local function getPathIndex()
for i = 1, #path do
if getMapName() == path[i] then
return i
end
end
fatal('error: current map is not present in the path table.')
end

whats the issue?
 
Reply
#8
It is a wonderful work.

Hey , can not you add a mount feature?
Also spore
It would also be perfect if you added day and night functionality.
 
Reply
#9
don't work for me

cannot add any pokecenter
 
Reply
#10
(2017-10-31, 18:40:30)Icesythe7
[Image: f3350ef46cc1aaf22b20d925c27cf4a0.png]

How To: Watch Me

Future Plans: add all map names to a list for easy searching possibly implement algorithm to generate the path for you based on a starting point and end point.

P.S. You can start typing the name of a specific pokemon in the dropdown box to find it faster!

If the code errors at any point please post a screenshot of the error.

Credits: Zonz, PreciousTrainer


chunk_1Sad9,1-94): cannot convert a nil to a clr type System.Int32 it sais this what do i do???
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)