Thanks to WCell team for DBC structure research.
`playercreateinfo_item` content removed from mangos.sql and table can be used now only for custom additional initial items.
Implemented in same way as db script localization. creature_movemant now store indexes in db_script_string.
In game waypoint text setting disabled. Unclear how this possible implement with localization data.
Now db script command strings stored in `db_script_string (mangos_string like table). Text field `datatext` replace by int field `dataint` that store index in `db_script_string` table. Indexes must be 2000000000+ (for avoid conflicts with mangos_string indexes). Changes required DB support and SCRIPT_COMMAND_TALK will not work with old data until fixing in DB.
Note: each DB (mangos/charactes/realmd) have independent checks for version.
Also fixed required_* field name in mangos DB. It need updated with each sql update applied to related DB.
Works for all classes, not only hunter. Pet also saved in DB.
Signed-off-by: dythzer <micke223@gmail.com>
Command renamed to .npc tame and code updated to use common function with spell effect.
Targeted creature not killed and tamed pet show up before player.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
* Rename 2 creature_template fields to more clean names and related code update also.
* Use enum values instead raw values for type_flags, use halper functions instead code repeating.
* Move tamed pet creating code to new function.
Signed-off-by: dythzer <micke223@gmail.com>
* Also implement .npc unfollow for cancel following.
* Help and mangos strings.
* Unrelated small fixes in mangos.sql.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
for selected player
Signed-off-by: dythzer <micke223@gmail.com>
Add help text and mangos strings.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
If no creature is selected, old behavior is used (respawn everything).
Thanks Seline for the diff.
Signed-off-by: freghar <compmancz@gmail.com>
(cherry picked from commit 6bbdffac9acb9c02a74be632b35a90f0bda3ccb0)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Some changes in creature targeting and work in case alive target. Help data updated.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
* Provided ChatHandler::GetName for player name/"console command" output dependent from chat/console command call.
* New function for check when command work result send to command target.
* Remove unrequired complexy in mangos string usage in some commands.
slit ban/baninfi/banlist/unban commands to subcommands (this allow write not full subcomand string ".ban acc ...".
Fixed crash at unexpected use .account in console.
Fixed hide .gm on by .gm online (renamed to .gm ingame)
Now console/RA uas same commads as used in chat if selected command marked as safe for console.
Some commands accessable only at console and have security level 4. See sql update for new command names.
Not all commands that safe (or can be modified to safe) for console allowed currently for use in console input, this will be fixed later.