UW2_PRC8/_module/nss/noclonecheat.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

57 lines
1.5 KiB
Plaintext

//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)));
}