Lua - basic npc quests work and i need a damned break for a bit

This commit is contained in:
KimLS
2013-05-13 21:56:42 -07:00
parent 20fc585b5e
commit 38521e0009
10 changed files with 275 additions and 1030 deletions
+5 -1
View File
@@ -1073,7 +1073,11 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s
if (DistNoRootNoZ(*GetTarget()) <= 200) {
if(GetTarget()->CastToNPC()->IsMoving() && !GetTarget()->CastToNPC()->IsOnHatelist(GetTarget()))
GetTarget()->CastToNPC()->PauseWandering(RuleI(NPC, SayPauseTimeInSec));
parse->EventNPC(EVENT_SAY, GetTarget()->CastToNPC(), this, message, language);
Mob *targ = GetTarget();
if(targ->GetAppearance() != eaDead)
targ->FaceTarget(targ);
parse->EventNPC(EVENT_SAY, targ->CastToNPC(), this, message, language);
}
}