Changed folder name.
Changed folder name.
This commit is contained in:
56
_module/nss/noclonecheat.nss
Normal file
56
_module/nss/noclonecheat.nss
Normal file
@@ -0,0 +1,56 @@
|
||||
//Make the clone Destroyable and don't allow thier inventory to get taken..
|
||||
void main()
|
||||
{
|
||||
object oMe = OBJECT_SELF;
|
||||
object oItem = GetFirstItemInInventory(oMe);
|
||||
object oSlot;
|
||||
|
||||
//Take ALL of the clones gold..
|
||||
TakeGoldFromCreature(GetGold(oMe), oMe, TRUE);
|
||||
|
||||
//cycle through the entire inventory and make everything undroppable!!!
|
||||
{
|
||||
int nSlot;
|
||||
for (nSlot = 0; nSlot < NUM_INVENTORY_SLOTS; nSlot++)
|
||||
{
|
||||
oSlot = GetItemInSlot(nSlot, oMe);
|
||||
if(oSlot != OBJECT_INVALID)
|
||||
SetDroppableFlag(oSlot, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
while(GetIsObjectValid(oItem)==TRUE)
|
||||
{
|
||||
SetDroppableFlag(oItem, FALSE);
|
||||
|
||||
oItem = GetNextItemInInventory(oMe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Make the clone well equipped & use good feats!
|
||||
|
||||
AssignCommand(oMe, ActionEquipMostDamagingMelee());
|
||||
DelayCommand(1.0, AssignCommand(oMe, ActionEquipMostDamagingMelee(
|
||||
GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oMe), FALSE)));
|
||||
|
||||
DelayCommand(2.0, AssignCommand(oMe, ActionEquipMostEffectiveArmor()));
|
||||
|
||||
if(GetHasFeat(FEAT_IMPROVED_PARRY,oMe))
|
||||
DelayCommand(4.0, AssignCommand(oMe, ActionUseFeat(
|
||||
FEAT_IMPROVED_PARRY, oMe)));
|
||||
|
||||
if(GetHasFeat(FEAT_IMPROVED_EXPERTISE,oMe))
|
||||
DelayCommand(5.0, AssignCommand(oMe, ActionUseFeat(
|
||||
FEAT_IMPROVED_EXPERTISE, oMe)));
|
||||
|
||||
if(GetHasFeat(FEAT_DWARVEN_DEFENDER_DEFENSIVE_STANCE,oMe))
|
||||
DelayCommand(6.0, AssignCommand(oMe, ActionUseFeat(
|
||||
FEAT_DWARVEN_DEFENDER_DEFENSIVE_STANCE, oMe)));
|
||||
|
||||
if(GetHasFeat(FEAT_MIGHTY_RAGE,oMe))
|
||||
DelayCommand(13.0, AssignCommand(oMe, ActionUseFeat(
|
||||
FEAT_MIGHTY_RAGE, oMe)));
|
||||
|
||||
}
|
Reference in New Issue
Block a user