Initial upload
Initial upload
This commit is contained in:
19
_module/nss/cb_pvp_hb.nss
Normal file
19
_module/nss/cb_pvp_hb.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user