//Script Name: onplayerequipted ////////////////////////////////////////// //Created By: Genisys (Guile) //Created On: 5/10/08 (updated 8/10/08) ///////////////////////////////////////// /* This script handles the equipping of all items tagged "arena" Players cannot equip items in the arena unless it's tagnamed "arena" Likewise players cannot equipt items tagnamed "arena" outside of the arena. */ //////////////////////////////////////// //Required Include #include "x2_inc_switches" //Main Script void main() { //Declare Major Variables object oItem = GetPCItemLastEquipped(); object oPC = GetPCItemLastEquippedBy(); int nSlot; object nItem; //You need to assign the tagname "TheArena" to any areas you deem as an Arena //All items tagnamed "Arena" are unequipped if the person is NOT in the Arena. //All Non-Arena items are unequipped if the player is IN the Arena //If the player is in the arena and eqiupping a non-arena item if(GetTag(GetArea(oPC)) == "TheArena") { for (nSlot=0; nSlot