Thread: [Essentials Script] GTS System
View Single Post
  #26   Link to this post, but load the entire thread.  
Old April 1st, 2014 (7:08 PM).
~JV~'s Avatar
~JV~ ~JV~ is offline
Dev of Pokémon Uranium
    Join Date: Aug 2007
    Location: Rio de Janeiro
    Age: 24
    Nature: Relaxed
    Posts: 714
    Originally Posted by hansiec View Post
    As of why the error is happening, I don't know. But, I am almost certain this is because the pokemon you selected somehow managed to be classified as "nil" have you tried this on a clean version of essentials with the newest version of the GTS?
    5 mins after posting I figured out it was an error on the script itself. On line 385 "pkmn = $[choice[1]].clone" was trying to clone something that didn't exist since the pokémon I was trading was on the deposit. Adding a "if Party" to the end of the line was enough to fix the bug, since now that it checks where it was selected from it can run the next line "pkmn = $PokemonStorage[choice[0]][choice[1]].clone if !party" which is the one used on my case.
    Reply With Quote