REO-EE/_module/nss/lcs_clk_seewings.nss
Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

46 lines
1.5 KiB
Plaintext

//:://////////////////////////////////////////////
//:: 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 >= nLCSCloak2daRowNoWingsMin1
&& nAppearance <= nLCSCloak2daRowNoWingsMax1)
{
nNewLine = nAppearance - nLCSCloak2daRowNoWingsMin1 + nLCSCloak2daRowWingsMin1;
}
else if (nAppearance >= nLCSCloak2daRowNoWingsMin2
&& nAppearance <= nLCSCloak2daRowNoWingsMax2)
{
nNewLine = nAppearance - nLCSCloak2daRowNoWingsMin2 + nLCSCloak2daRowWingsMin2;
}
else if (nAppearance >= nLCSCloak2daRowNoWingsMin3
&& nAppearance <= nLCSCloak2daRowNoWingsMax3)
{
nNewLine = nAppearance - nLCSCloak2daRowNoWingsMin3 + nLCSCloak2daRowWingsMin3;
}
else
{
SendMessageToPC(oPC, "There is no wing revealing version of this cloak.");
return;
}
string sNewCloakAppearanceName = Get2DAString("cloakmodel", "LABEL", nNewLine);
int nNewCloakHidewing = StringToInt(Get2DAString("cloakmodel", "HIDEWING", nNewLine));
if (sNewCloakAppearanceName == "" || nNewCloakHidewing == 1)
{
SendMessageToPC(oPC, "There is no wing revealing version of this cloak.");
return;
}
lcs_ModifyandEquipNewCloak(oItem, nNewLine);
}