Rune_PRC8/_module/nss/sf_green_eyes.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

66 lines
2.3 KiB
Plaintext

// Created By Scarface
void main()
{
object oPC = GetPCSpeaker();
effect eEffect, eVisEyes;
int iGender = GetGender(oPC), iSub, iType;
switch(GetAppearanceType(oPC))
{
case APPEARANCE_TYPE_DWARF:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_DWARF_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_DWARF_FEMALE);
break;
}
case APPEARANCE_TYPE_ELF:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_ELF_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_ELF_FEMALE);
break;
}
case APPEARANCE_TYPE_GNOME:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_GNOME_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_GNOME_FEMALE);
break;
}
case APPEARANCE_TYPE_HALF_ELF:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HALFELF_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HALFELF_FEMALE);
break;
}
case APPEARANCE_TYPE_HALFLING:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HALFLING_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HALFLING_FEMALE);
break;
}
case APPEARANCE_TYPE_HALF_ORC:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HALFORC_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HALFORC_FEMALE);
break;
}
case APPEARANCE_TYPE_HUMAN:
{
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HUMAN_MALE);
else eVisEyes = EffectVisualEffect(VFX_EYES_GREEN_HUMAN_FEMALE);
break;
}
}
eEffect = GetFirstEffect(oPC);
while (GetIsEffectValid(eEffect))
{
iType = GetEffectType(eEffect);
iSub = GetEffectSubType(eEffect);
if (iType == EFFECT_TYPE_VISUALEFFECT && iSub == SUBTYPE_SUPERNATURAL)
{
RemoveEffect(oPC, eEffect);
}
eEffect = GetNextEffect(oPC);
}
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(eVisEyes), oPC);
}