PoA_PRC8/_module/nss/arrowhead.nss

20 lines
638 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object ranger = GetEnteringObject();
int a =GetLevelByClass(CLASS_TYPE_RANGER,ranger);
if (a <= 25)
{
SendMessageToPC(ranger, "You notice a crude carving of an Arrowhead in the crystal.");
}
if (a == 30 && GetItemPossessedBy(ranger, "Arrowhead") != OBJECT_INVALID)
{
DestroyObject(GetItemPossessedBy(ranger, "Arrowhead"));
location crumble = GetLocation(GetWaypointByTag("ranger2"));
SendMessageToPC(ranger, "You notice a crude carving of an arrow in the crystal. As you place the arrowhead in the crystal you are teleported!");
DelayCommand(3.0, AssignCommand(ranger, JumpToLocation(crumble)));
}
}