Hello :) recently i made a thread in 'Help' section, but nobody helped me ¬¬, when beforeBattleStarted event is called, weard values are passed to the function. Using 2.5.0 the values are: Code (text): (src = 3, tar = 1, clauses = 451, rated = false, mode = 0, id = 1, team1 = 1, team2 = 2) But using 2.6.1 the values are: Code (text): (src = 2, tar = 1, clauses = 451, rated = false, mode = 0, id = 1, team1 = 2672464, team2 = 0, 2672960, 0) Now, i use a lot the beforeBattleStarted Event and im forced to use 2.6.1 please fix it :c
I think I saw this post but wasn't sure how to help. I know a lot about client scripting, a bit of battle scripting and little server scripting. But I'm guessing this change is related to the newly added Hackmons tier or something. I don't know if this will help but. There's a small guide explaining stuff here. https://github.com/po-devs/pokemon-online/wiki/Server-Script-Events You could experiment by using one Pokemon and change 1 thing at a time and re-battle to see how it effects the values. Try starting a battle with same Pokemon 2 times. Change a move, try illegal move, change ability, try Hackmon ability, EV values. I once was researching client.player(userId).flags on client script and each user had a different integer between 0 and 7 and discovered this after testing around. Spoiler: client.player(userId).flags var flagArray = []; flagArray[0] = "Idle Off / Ladder Off / Not In Battle"; flagArray[1] = "Idle On / Ladder Off / Not In Battle"; flagArray[2] = "Idle Off / Ladder On / Not In Battle"; flagArray[3] = "Idle On / Ladder On / Not In Battle"; flagArray[4] = "Idle Off / Ladder Off / In Battle"; flagArray[5] = "Idle On / Ladder Off / In Battle"; flagArray[6] = "Idle Off / Ladder On / In Battle"; flagArray[7] = "Idle On / Ladder On / In Battle"; Could be similar to the issue your having. Hope this helps. Sorry if I'm not much more help though.