37 lines
892 B
Plaintext
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.");
|
|
}
|
|
}
|