Ok, so when I used [Only registered and activated users can see links. ] tutorial for autocasting, I got no errors. But, when I tested it out it almost work, except for the button on the attack menu that says "Attack With". I cannot selected, thus I cannot autocast. How do I fix this? My base is All-star. I have tried changing the case numbers but that didn't work. Here is whats suppose to be for the button (I think):
Code:
case 51080:			
			for(int index = 0; index < MageAB.length; index++)
			{
				if(actionButtonId == MageAB[index])
				{
					AutoCast_SpellIndex = index;
					sendFrame246(329, 200, playerEquipment[playerWeapon]);
					sendMessage("Autocasting Activated");
					setSidebarInterface(0, 328);
				}
			}
			break;