Rune_PRC8/_module/nss/opw_oe_dmacct.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

49 lines
1.5 KiB
Plaintext

////////////////////////////////////////////////////////////////////////////////
// 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));
}
}