Commit graph

45 commits

Author SHA1 Message Date
tomrus88
397efd4fac Merge branch 'master' into 303
Conflicts:
	src/game/SpellEffects.cpp
2008-11-18 18:08:58 +03:00
hunuza
ac00eee418 Replace some MapManager::Instance().GetMap() calls with WorldObject::GetMap() 2008-11-17 17:24:53 +01:00
tomrus88
e738198eb4 Merge branch 'master' into 303
Conflicts:
	src/game/ItemPrototype.h
	src/game/ObjectMgr.cpp
	src/shared/Database/SQLStorage.cpp
2008-11-16 17:20:43 +03:00
VladimirMangos
b992056123 [6831] [2008_11_16_01_mangos_command.sql] Let use short names for cancel word in .server shutdown cancel (like ".ser s c") and similar commands. 2008-11-16 15:06:23 +03:00
freghar
528a9d830a [6830] Implement custom exit codes on server shutdown/restart
Added the possibility to use custom process return values
instead of hardcoded 0 (shutdown) or 2 (restart) to allow using them
for various custom external features / better handling.

This can be used through 4 commands in ".server" family:
 - shutdown
 - restart
 - idleshutdown
 - idlerestart

Those have from now on 2 arguments, where the second (return value)
is optional:

.server <command> <time> [return_value]

If return_value is not specified, default value (0 or 2) is used.

Signed-off-by: freghar <compmancz@gmail.com>

Set restart exist code for SIGINT singnal case.
Some code simplifications for original patch.
Related code cleanups.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-16 15:00:30 +03:00
tomrus88
768fa2d2de Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Pet.cpp
	src/game/Player.cpp
2008-11-15 15:35:52 +03:00
VladimirMangos
92f39fe2c3 Better args checking in .sendmoney command. 2008-11-13 01:25:26 +03:00
tomrus88
8b55b2de78 Merge branch 'master' into 303 2008-11-12 23:49:06 +03:00
VladimirMangos
c9fd3705d7 [sql/updates/2008_11_11_01_mangos_db_script_string.sql sql/updates/2008_11_11_02_mangos_scripts.sql] Implement localization support for db script command SCRIPT_COMMAND_TALK.
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.
2008-11-12 02:03:25 +03:00
tomrus88
6fae544fbe Merge branch 'master' into 303
Conflicts:
	src/game/WorldSocket.cpp
	src/shared/Database/DBCStructure.h
	src/shared/Database/DBCfmt.cpp
2008-11-10 01:10:52 +03:00
VladimirMangos
755717e8ac [6813] Allow have team dependent graveyards at entrance map for instances.
Entrance map graveyards selected by same way as local (by distance from entrance)
Until DB support will work in old way base at current DB data.
2008-11-09 17:02:58 +03:00
tomrus88
50e538c32f Merge branch 'master' into 303 2008-11-09 11:37:52 +03:00
Fredi
928ea2bdcf [6810] Added new command: .sendmoney player "subject" "message" money - Sends a mail with money to a player
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-09 11:21:13 +03:00
VladimirMangos
ad59efb6d9 [2008_11_09_01_mangos_command.sql] Create new command .senditems and remove from moderator level command .sendmail possibility send items. 2008-11-09 11:01:41 +03:00
tomrus88
7974d1cb94 Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/game/Spell.cpp
2008-11-08 16:52:28 +03:00
VladimirMangos
ac222e92b1 [6805] Small fixes in send/received packet and simple code cleanup also. 2008-11-08 07:26:28 +03:00
VladimirMangos
8fc5ac7fd3 Fixed crash at using .account set gmlevel with wrong args. 2008-11-07 01:05:49 +03:00
VladimirMangos
4476d483d4 Fixed comment text and code indentifiers spelling.
GetFieldNames part provided by Paradox.
2008-11-06 19:22:23 +03:00
tomrus88
78ec66babc Merge branch 'master' into 303
Conflicts:
	contrib/extractor/System.cpp
	contrib/extractor/ad.exe
	src/game/WorldSocket.cpp
