Commit graph

223 commits

Author SHA1 Message Date
VladimirMangos
2da935ecc4 [6842] More correct guid/name arg processing in .pdump write command, reject early wrong player name in HandleWhoisOpcode. 2008-11-23 11:39:13 +03:00
hunuza
809bd7392f Avoid sending some unnecessary group updates. 2008-11-21 18:07:05 +01:00
ApoC
cd50762206 [6841] Fixed texts loading for waypoints. Better reporting of unused
script text, now it excludes from report also ids used for waypoints.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-11-21 12:38:15 +01:00
arrai
59a5964b12 [6840] Fixed displaying escaped GM ticket ingame 2008-11-19 10:08:57 +01:00
VladimirMangos
1e9464ea73 [6839] Restore expected storing in guid/id counters first free guid/id.n all cases Prevent use uninitilized values for some id types. 2008-11-19 06:40:54 +03:00
VladimirMangos
e3abf5c936 [6838] [2008_11_18_01_mangos_creature_movement.sql 2008_11_18_02_mangos_mangos_string.sql] Implement localization support for creature_movemant.
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.
2008-11-18 20:42:10 +03:00
killdozer
8032d6d5a4 [6837] Fixed typo in ArenaTeam::AddMember that sometimes prevented joining teams.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-11-18 18:04:14 +01:00
hunuza
ac00eee418 Replace some MapManager::Instance().GetMap() calls with WorldObject::GetMap() 2008-11-17 17:24:53 +01:00
VladimirMangos
c37cfd0c2f [6836] Use /bigobj option in VC80/VC90 x64 builds for game.vcproj buuld.
This will solve problems with fatal error (too many sections in ObjectMrg.obj).
2008-11-17 17:59:06 +03:00
VladimirMangos
2a3c3195b7 [6835] Check instanceid at search creature by guid. 2008-11-17 14:57:25 +03:00
VladimirMangos
5439dd0fd4 Allow constant only access to m_mapRefManager using Map::GetPlayers() 2008-11-17 14:56:44 +03:00
ApoC
fc0e3e87a8 [6834] Fixed typo in Unit::RemoveAura leading to crash.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-11-17 12:25:04 +01:00
hunuza
520fce4b27 Move PlayersNearGrid() to Map class. 2008-11-16 22:29:10 +01:00
hunuza
79558a32d9 Introduce player map references. 2008-11-16 21:47:18 +01:00
VladimirMangos
0ae2133254 [6833] More correct aura cancel for channeled spells.
Remove auras at channeled target.
Cancel channeled spell at spell aura cancel.
Also move battleground resurection spell code to more appropriate place.
2008-11-16 23:33:22 +03:00
VladimirMangos
e12e79a94d [6832] Not use creature localized names for pets. 2008-11-16 17:01:00 +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
Wyk3d
3d72b06fcd [6829] Fixed a crash in ScriptsProcess when the source or target's map is looked up while it's not in world. 2008-11-16 03:28:12 +02:00
Wyk3d
766654c85d [6828] Added script name indexing for creature, gameobject, item, areatrigger and instance scripts.
* loaded all distinct script names into one vector at server startup
* added custom loaders to convert the script names to indices
* converted all the script lookup functions to use the index instead of the name
2008-11-16 03:20:16 +02:00
Wyk3d
074bd3a08f [6827] Added an interface for defining custom SQLStorage loaders. 2008-11-16 01:02:13 +02:00
derex
b195eb87a9 Add missing call to World::RemoveQueuedPlayer, now auth queue should work! 2008-11-15 20:46:02 +02:00
hunuza
5944377d94 [6826] Fixed typo in debug output. 2008-11-15 17:54:36 +01:00
Wyk3d
2bc0bc0f9a [6825] Update only the cells around players and do not update the same cell twice 2008-11-15 15:29:53 +02:00
hunuza
8381d95a3d Delete unintentionally included file in last commit. 2008-11-15 11:26:38 +01:00
hunuza
0d1b8038f5 Move object update from ObjectAccessor to Map update. 2008-11-15 00:31:51 +01:00
VladimirMangos
d287a17597 [6824] [2008_11_14_01_mangos_scripts.sql] Fixes in db_script_striong related code and DB.
Fixed field order in db script tables as expected base at mangos.sql.
Fixed unexpected errors output in some cases.
2008-11-14 19:49:01 +03:00
VladimirMangos
a62bee6d66 [6823] Restore colored console output. 2008-11-14 19:24:56 +03:00
VladimirMangos
2bf6345beb [6822] Implement --version option for mangosd/realmd for output current binary version and exit. 2008-11-14 11:19:04 +03:00
VladimirMangos
02ec0d5233 [6821] More cleanups in spell proc event code. 2008-11-13 02:02:32 +03:00
VladimirMangos
3aa2669160 [6820] Cleanup spell proc event code. Avoid send same information by 2 ways to function. 2008-11-13 01:43:06 +03:00
VladimirMangos
92f39fe2c3 Better args checking in .sendmoney command. 2008-11-13 01:25:26 +03:00
arrai
5905aec683 [6819] [2008_11_12_01_character_character_aura.sql] Fixed storing stacked auras 2008-11-12 22:23:17 +01:00
hunuza
5a580d954b Fix a crash in add friend/ignore callback. (check if player still logged in) 2008-11-12 17:18:01 +01:00
Frankir
fc8efb0e91 [6818] Correctly apply taken damage debufs/bonuses in cases non-physical melee damage.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-12 05:27:58 +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
VladimirMangos
b24ace11cf [6817] Add VC90 sollution/project file versions for git_id tool. 2008-11-10 10:56:00 +03:00
Wyk3d
2d46c5da11 [6816] Cleaned up git_id
Added the -f option to fetch from origin and check for fast-forward
Added alternates for the -r,-h and -l options
Added usage output for -h
Other cleanups
2008-11-09 23:39:17 +02:00
arrai
8e54a3c1cf [6815] Allowed switching INVTYPE_HOLDABLE items during combat, used correct spells for triggering global cooldown at weapon switch. Original patch provided by mobel/simak 2008-11-09 20:44:53 +01:00
derex
a44ada6d6b [6814] git_id on *nix. 2008-11-09 17:32:39 +02:00
derex
d53b77cadf Fixed english spelling in src/game/WorldSocket.h/cpp. 2008-11-09 17:06:36 +02:00
VladimirMangos
af556bae16 [sql/updates/2008_11_09_03_mangos_mangos_string.sql] Sql update for [6813] 2008-11-09 17:04:09 +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
derex
1346f394be Fix auth login queue. 2008-11-09 15:35:22 +02:00
Megamage
ace2d4815e Prevent proc spell from HOT and DOT ticks.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-11-09 13:32:07 +01:00
derex
5055d957e2 Restore build for GCC < 4.3. 2008-11-09 13:27:22 +02:00
evilstar
1da8ff0043 [6812] Implement localization of creature/gameobject name that say/yell.
Original patch deeply rewrited.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-11-09 13:19:08 +03:00
VladimirMangos
89612654da Fixed crash at .chardelete command use. 2008-11-09 13:15:39 +03:00
Wyk3d
61a3159c31 [6811] Use unordered_map only from gcc 4.3.x where it became deprecated 2008-11-09 12:01:26 +02: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