Add @Pokemon.SendToStorage() More Info below:
Usage: @Pokemon.SendToStorage(PokeIndex) @Pokemon.SendToStorage(PokeIndex, BoxIndex) BoxIndex is the selected box you wish to dump into. They start from 0.
This commit is contained in:
parent
00c481f5d4
commit
7eac4b34ef
|
@ -583,6 +583,25 @@
|
||||||
If Core.Player.Pokemons.Count - 1 >= PokemonIndex And Core.Player.Pokemons.Count < 6 Then
|
If Core.Player.Pokemons.Count - 1 >= PokemonIndex And Core.Player.Pokemons.Count < 6 Then
|
||||||
Core.Player.Pokemons.Add(Core.Player.Pokemons(PokemonIndex))
|
Core.Player.Pokemons.Add(Core.Player.Pokemons(PokemonIndex))
|
||||||
End If
|
End If
|
||||||
|
Case "sendtostorage"
|
||||||
|
' @Pokemon.SendToStorage(PokeIndex, [BoxIndex])
|
||||||
|
Dim Data() As String = argument.Split(CChar(","))
|
||||||
|
|
||||||
|
If Data.Length = 1 Then
|
||||||
|
Dim PokemonIndex As Integer = int(Data(0))
|
||||||
|
|
||||||
|
If Core.Player.Pokemons.Count - 1 >= PokemonIndex Then
|
||||||
|
StorageSystemScreen.DepositPokemon(Core.Player.Pokemons(PokemonIndex))
|
||||||
|
Core.Player.Pokemons.RemoveAt(PokemonIndex)
|
||||||
|
End If
|
||||||
|
ElseIf Data.Length = 2 Then
|
||||||
|
Dim PokemonIndex As Integer = int(Data(0))
|
||||||
|
|
||||||
|
If Core.Player.Pokemons.Count - 1 >= PokemonIndex Then
|
||||||
|
StorageSystemScreen.DepositPokemon(Core.Player.Pokemons(PokemonIndex), int(Data(1)))
|
||||||
|
Core.Player.Pokemons.RemoveAt(PokemonIndex)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
IsReady = True
|
IsReady = True
|
||||||
|
|
Loading…
Reference in New Issue