mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 10:37:02 +00:00
[11984] Add new SCRIPT_COMMAND_SEND_TAXI_PATH to trigger a taxi path
Idea for this patch by Klark20 (maybe he also was the author of this patch as well, I cannot check in this moment) Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
99986d7881
commit
4e6fbf5e9e
4 changed files with 52 additions and 1 deletions
|
|
@ -88,6 +88,7 @@ enum ScriptCommand // resSource, resTar
|
|||
SCRIPT_COMMAND_MODIFY_NPC_FLAGS = 29, // resSource = Creature
|
||||
// datalong=NPCFlags
|
||||
// datalong2:0x00=toggle, 0x01=add, 0x02=remove
|
||||
SCRIPT_COMMAND_SEND_TAXI_PATH = 30, // datalong = taxi path id (source or target must be player)
|
||||
};
|
||||
|
||||
#define MAX_TEXT_ID 4 // used for SCRIPT_COMMAND_TALK
|
||||
|
|
@ -283,6 +284,12 @@ struct ScriptInfo
|
|||
uint32 change_flag; // datalong2
|
||||
} npcFlag;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 taxiPathId; // datalong
|
||||
uint32 empty;
|
||||
} sendTaxiPath;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 data[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue