#library "BOTSAI"
#include "zcommon.acs"

script 150 ENTER
{
    if(PlayerIsBot(playernumber()))
    {
		//Humans
		if(checkInventory("Riotgun")>=1)//Marine
        {
            ACS_Execute(151 , 0, 0);
        }
		
		if(checkInventory("Bow")>=1)//Hunter
        {
            ACS_Execute(151 , 0, 1);
        }
		
		if(checkInventory("GhostBusterPlasma")>=1)//Ghostbuster
        {
            ACS_Execute(151, 0, 2);
        }
		
		if(checkInventory("FireStaff")>=1)//Warlock
        {
            ACS_Execute(151, 0, 3);
        }
		
		if(checkInventory("Shotgun-Blade")>=1)//Planeswalker
        {
            ACS_Execute(151, 0, 4);
        }
		
		if(checkInventory("DeathDart")>=1)//Witchhunter
        {
            ACS_Execute(151, 0, 5);
        }
		
		if(checkInventory("SawLauncher")>=1)//Engineer
        {
            ACS_Execute(151, 0, 6);
        }
		
		if(checkInventory("SjasScreamer")>=1)//Sjas
        {
            ACS_Execute(151, 0, 7);
        }
		
		if(checkInventory("ChokeTeeth-Ball")>=1)//Choke
        {
            ACS_Execute(151, 0, 8);
        }
		
		if(checkInventory("FrostTeeth-Breath")>=1)//Frosty
        {
            ACS_Execute(151, 0, 9);
        }
		
		if(checkInventory("CreeperWeaponStun")>=1)//Creeper
        {
            ACS_Execute(151, 0, 10);
        }
		
		if(checkInventory("DiggaWep")>=1)//Impaler
        {
            ACS_Execute(151, 0, 11);
        }
		
		if(checkInventory("GhostHands")>=1)//Nightmare
        {
            ACS_Execute(151, 0, 12);
        }
		
		if(checkInventory("MorphScreamer")>=1)//Mohoph
        {
            ACS_Execute(151, 0, 13);
        }
	}
}

Script 151 (int type)
{
	switch (type)
	{
		case 0:
			GiveInventory("BotRiotgun",1);
			Delay(1);
			SetWeapon("BotRiotgun");
			Delay(35*15);
			SetWeapon("Machinegun");
			Delay(35*15);
			SetWeapon("DualPistols");
			Delay(35*15);
		Restart;
		case 1:
			GiveInventory("BotBow",1);
			Delay(1);
			SetWeapon("BotBow");
		break;
		case 2:
			Delay(10*35);
			GiveInventory("ProtonCharge",50);
		Restart;
		case 3:
			GiveInventory("FireStaffAmmo",15);
			GiveInventory("BotFireStaff",1);
			Delay(1);
			SetWeapon("BotFireStaff");
			Delay(35*15);
			GiveInventory("BotIceHands",1);
			Delay(1);
			SetWeapon("BotIceHands");
			Delay(35*15);
			GiveInventory("BotLightningHands",1);
			Delay(1);
			GiveInventory("LightningAmmo",8);
			SetWeapon("BotLightningHands");
			Delay(35*15);
		Restart;
		case 4:
			GiveInventory("BotShotgun-Blade",1);
			Delay(1);
			SetWeapon("BotShotgun-Blade");
			Delay(35*10);
			GiveInventory("BotShotgun-Dash",1);
			Delay(1);
			SetWeapon("BotShotgun-Dash");
			Delay(35*10);
			GiveInventory("BotShotgun-Vortex",1);
			Delay(1);
			SetWeapon("BotShotgun-Vortex");
			Delay(35*10);
		Restart;
		case 5:
			GiveInventory("BotDeathDart",1);
			Delay(1);
			SetWeapon("BotDeathDart");
			Delay(35*10);
			GiveInventory("BotWitchLaser",1);
			Delay(1);
			SetWeapon("BotWitchLaser");
			Delay(35*10);
			GiveInventory("BotHeartSeeker",1);
			Delay(1);
			SetWeapon("BotHeartSeeker");
			Delay(35*10);
		Restart;
		case 6:
			GiveInventory("SawAmmo",5);
			GiveInventory("BotSawLauncher",1);
			Delay(1);
			SetWeapon("BotSawLauncher");
			Delay(35*10);
			SetWeapon("Nailgun");
			Delay(35*10);
		Restart;
		case 7:
			GiveInventory("BotSjasScreamer",1);
			Delay(1);
			SetWeapon("BotSjasScreamer");
		break;
		case 8:
			GiveInventory("BotChokeTeeth-Ball",1);
			Delay(1);
			SetWeapon("BotChokeTeeth-Ball");
			Delay(20*35);
			GiveInventory("BotChokeTeeth-Vomit",1);
			Delay(1);
			SetWeapon("BotChokeTeeth-Vomit");
			Delay(20*35);
		Restart;
		case 9:
			GiveInventory("BotFrostTeeth-Breath",1);
			Delay(1);
			SetWeapon("BotFrostTeeth-Breath");
		break;
		case 10:
			GiveInventory("BotCreeperWeapon",1);
			Delay(1);
			SetWeapon("BotCreeperWeapon");
		break;
		case 11:
			GiveInventory("BotDiggaWep",1);
			Delay(1);
			SetWeapon("BotDiggaWep");
		break;
		case 12:
			GiveInventory("BotGhostHands",1);
			Delay(1);
			SetWeapon("BotGhostHands");
		break;
		case 13:
			GiveInventory("BotMorphScreamer",1);
			Delay(1);
			SetWeapon("BotMorphScreamer");
		break;
	}
}