Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2022-10-07 14:20:31 -04:00
parent 0bbbd2678a
commit 128e7e59a4
7060 changed files with 4955665 additions and 0 deletions

37
module/nss/eq_ranger.nss Normal file
View File

@@ -0,0 +1,37 @@
//Created by Genisys / Guile 5/20/08
#include "x2_inc_switches"
void main()
{
object oPC;
oPC = GetPCItemLastEquippedBy();
object ranger = oPC;
object oItem;
int nSlot;
int a =GetLevelByClass(CLASS_TYPE_RANGER, ranger);
//If not level 21 ranger unequip it!
if(a<=20)
{
//Tell the PC why they can't equip it..
FloatingTextStringOnCreature("You must be at least a level 21 ranger to use this item!", oPC, FALSE);
for (nSlot=0; nSlot<NUM_INVENTORY_SLOTS; nSlot++)
{
oItem=GetItemInSlot(nSlot, oPC);
if (GetIsObjectValid(oItem))
{
//Unequip all item tag named "artifact"
if(GetTag(oItem) == "ranger")
{
AssignCommand(oPC, ActionUnequipItem(oItem));
}
else
{ }
}
}
}
//End Script
}