View Single Post
  #6  
Old 03-04-2015, 11:25 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

Well, it currently looks like this:
Code:
void NPC::DoQuestPause(Mob *other) {
    if(IsMoving() && !IsOnHatelist(other)) {
        PauseWandering(RuleI(NPC, SayPauseTimeInSec));
        FaceTarget(other);
    } else if(!IsMoving()) {
        FaceTarget(other);
    }
}
You could probably do something like this (assuming your chests don't ever move):
Code:
void NPC::DoQuestPause(Mob *other) {
    if(IsMoving() && !IsOnHatelist(other)) {
        PauseWandering(RuleI(NPC, SayPauseTimeInSec));
        FaceTarget(other);        
    } else if(!IsMoving() && GetRace() != 378 && GetRace() != 589 && GetRace() != 590) {
        FaceTarget(other);
    }
}
Reply With Quote