RoT2_PRC8/_module/nss/cb_pvp_chkitems.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

29 lines
568 B
Plaintext

object oDeny;
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetTag(GetItemInSlot(INVENTORY_SLOT_HEAD, oPC)) != "PVPHELM")
{
oDeny = GetWaypointByTag("trin_home_01");
AssignCommand(oPC, JumpToObject(oDeny));
return;
}
if (GetItemPossessedBy(oPC, "PVPTOKEN")== OBJECT_INVALID)
{
oDeny = GetWaypointByTag("trin_home_01");
AssignCommand(oPC, JumpToObject(oDeny));
return;
}
FloatingTextStringOnCreature("YOU CANNOT ENTER THE ARENA UNLESS YOU ARE WEARING THE PVP HELM AND POSSES A PVP TOKEN", oPC);
}