Updating scripts for PRC.
Updating scripts for PRC.
This commit is contained in:
@@ -1,37 +1,38 @@
|
||||
//Created by Genisys / Guile 5/20/08
|
||||
#include "x2_inc_switches"
|
||||
#include "prc_class_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
oPC = GetPCItemLastEquippedBy();
|
||||
object ranger = oPC;
|
||||
object oItem;
|
||||
int nSlot;
|
||||
int a =GetLevelByClass(CLASS_TYPE_RANGER, ranger);
|
||||
{
|
||||
object oPC = GetPCItemLastEquippedBy();
|
||||
object oItem;
|
||||
|
||||
int nSlot;
|
||||
int nRanger = GetLevelByClass(CLASS_TYPE_RANGER, oPC);
|
||||
|
||||
//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);
|
||||
//:: If not level 21 ranger unequip it!
|
||||
if(nRanger <= 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);
|
||||
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
|
||||
}
|
||||
if (GetIsObjectValid(oItem))
|
||||
{
|
||||
//: Unequip all item tag named "artifact"
|
||||
if(GetTag(oItem) == "ranger")
|
||||
{
|
||||
AssignCommand(oPC, ActionUnequipItem(oItem));
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("You feel the power of nature flowing through you!", oPC, FALSE);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user