mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 19:37:07 +00:00
[c12582] Add support for XP-Gain disabling
This commit is contained in:
parent
132e6245a7
commit
e0192deaf6
7 changed files with 122 additions and 51 deletions
|
|
@ -98,6 +98,8 @@ enum ScriptCommand // resSource, resTar
|
|||
// dataint=diff to change a waittime of current Waypoint Movement
|
||||
SCRIPT_COMMAND_PAUSE_WAYPOINTS = 32, // resSource = Creature
|
||||
// datalong = 0: unpause waypoint 1: pause waypoint
|
||||
SCRIPT_COMMAND_XP_USER = 33, // source or target with Player, datalong = bool (0=off, 1=on)
|
||||
|
||||
};
|
||||
|
||||
#define MAX_TEXT_ID 4 // used for SCRIPT_COMMAND_TALK
|
||||
|
|
@ -313,6 +315,12 @@ struct ScriptInfo
|
|||
uint32 empty;
|
||||
} pauseWaypoint;
|
||||
|
||||
struct // SCRIPT_COMMAND_XP_USER (33)
|
||||
{
|
||||
uint32 flags; // datalong
|
||||
uint32 empty; // datalong2
|
||||
} xpDisabled;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 data[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue