WoR_PRC8/_module/nss/taxi_94.nss

26 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iTalkFlag = 0;
void main()
{
if (GetGold(GetPCSpeaker()) >= 2){
object oPC = GetPCSpeaker();
object oFollow1 = GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oPC);
object oFollow2 = GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oPC);
object oFollow3 = GetAssociate(ASSOCIATE_TYPE_DOMINATED, oPC);
object oFollow4 = GetAssociate(ASSOCIATE_TYPE_HENCHMAN, oPC);
object oFollow5 = GetAssociate(ASSOCIATE_TYPE_SUMMONED, oPC);
location lLoc = GetLocation(GetWaypointByTag("ETUM_MP_GEGNAR"));
TakeGoldFromCreature(2, oPC, TRUE);
AssignCommand(oPC,JumpToLocation(lLoc));
AssignCommand(oFollow1,JumpToLocation(lLoc));
AssignCommand(oFollow2,JumpToLocation(lLoc));
AssignCommand(oFollow3,JumpToLocation(lLoc));
AssignCommand(oFollow4,JumpToLocation(lLoc));
AssignCommand(oFollow5,JumpToLocation(lLoc));}
else {
sSayThis = "You no have 2 gold.";
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
}