33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
void main()
|
|
{
|
|
location lLoc;
|
|
location lLoc2;
|
|
object oSuna;
|
|
string sSpeak;
|
|
//GetSkillRank(SKILL_BLUFF,oPC)
|
|
|
|
SetLocalInt(GetPCSpeaker(),"DMerchantBluff",1);
|
|
|
|
if (GetIsObjectValid(GetObjectByTag("en3_Suna")))
|
|
{
|
|
if (GetIsSkillSuccessful(GetPCSpeaker(),SKILL_BLUFF,25))
|
|
{
|
|
oSuna = GetObjectByTag("en3_Suna");
|
|
lLoc = GetLocation(GetObjectByTag("WP_Suna"));
|
|
lLoc2 = GetLocation(OBJECT_SELF);
|
|
DelayCommand(0.5f,AssignCommand(OBJECT_SELF,ClearAllActions()));
|
|
DelayCommand(1.0f,AssignCommand(OBJECT_SELF,ActionForceMoveToLocation(lLoc)));
|
|
sSpeak = "Need any help?";
|
|
DelayCommand(8.0f,AssignCommand(OBJECT_SELF,ActionSpeakString(sSpeak)));
|
|
sSpeak = "No, why do you ask?";
|
|
DelayCommand(11.0f,AssignCommand(oSuna,ActionSpeakString(sSpeak)));
|
|
sSpeak = "No reason, thought you just might need some help.";
|
|
DelayCommand(14.0f,AssignCommand(OBJECT_SELF,ActionSpeakString(sSpeak)));
|
|
DelayCommand(16.0f,AssignCommand(OBJECT_SELF,ActionForceMoveToLocation(lLoc2)));
|
|
} else {
|
|
sSpeak = "If you aren't going to buy anything, please move on so others can browse my wares.";
|
|
DelayCommand(1.0f,AssignCommand(OBJECT_SELF,ActionSpeakString(sSpeak)));
|
|
}
|
|
}
|
|
}
|