From D&D Wiki
|This material is published under the OGL|
|Level:||Sor/Wiz 6, Time 6|
|Components:||V, S, M, F|
|Casting time:||At least 10 minutes; see text|
|Duration:||One day/level (D) or until discharged|
You can place another spell upon your person so that it comes into effect under some condition you dictate when casting contingency. The contingency spell and the companion spell are cast at the same time. The 10-minute casting time is the minimum total for both castings; if the companion spell has a casting time longer than 10 minutes, use that instead.
The conditions needed to bring the spell into effect must be clear, although they can be general. In all cases, the contingency immediately brings into effect the companion spell, the latter being “cast” instantaneously when the prescribed circumstances occur. If complicated or convoluted conditions are prescribed, the whole spell combination (contingency and the companion magic) may fail when called on. The companion spell occurs based solely on the stated conditions, regardless of whether you want it to.
You can use only one contingency spell at a time; if a second is cast, the first one (if still active) is dispelled.
Focus: A statuette of you carved from elephant ivory and decorated with gems (worth at least 1,500 gp). You must carry the focus for the contingency to work.