18 lines
580 B
Plaintext
18 lines
580 B
Plaintext
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()));
|
|
}
|