generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
48
_module/nss/opw_oe_dmacct.nss
Normal file
48
_module/nss/opw_oe_dmacct.nss
Normal file
@@ -0,0 +1,48 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// DM Player Qualified Room
|
||||
// opw_oe_dmacct
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Sends Non Qualified Players to Start Location
|
||||
// Place this script in the Trigger On Enter Event
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
object oTrigger = OBJECT_SELF;
|
||||
string sPCAccount = GetPCPlayerName(oPC);
|
||||
|
||||
//Valid Accounts
|
||||
string sAccount1 = "";
|
||||
string sAccount2 = "";
|
||||
string sAccount3 = "";
|
||||
string sAccount4 = "";
|
||||
|
||||
if(sPCAccount == sAccount1
|
||||
|| sPCAccount == sAccount2
|
||||
|| sPCAccount == sAccount3
|
||||
|| sPCAccount == sAccount4)
|
||||
{
|
||||
SendMessageToPC(oPC,"Welcome DM!");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
location lStart = GetStartingLocation();
|
||||
float fDelay = 1.0;
|
||||
effect eFX1 = EffectVisualEffect(VFX_IMP_UNSUMMON);
|
||||
effect eFX2 = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_2);
|
||||
|
||||
AssignCommand(oPC,ClearAllActions(TRUE));
|
||||
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectDazed(), oPC, 10.0));
|
||||
DelayCommand(fDelay + 3.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eFX1, oPC));
|
||||
DelayCommand(fDelay + 4.0, AssignCommand(oPC, JumpToLocation(lStart)));
|
||||
DelayCommand(fDelay + 6.0, AssignCommand(oPC, JumpToLocation(lStart)));
|
||||
DelayCommand(fDelay + 6.1, ApplyEffectToObject(DURATION_TYPE_INSTANT, eFX2, oPC));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user