Throw Splash Weapon(Player's Handbook v.3.5, p. 158)
A splash weapon is a ranged weapon that breaks on impact, splashing or scattering its contents over its target and nearby creatures or objects. Most splash weapons consist of liquids, such as acid or holy water, in breakable vials such as glass flasks. (See Special Substances and Items, page 128, for particulars about several different splash weapons.)
To attack with a splash weapon, make a ranged touch attack against the target. Thrown weapons require no weapon proficiency, so you don't take the -4 nonproficiency penalty. A hit deals direct hit damage to the target, and splash damage to all creatures within 5 feet of the target.
You can instead target a specific grid intersection. Treat this as a ranged attack against AC 5. However, if you target a grid intersection, creatures in all adjacent squares are dealt the splash damage, and the direct hit damage is not dealt to any creature. (You can't target a grid intersection occupied by a creature, such as a Large or larger creature; in this case, you're aiming at the creature.)
If you miss the target (whether aiming at a creature or a grid intersection), roll 1d8. This determines the misdirection of the throw, with 1 being straight back at you and 2 through 8 counting clockwise around the grid intersection or target creature. Then, count a number of squares in the indicated direction equal to the range increment of the throw. So, if you miss on a throw out to two range increments and roll a 1 to determine the misdirection of the throw, the splash weapon lands on the intersection that is 2 squares away from the target in the direction toward you. See the accompanying diagram.
After you determine where the weapon landed, it deals splash damage to all creatures in adjacent squares.