WoR_PRC8/_module/nss/vamprecall.nss

18 lines
580 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
void main()
{
object oPC = GetItemActivator();
if(GetIsInCombat(oPC))
{
SendMessageToPC(oPC, "You cannot use this item while in combat");
return;
}
object oPortal = GetWaypointByTag("VAMP_RECALL_PT");
SetLocalInt(oPC, "VAMPIRE_RECALL", 1);
SetLocalLocation(oPC, "VAMPIRE_RECALL", GetLocation(oPC));
object oClicker = oPC;
AssignCommand(oClicker, ClearAllActions());
AssignCommand(oClicker, PlaySound("as_mg_telepout1"));
AssignCommand(oClicker, JumpToObject(oPortal));
AssignCommand(oClicker, ActionDoCommand(ClearAllActions()));
}