Hello, before everything, if i made this topic in wrong section i apologies.
Now, i made NPC Duplica that sell ditto for 10 diamonds and exchange ditto +50 + 350 diamonds into shiny ditto.
Everything work good but there is some errors that i dont know to fix
duplica.lua
Now, problems: (I'm using PDA)
1. when i buy ditto it show in inventory, but it is in normal (poke) ball, and i got icon system. after i relog everything is normal.
if i try open pokeball before relog i get error:
2. If pokeslot is empty i get this whenever i log in: