Files
HeroesStone_PRC8/_module/nss/red_fariqtrig2.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

55 lines
2.0 KiB
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.2
For download info, please visit:
http://www.angelfire.com/space/lilacsoul */
#include "prc_class_const"
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int iArcane = GetLevelByClass(CLASS_TYPE_WIZARD, oPC)
+ GetLevelByClass(CLASS_TYPE_SORCERER, oPC)
+ GetLevelByClass(CLASS_TYPE_DRAGONFIRE_ADEPT, oPC)
+ GetLevelByClass(CLASS_TYPE_DRAGON_SHAMAN, oPC)
+ GetLevelByClass(CLASS_TYPE_DREAD_NECROMANCER, oPC)
+ GetLevelByClass(CLASS_TYPE_BEGUILER, oPC)
+ GetLevelByClass(CLASS_TYPE_SHADOWCASTER, oPC)
+ GetLevelByClass(CLASS_TYPE_WARMAGE, oPC)
+ GetLevelByClass(CLASS_TYPE_BINDER, oPC)
+ GetLevelByClass(CLASS_TYPE_TRUENAMER, oPC)
+ GetLevelByClass(CLASS_TYPE_WARLOCK, oPC);
object oTarget;
oTarget = GetObjectByTag("Fariq");
int nCharisma;
nCharisma =(GetAbilityScore(oPC, ABILITY_CHARISMA));
int nGender;
nGender = GetGender(oPC);
int nGold;
nGold = GetGold(oPC);
string sFariq;
if (nGender == GENDER_FEMALE){
sFariq = "Ah, what wondrous apparition is this, that graces the environs of my shop! Come madam, examine these amazing fabrics, gathered from across the surface of Toril!";}
else if (nCharisma >= 15){
sFariq = "You seem to be an individual of most discerning taste! Come, look, my garments will enhance your natural appeal!";}
/* else if ((GetClassByPosition(1, oPC) == CLASS_TYPE_SORCERER | CLASS_TYPE_WIZARD ||
GetClassByPosition(2, oPC) == CLASS_TYPE_SORCERER | CLASS_TYPE_WIZARD ||
GetClassByPosition(3, oPC) == CLASS_TYPE_SORCERER | CLASS_TYPE_WIZARD)) */
else if (iArcane > 0)
{
sFariq = "Ah, sir... you seem to be a wizardly type, if my eyes do not fail me. Please, come examine my collection of robes, both fashionable and arcane!";
}
else if (nGold > 1000){
sFariq = "While you are here, won't you take a look at my selection?";}
AssignCommand(oTarget, ActionPlayAnimation(ANIMATION_FIREFORGET_BOW));
AssignCommand(oTarget, ActionSpeakString(sFariq, TALKVOLUME_TALK));
}