Jump to content

[patch]SCRIPT_COMMAND_TALK: extended search


Guest virusav

Recommended Posts

Currently, the team SCRIPT_COMMAND_TALK can search for NPC within a certain radius.

In the case of flight taxi NPC is far away, so part of the sentence says the player.

With this patch may find the following additional options:

1. datalong2 > 0, datalong3 = 0, datalong4 > 0 - will search for NPC by guid (the case with the flight to taxi)

2. datalong2 > 0, datalong3 > 0, datalong4 > 0 - will search for NPC by guid. If nothing was found, it will search for Entry in radius.

Provides error log when misaligned parameters datalong2, datalong3 and datalong4.

The rest of the patch does not affect functionality, founded in commit 9889.

Revision of the kernel: 9984

Author: I

Patch: http://paste2.org/p/854073

Link to comment
Share on other sites

  • 7 months later...

The problem is still there.

For example, in the quest http://www.wowhead.com/quest=12028 all text says the player instead of the NPC.

Due to changes in SCRIPT_COMMAND_TALK rewrote the patch: http://paste2.org/p/1193746

This patch allows you to search not only for NPC entry, but also guid:

1. If datalong3> 0, then datalong2 = entry.

2. If datalong3 = 0, then datalong2 = guid (the case with the flight to taxi).

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use