EN4_PRC8/_module/nss/nh_getdog.nss
Jaysyn904 b464d8da05 Initial Commit
Initial Commit [v1.32PRC8]
2025-04-03 13:38:45 -04:00

37 lines
892 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName p_guide1
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 8/14/2002 7:32:47 PM
//:://////////////////////////////////////////////
void main()
{
int iLevel;
location oLoc;
object oCreature;
string sTag;
object oPC;
oPC = GetPCSpeaker();
iLevel = GetLevelByPosition(1,oPC) +
GetLevelByPosition(2,oPC) +
GetLevelByPosition(3,oPC);
if (iLevel>3)
sTag = "en3_guardwolf";
else
sTag = "en3_guarddog";
if (GetGold(GetPCSpeaker())>49)
{
TakeGoldFromCreature(50, GetPCSpeaker(), TRUE);
oLoc=GetLocation(OBJECT_SELF);
oCreature=CreateObject(OBJECT_TYPE_CREATURE,sTag,oLoc);
AddHenchman(GetPCSpeaker(),oCreature);
} else {
ActionSpeakString("You don't have enough gold.");
}
}