PoA_PRC8/_module/nss/lowkicheck.nss

18 lines
476 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetEnteringObject();
object oItem = GetItemPossessedBy(oPC, "lowki");
if(oItem == OBJECT_INVALID)
{
CreateItemOnObject("lowki", oPC, 1);
return;
}
object oWay = GetWaypointByTag("home");
string sMsg = "You have already defeated this area, you are not permitted to enter again.";
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToObject(oWay));
DelayCommand(7.0, FloatingTextStringOnCreature(sMsg, oPC, FALSE));
}