Author Sticky: Post Working Scripts Here
JonnyMongoose Posted: Thursday, 11 July 08:32AM
script name: falltrap
what it does: A trap that sends a PC through the floor
and takes damage
notes: nothing special here
the script:
NWScript:
// Created By JonnyMongoose 7/11/02 //

//This script is used when a PC triggers a trap that sends them down to the

//next floor and causes them to take damage, just change the oWaypoint and

//eDamage to fit your module//



void main()

{

object oClicker = GetClickingObject();

object oWaypoint = GetObjectByTag("NW_WAYPOINT001");

location lLoc = GetLocation(oWaypoint);

AssignCommand(oClicker, JumpToLocation(lLoc));

{

object oPC = GetClickingObject();

effect eDamage = EffectDamage(4);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC) ;

 }

}