////////////////////////////////////////////////////////// /* Item Appearance Modification Conversation Cycle prev part Changes the appearance of the currently active armorpart on the tailor to the previous appearance */ // created/updated 2003-06-24 Georg Zoeller, Bioware Corp // modified Kamiryn 2006-07-23 ////////////////////////////////////////////////////////// #include "x2_inc_craft" #include "mk_inc_craft" void main() { int nPart = GetLocalInt(OBJECT_SELF,"X2_TAILOR_CURRENT_PART"); int nPart2 = GetLocalInt(OBJECT_SELF,"MK_TAILOR_CURRENT_PART2"); object oPC = GetPCSpeaker(); object oItem = CIGetCurrentModItem(oPC); if(GetIsObjectValid(oItem) == TRUE) { // Store the cost for modifying this item here object oNew; AssignCommand(oPC,ClearAllActions(TRUE)); int nInventorySlot=-1; float fDelay=0.0; switch (CIGetCurrentModMode(oPC)) { case X2_CI_MODMODE_ARMOR: oNew = MK_GetModifiedArmor(oItem, nPart, X2_IP_ARMORTYPE_PREV, TRUE); if ((nPart2>=0) && (nPart20.0) { ClearAllActions(); ActionPauseConversation(); ActionWait(fDelay); ActionResumeConversation(); } AssignCommand(oPC, ActionEquipItem(oNew, nInventorySlot)); } } }