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