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