2008-11-06 15:50:47 +03:00
VladimirMangos
88b1974df6 Fixed warnings, unused code and typos.
Including fix  _SCallback for 3 params, triggred mode correct call for .cast back and .cast target.
Remove outdated code for support old 19421 (and ranks) implementation in client data.
2008-11-05 05:06:35 +03:00
hunuza
79cb959991 Removed some unnecessary database queries.
Removed unnecessary database queries in some command handlers.
Replaced them with access to cached data or queries for only the needed data.
Move database access in gossip select code to less often called place.
2008-11-03 14:22:54 +03:00
hunuza
f2852a95b7 Removed some unnecessary database queries.
Removed unnecessary database queries in some command handlers.
Replaced them with access to cached data or queries for only the needed data.
Move database access in gossip select code to less often called place.
2008-11-02 15:58:24 +01:00
tomrus88
cffc766fb6 Merge commit 'origin/master' into 303
Conflicts:
	src/game/SpellEffects.cpp
	src/game/World.cpp
2008-11-01 08:10:24 +03:00
dythzer
acf6f5d5ce Added new command: .modify gender male/female - Turns selected player into a male or female
No relog needed

Signed-off-by: dythzer <micke223@gmail.com>

Add help and mangos strings. Allow accept partly types male/female arg values.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-01 06:35:41 +03:00
VladimirMangos
7b9e86e3f3 Fixed bug in respawn command from recent commit
Command must now ignore implicit self-targeted player as target.
And allow respawn all near creatures/go in this case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-01 05:20:03 +03:00
tomrus88
4758be3791 Merge branch 'master' into 303 2008-10-31 19:03:31 +03:00
VladimirMangos
83f034ae5d Some command handlers renames and declaration sorting. 2008-10-30 05:14:14 +03:00
tomrus88
cf3bbb5920 Fixed pvp flag (once again), crash fix 2008-10-29 19:18:58 +03:00
tomrus88
8d733e8f8a Merge branch 'master' into 303 2008-10-28 23:04:02 +03:00
Seline
4db0c00181 Use .respawn only for selected creature (if any)
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>
2008-10-28 16:34:35 +03:00
VladimirMangos
6169f57ab9 Simplify check requirement report command results to target and output command user name.
* 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.
2008-10-28 14:55:17 +03:00
VladimirMangos
9e6390d88d Load npc_options at server startup, use cached data at creature gossip menu init.
Also new .reload table command added. Note: currently it will not affect creatures that have gossim memu created at command use moment.
2008-10-27 16:43:31 +03:00
tomrus88
233e5eac6f Merge branch 'master' into 303
Conflicts:
	src/game/ObjectMgr.h
2008-10-27 01:27:48 +03:00
VladimirMangos
24549669a9 Add lost .c_str() call at send std::string content to ".pdump write" command output. 2008-10-26 16:29:38 +03:00
tomrus88
df09909ec5 Updated rest of game stuff 2008-10-26 10:25:08 +03:00
VladimirMangos
89893215e5 Finish review/fix commands appropriate for console. Allow call 'help' command without args. 2008-10-23 20:44:30 +04:00
VladimirMangos
e31709611d Add to 'list item' command show items in guild bank. 2008-10-23 19:06:18 +04:00
VladimirMangos
0c9f783ddc [sql/updates/2008_10_23_01_mangos_command.sql sql/updates/2008_10_23_02_mangos_mangos_string.sql] Better 'pdump' commands args checking and related error output. 2008-10-23 06:07:03 +04:00
VladimirMangos
b10349a737 [sql/updates/2008_10_22_02_mangos_mangos_string.sql] Allow use in console .event/.reload/.lookup/.list (some)/.guild (some) subcommands. 2008-10-23 03:07:22 +04:00
freghar
95840fd2c3 Removed trailing whitespaces and CRLFs
With /contrib/ and /dep/ excluded.

Signed-off-by: freghar <compmancz@gmail.com>
2008-10-22 11:52:03 +02:00
VladimirMangos
6892cc3d2c [sql/updates/2008_10_21_03_mangos_command.sql]
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)
2008-10-22 00:51:49 +04:00
VladimirMangos
911dbe0b29 Use ObjectMgr/AccountMgr functions instead explici DB quaries. 2008-10-21 18:09:35 +04:00
VladimirMangos
26dc8c07ab * [2008_10_21_01_mangos_mangos_string.sql,2008_10_21_02_mangos_command.sql] Merge CLI command proccessing to chat command proccessing.
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.
2008-10-21 08:05:21 +04:00
VladimirMangos
ad5f559dad * Move account related functions from ObjectMgr to AccountMgr and drop duplicate function also. 2008-10-20 07:30:59 +04:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00