Cleanup of some lua code, initial work on encounter_quests

This commit is contained in:
KimLS
2013-05-19 12:13:44 -07:00
parent 17954dd8fe
commit 69bad31019
34 changed files with 2714 additions and 450 deletions
+1 -4
View File
@@ -3260,13 +3260,10 @@ void Client::Handle_OP_ItemLinkClick(const EQApplicationPacket *app)
{
if( !mod_saylink(response, silentsaylink) ) { return; }
if(this->GetTarget() && this->GetTarget()->IsNPC())
if(GetTarget() && GetTarget()->IsNPC())
{
if(silentsaylink)
{
Mob *targ = GetTarget();
if(targ->GetAppearance() != eaDead)
targ->FaceTarget(this);
parse->EventNPC(EVENT_SAY, GetTarget()->CastToNPC(), this, response.c_str(), 0);
parse->EventPlayer(EVENT_SAY, this, response.c_str(), 0);
}