I use ACTION TO MINIMIZE EQUIP ibot which make me bring out pk

Minimized equip ... when I minimize the team on many occasions my pvp mode is changed,,,, DOVE PVP MODE to RED FIST FIGHTING FIGHTING MODE PVP and when you have several monsters on my screen the ibot selected by battle, and if a player is among my battle click on it and makes me take pk ... are more than 7 occasions in which this happens ...

NEED AN ACTION WHICH COMPARE MODE PVP,,,, AND IF THE MODE OF DOVE PVP MODE IS CHANGED TO RED MODE PVP FIST FIGHTING , THEN SELECT MODE PVP DOVE FIGHTING AGAIN ....

local MainBP = "backpack name"

if windowcount(MainBP) < 1
then higherwindows("equip")
else
wait (2100,2300)
minimizewindows("equip")
end