All pastes #409731 Raw Edit

Something

public text v1 · immutable
#409731 ·published 2007-03-25 21:47 UTC
rendered paste body
public string GetBagType( string BagName )
        {
            string btype;

            if (BagName == "Spellfire Bag" || BagName.Contains("Enchant"))
		        btype = "enchanting";
	        if (BagName.Contains("Toolbox"))
		        btype = "engineering";
	        if (BagName == "Bag of Jewels" || BagName == "Gem Pouch")
		        btype = "jewelcrafting";
	        if (BagName == "Satchel of Cenarius" || BagName.Contains("Herb"))
	        	btype = "herbalism";
	        if (BagName.Contains("Mining"))
	        	btype = "mining";
	        if (BagName == "Ebon Shadowbag" || BagName.Contains("Felcloth") || BagName.Contains("Soul"))
	        	btype = "shard";
	        if (BagName.Contains("Quiver") || BagName == "Ancient Sinew Wrapped Lamina")
	        	btype = "arrow";
	        if (BagName.Contains("Ammo Pouch") || BagName.Contains("Shot Pouch") || BagName.Contains("Ammo Sack") || BagName.Contains("Bandolier"))
	        	btype = "bullet";
            else btype = "normal";

            return btype;
        }