//::////////////////////////////////////////////// //:: Created By: Cuprius //:: Created On: 2/18/2008 //::////////////////////////////////////////////// #include "lcs_settings" #include "lcs_clk_include" void main() { object oPC = GetPCSpeaker(); object oItem = GetItemInSlot(INVENTORY_SLOT_CLOAK, oPC); int nNewLine; int nAppearance = GetItemAppearance(oItem, ITEM_APPR_TYPE_SIMPLE_MODEL, 0); if (nAppearance >= nLCSCloak2daRowWingsMin1 && nAppearance <= nLCSCloak2daRowWingsMax1) { nNewLine = nAppearance - nLCSCloak2daRowWingsMin1 + nLCSCloak2daRowNoWingsMin1; } else if (nAppearance >= nLCSCloak2daRowWingsMin2 && nAppearance <= nLCSCloak2daRowWingsMax2) { nNewLine = nAppearance - nLCSCloak2daRowWingsMin2 + nLCSCloak2daRowNoWingsMin2; } else if (nAppearance >= nLCSCloak2daRowWingsMin3 && nAppearance <= nLCSCloak2daRowWingsMax3) { nNewLine = nAppearance - nLCSCloak2daRowWingsMin3 + nLCSCloak2daRowNoWingsMin3; } else { SendMessageToPC(oPC, "There is no wing concealing version of this cloak."); return; } string sNewCloakAppearanceName = Get2DAString("cloakmodel", "LABEL", nNewLine); int nNewCloakHidewing = StringToInt(Get2DAString("cloakmodel", "HIDEWING", nNewLine)); if (sNewCloakAppearanceName == "" || nNewCloakHidewing == 0) { SendMessageToPC(oPC, "There is no wing concealing version of this cloak."); return; } lcs_ModifyandEquipNewCloak(oItem, nNewLine); }