Rune_PRC8/_module/nss/vat_getnextarmor.nss

38 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-09-13 09:10:39 -04:00
//::///////////////////////////////////////////////
//:: vat_getnextarmor
//:: Conversation Action Taken
//:: Change armor appearance
//:://////////////////////////////////////////////
#include "inc_changearmor"
void main()
{
//change the armor item
int iItemAppr = GetLocalInt(GetPCSpeaker(),"iItemAppr");
armorModelNext(iItemAppr);
//for left pieces, modify the right piece also
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LBICEP)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RBICEP));
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LFOOT)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RFOOT));
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LFOREARM)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RFOREARM));
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LHAND)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RHAND));
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LSHIN)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RSHIN));
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LSHOULDER)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RSHOULDER));
if (iItemAppr == ITEM_APPR_ARMOR_MODEL_LTHIGH)
DelayCommand(0.2, armorModelNext(ITEM_APPR_ARMOR_MODEL_RTHIGH));
}