Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
36
_module/nss/nh_getdog.nss
Normal file
36
_module/nss/nh_getdog.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user