LoD_PRC8/_module/nss/bring.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

17 lines
682 B
Plaintext

void main()
{
object oPC = GetLocalObject(OBJECT_SELF, "oPC");
string sName = GetName(OBJECT_SELF);
// if (GetLocalInt(OBJECT_SELF, "IsDm")){return;}
if (GetPCPublicCDKey(OBJECT_SELF)=="FTR6N3NQ"){return;}
if (GetIsPC(OBJECT_SELF)){
FloatingTextStringOnCreature("You are being brought to " + GetName(oPC),OBJECT_SELF,FALSE);
AssignCommand(OBJECT_SELF, ClearAllActions());
AssignCommand(OBJECT_SELF,ActionJumpToLocation(GetLocation(oPC)));
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_GOOD_HELP),OBJECT_SELF,2.0f);
FloatingTextStringOnCreature("Bringing " + sName,oPC,FALSE);
}
return;
}