If I understood with this system when a wild pokemon appears it wouldn't attack the trainer.
Only the trainer's pokemon right ?
info
Group: Campones
Joined: 08/12/09
Posts: 76
Reputation: +27
Tibia Character: Zoralurk

If I understood with this system when a wild pokemon appears it wouldn't attack the trainer.
Only the trainer's pokemon right ?
Yes.
The attacked pokemon (wild) will only change target after it loses some life, because you used the function onStatsChange.
Try making it with onAttack / onCombat, and it will change once you click to attack it.
info
Group: Banidos
Joined: 20/11/10
Posts: 35
Reputation: +6
Tibia Character: Peei
When monsters appears then go attack to player but with this system you have no errors.
Go to creaturescripts/scripts/ create a lua file called attackpokemon.lua and put this:
Creaturescripts.xml
Now go to login.lua and put:
Bye bye