mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 16:46:37 +00:00
[Quest API] Add TrackNPC to Perl/Lua. (#2272)
* [Quest API] Add TrackNPC to Perl/Lua. - Add quest::tracknpc(entity_id) to Perl. - Add eq.track_npc(entity_id) to Lua. - This will allow server operators to arbitrarily Track NPCs for clients with scripts. - Modified tracking to auto turn off and tell you that you discovered your target if within 10 units, this is to allow scripted Tracking to turn off without the need for the Tracking skill. * Remove unnecessary DoTracking() call. * Update client.cpp
This commit is contained in:
@@ -14165,16 +14165,14 @@ void Client::Handle_OP_TrackTarget(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
if (app->size != sizeof(TrackTarget_Struct))
|
||||
{
|
||||
LogError("Invalid size for OP_TrackTarget: Expected: [{}], Got: [{}]",
|
||||
sizeof(TrackTarget_Struct), app->size);
|
||||
if (app->size != sizeof(TrackTarget_Struct)) {
|
||||
LogError("Invalid size for OP_TrackTarget: Expected: [{}], Got: [{}]", sizeof(TrackTarget_Struct), app->size);
|
||||
return;
|
||||
}
|
||||
|
||||
TrackTarget_Struct *tts = (TrackTarget_Struct*)app->pBuffer;
|
||||
auto *t = (TrackTarget_Struct*) app->pBuffer;
|
||||
|
||||
TrackingID = tts->EntityID;
|
||||
SetTrackingID(t->EntityID);
|
||||
}
|
||||
|
||||
void Client::Handle_OP_TrackUnknown(const EQApplicationPacket *app)
|
||||
|
||||
Reference in New Issue
Block a user