///////////////////////////////////////////////// //Script Name: restrict_door ///////////////////////////////////////////////// //Ultimate Teleport Script v 1.3 - (TEMPLATE) ///////////////////////////////////////////////// //Designed By: Amurayi (mschdesign@hotmail.com) //Modified By: Genisys (galefer003@hotmail.com) /*Modified On: 8/22/08 ///////////////////////////////////////////////// IMPORTANT: This is a TEMPLATE, so, save it under a new name FIRST! NOTE: If you want to require that the party have an item to open the door, the door should STILL only be used by the person with the item, however you can choose the teleport party option, and that will be how you handle that kind of a restriction. */ ///////////////////////////////////////////////////////////////////////// ////////////////IMPORTANT SETTINGS/////////////////////////////////////// ///////////////////////////////////////////////////////////////////////// //Teleport Settings.. //Enter the tagname of the waypoint the PC will be teleported to const string sTagname = "tagname"; //What is the tagname of the waypoint? //Set to 1 if you want to use fancy Visual Effects in the teleport const int nVisuals = 0; //(0 = Default, don't play animations) //Set to 1 if you want to teleport the whole party of the PC const int iTeleportWholeParty = 0; //(Default = 0, don't teleport party) //Set to 1 if you want the Associates of the PC to be teleporeted as well. const int iTeleportAssociateToo = 1; //(Default = 1, teleport associates) //Restriction settings.. //Set this to 1 if you want to restrict the door use to DM Only! const int nDM = 0; //0 = Default - Any PC or DM can use the door.. //Set this # to the level required to use the door, note the PC must be //equal to or higher than this level or the door won't do anything! const int nPCLevel = 0; //0 = Default No Level Required //Set this to 1 if you want to Require the PC has an Evil Alignment const int nEvil = 0; //0 = Default - Evil Alignment is NOT Checked. //Set this to 1 if you want to Require the PC has a Good Alignment const int nGood = 0; //0 = Default - Good Alignment is NOT Checked. //NOTE: This check can only make sure they are neutral, that's it! //Set this to 1 if you want to Require the PC has ANY Neutral Alignment const int nNeutral = 0; //0 = Default - Nuetral Alignment is NOT Checked. //Set this to 1 if you want to Require the PC has a Chaotic Alginament const int nChaotic = 0; //0 = Default - Chaotic Alignment is NOT Checked. //Set this to 1 if you want to require the PC has a Lawful Alignment const int nLawful = 0; //0 = Default - Lawful Alignment is NOT Checked //Set the tagname below of the item required to use the door. const string sItemName = "tagname"; //default = "tagname" no item required. /////////////////////////////////////////////////////////////////////// //NOTE: I did not put in Variable restrictions you will have to code //this yourself where it says //Add additional code here...(below) /////////////////////////////////////////////////////////////////////// //OPTIONS END ///////////////////////////////////////////////////////////////////////// //DON'T TOUCH ANYTHING BELOW Unless your adding code. (Where it says to!) ///////////////////////////////////////////////////////////////////////// //PROTOTYPE DECLARED void JumpAssociate(object i_oPC, int i_type, object i_oWP); //Main Script void main() { //Declare Major Variables.. object oPC; oPC = GetClickingObject(); object oItem; /////////////////////////////////////////////////////////////////////// //RESTRICTIONS... if(nPCLevel != 0) { if(GetHitDice(oPC)