hi, i used a script for change weapon on redbot.
but didnt found it here.
when small stone is over, change to spear else 1h weapon.
but how do i use it on xenobot? any1 knows?

PHP Code:
---redbot script
if (itemcount(1781) > 20//pedra 
{  
    
equipitem(1781"lhand");  
}  

else if (
itemcount(1781) < 10
{  
    
equipitem(7774"lhand"); //arma