Hello There, Guest! Login Register


Snippet How to use a Mount in your Script
#1
Well I have tested this and it works!
For those of you who wanted to know....
if not isMounted() then
     return useItem("Arcanine Mount")

Example:

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Cerulean" then
            moveToMap("Cerulean City")
        elseif getMapName() == "Cerulean City" then
                if not isMounted() then
                return useItem("Arcanine Mount")
            else moveToMap("Route 4")
                end
        elseif getMapName() == "Route 4" then
                if not isMounted() then
                return useItem("Arcanine Mount")
            else moveToRectangle(71, 20, 79, 28)
                end
        end

You can change "Arcanine Mount" to any of the mounts Smile Enjoy!
 
Reply
#2
We can also check for two or more mounts in the same script:

if ( hasItem("Arcanine Mount") or hasItem("Bicycle") ) and not isMounted() then
    return useItem("Arcanine Mount") or useItem("Bicycle")
else
    -- ...
end
 
Reply
#3
NICEEEE
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)