PoA_PRC8/module/nss/lowkicheck.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

18 lines
476 B
Plaintext

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));
}