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

20 lines
413 B
Plaintext

object oDeny;
void main()
{
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN);
if (IsInConversation(OBJECT_SELF) || GetIsInCombat()) return;
if (GetTag(GetItemInSlot(INVENTORY_SLOT_HEAD, oPC)) != "PVPHELM")
{
oDeny = GetWaypointByTag("trin_home_01");
AssignCommand(oPC, JumpToObject(oDeny));
return;
}
}