#include "prc_x2_craft" void main() { object oPC=GetPCSpeaker(); object oItem = CIGetCurrentModItem(GetPCSpeaker()); // object oNew = IPCreateAndModifyArmorRobe(oItem,1 ); // if (oItem != oNew) // { // DestroyObject(oItem); // AssignCommand(GetPCSpeaker(),ActionEquipItem(oNew,INVENTORY_SLOT_CHEST)); // CISetCurrentModItem(GetPCSpeaker(),oNew); // } // show a casual robe object oNew = IPCreateAndModifyArmorRobe(oItem,2); CISetCurrentModItem(oPC,oNew); AssignCommand(oPC, ActionEquipItem(oNew, INVENTORY_SLOT_CHEST)); int nCost = 1200; int nDC =25; if (GetIsDM(GetPCSpeaker())||GetIsDMPossessed(GetPCSpeaker())) { nCost=0; nDC=0; } CIUpdateModItemCostDC(oPC, nDC, nCost); }