/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnUsed
void main()
{

object oPC = GetLastUsedBy();

if (!GetIsPC(oPC)) return;

int nInt;
nInt=GetLocalInt(oPC, "c42Started");

if (!(nInt == 1))
   return;

FloatingTextStringOnCreature("The voice from the room bellow out, 'FOOLS, YOU CAN NOT ESCAPE.'", oPC);

object oCaster;
oCaster = GetObjectByTag("c42Door");

object oTarget;
oTarget = oPC;

AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_WEB, oTarget, METAMAGIC_ANY, TRUE, 6, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));

}
