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

View File

@@ -0,0 +1,48 @@
int GetNextThighIndex( int iIndex)
{
if( iIndex == 2)
iIndex = 3;
if( iIndex == 17)
iIndex = 63;
if( iIndex == 64)
iIndex = 186;
if( iIndex == 187)
iIndex = 1;
return iIndex;
}
void main()
{
//First line of the item customization script
object oPlayer = GetPCSpeaker();
int iSlot = GetLocalInt( OBJECT_SELF, "iSlot");
object oItem = GetItemInSlot( iSlot, oPlayer);
int iIndex = GetItemAppearance( oItem, ITEM_APPR_TYPE_ARMOR_MODEL, ITEM_APPR_ARMOR_MODEL_LTHIGH);
if( GetIsDM( oPlayer))
SendMessageToPC( oPlayer, "The index before is: " + IntToString( iIndex));
iIndex++;
iIndex = GetNextThighIndex( iIndex);
if( GetIsDM( oPlayer))
SendMessageToPC( oPlayer, "The index after is: " + IntToString( iIndex));
object oNewItem = CopyItemAndModify( oItem, ITEM_APPR_TYPE_ARMOR_MODEL, ITEM_APPR_ARMOR_MODEL_LTHIGH, iIndex, TRUE);
object oNewItem2 = CopyItemAndModify( oNewItem, ITEM_APPR_TYPE_ARMOR_MODEL, ITEM_APPR_ARMOR_MODEL_RTHIGH, iIndex, TRUE);
DestroyObject( oNewItem);
if( GetIsObjectValid( oNewItem2))
{
AssignCommand( oPlayer, ActionEquipItem( oNewItem2, iSlot));
DestroyObject( oItem);
}
else
DestroyObject( oNewItem2);
}