Update vat_givedmfi.nss

Added PC messages for Language tokens.
This commit is contained in:
Jaysyn904 2025-01-03 11:58:42 -05:00
parent d1c309ae63
commit 3d724b934d

View File

@ -42,6 +42,7 @@ void main()
|| (GetLevelByClass(CLASS_TYPE_TENEBROUS_APOSTATE, oPC) != 0))
{
GiveDMFI(oPC, "hlslang_11");
SendMessageToPC(oPC, "Abyssal language given.");
}
//:: Celestial
@ -60,6 +61,7 @@ void main()
|| (GetLevelByClass(CLASS_TYPE_SLAYER_OF_DOMIEL, oPC) != 0))
{
GiveDMFI(oPC, "hlslang_10");
SendMessageToPC(oPC, "Celestial language given.");
}
//::Infernal
@ -77,6 +79,7 @@ void main()
|| (GetLevelByClass(CLASS_TYPE_DIABOLIST, oPC) != 0))
{
GiveDMFI(oPC, "hlslang_12");
SendMessageToPC(oPC, "Infernal language given.");
}
//:: Animal
@ -84,6 +87,7 @@ void main()
(GetLevelByClass(CLASS_TYPE_MONK, oPC) > 16) || (GetLevelByClass(CLASS_TYPE_FOCHLUCAN_LYRIST, oPC) != 0))
{
GiveDMFI(oPC, "hlslang_8");
SendMessageToPC(oPC, "Animal language given.");
}
//:: Draconic
@ -94,30 +98,35 @@ void main()
(GetLevelByClass(CLASS_TYPE_VASSAL, oPC)!=0) || (GetLevelByClass(CLASS_TYPE_SWIFT_WING, oPC)!=0) || (GetLevelByClass(CLASS_TYPE_TALON_OF_TIAMAT, oPC)!=0))
{
GiveDMFI(oPC, "hlslang_7");
SendMessageToPC(oPC, "Draconic language given.");
}
//:: Drow
if (GetRacialType(oPC) == RACIAL_TYPE_DROW_MALE || GetRacialType(oPC) == RACIAL_TYPE_DROW_FEMALE || GetRacialType(oPC) == RACIAL_TYPE_HALFDROW)
{
GiveDMFI(oPC, "hlslang_13");
SendMessageToPC(oPC, "Drow language given.");
}
//:: Dwarven
if (MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF)
{
GiveDMFI(oPC, "hlslang_4");
SendMessageToPC(oPC, "Dwarven language given.");
}
//:: Elven
if ((MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF) || (MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFELF))
{
GiveDMFI(oPC, "hlslang_1");
SendMessageToPC(oPC, "Elven language given.");
}
//:: Gnome
if (MyPRCGetRacialType(oPC) == RACIAL_TYPE_GNOME)
{
GiveDMFI(oPC, "hlslang_2");
SendMessageToPC(oPC, "Gnomish language given.");
}
//:: Goblin
@ -126,12 +135,14 @@ void main()
(GetRacialType(oPC) == RACIAL_TYPE_SUNSCORCH_HOBGOBLIN))
{
GiveDMFI(oPC, "hlslang_6");
SendMessageToPC(oPC, "Goblin language given.");
}
//:: Halfling
if (MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFLING)
{
GiveDMFI(oPC, "hlslang_3");
SendMessageToPC(oPC, "Halfling language given.");
}
//:: Orc
@ -139,6 +150,7 @@ void main()
GetRacialType(oPC) == RACIAL_TYPE_GRAYORC || GetRacialType(oPC) == RACIAL_TYPE_ORC)
{
GiveDMFI(oPC, "hlslang_5");
SendMessageToPC(oPC, "Orc language given.");
}
//:: Thieves' Cant
@ -149,5 +161,6 @@ void main()
(GetLevelByClass(CLASS_TYPE_SHADOWDANCER, oPC)!=0))
{
GiveDMFI(oPC, "hlslang_9");
SendMessageToPC(oPC, "Thieves' language given.");
}
}