Commit graph

558 commits

Author SHA1 Message Date
VladimirMangos
c798318b7b Replace hardcoded client(100) and server side (255) level limtation values by defines. 2008-12-14 22:18:52 +03:00
Neo2003
3b753b830b Allow creature equipments to use item.dbc entries since it's enough
This will no more allow custom items to be equiped by creatures.
Btw, since it uses client data to display them, it would not work.

Signed-off-by: Neo2003 <neo.2003@hotmail.fr>
2008-12-12 20:26:27 +01:00
tomrus88
5d4d7292b9 Merge branch 'master' into 303
Conflicts:
	src/game/Player.h
2008-12-12 18:14:49 +03:00
Wyk3d
d8be07eabc [6902] Fixed a bug in GetScriptId related to missing script names. 2008-12-12 15:47:16 +02:00
hunuza
0f12997ef1 [6899] Pass const reference instead of value for some strings in some functions.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00
tomrus88
ef69f6b80c Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/shared/revision_nr.h
2008-12-09 00:32:47 +03:00
balrok
2e08a63da7 [6884] Replaced iterator++ with ++iterator in for-loop-headers
i used this script
for i in ls *.[ch]*; do cat $i | sed -r 's/(.*for.*iterator.*;\
    *)([a-z0-9\_\*]+)\ *\+\+(.*)/\1++\2\3/' > /tmp/mangos/$i; done
for i in ls *.[ch]*; do cp /tmp/mangos/$i $i; done

and rechecked it with my eyes, if everything is right
i took only for-loops cause they can be gathered easier with a script

Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-07 19:49:45 +01:00
tomrus88
518d7f6297 Merge branch 'master' into 303 2008-12-01 08:21:10 +03:00
VladimirMangos
d6b8b1fa13 [6870] Not output error message at loading empty db_script_string table. 2008-11-30 22:25:13 +03:00
tomrus88
ee7f7a0a08 Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/mangosd/mangosd.conf.dist.in
2008-11-30 14:05:56 +03:00
arrai
8cb9e2becb [6857] Fixed crash in ObjectMgr::CheckScripts 2008-11-28 21:05:05 +01:00
tomrus88
93cf13acec Merge branch 'master' into 303
Conflicts:
	src/shared/Database/DBCStores.cpp
	src/shared/Database/DBCfmt.cpp
2008-11-28 07:20:02 +03:00
VladimirMangos
9fc7dd9ead [6853] [2008_11_27_01_mangos_playercreateinfo_item.sql] Use DBC data for creating initial character items.
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.
2008-11-28 02:20:02 +03:00
tomrus88
af6acab8f8 Merge branch 'master' into 303
Conflicts:
	src/game/Creature.cpp
2008-11-26 19:44:03 +03:00
VladimirMangos
4ccfa1e71e [6848] Implement possibility creating gm log per account files using new option in mangosd.conf. Releated cleanups. 2008-11-24 22:44:29 +03:00
tomrus88
6224f95fd5 Merge branch 'master' into 303
Conflicts:
	src/game/ObjectMgr.cpp
2008-11-22 17:23:44 +03: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
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
tomrus88
c0c0c9c776 barber shop race/gender checks, fly check for map 571 2008-11-19 01:00:41 +03:00
tomrus88
427fca695e Compile fix 2008-11-16 18:13:33 +03: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
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
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
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
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
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
204b61c220 Added empty vehicle class, vehicle*.dbc struct's 2008-11-11 00:05:00 +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
f6ff7b5a45 Updated some enums 2008-11-09 01:43:22 +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
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
hunuza
90828fa699 Cache highest arena team/guild ids. Some code clean up. 2008-11-05 16:58:57 +01:00
tomrus88
9cc6f1f3ec Merge branch 'master' into 303
Conflicts:
	src/game/Level2.cpp
	src/game/Pet.cpp
	src/game/Player.cpp
2008-11-03 14:44:58 +03:00
tomrus88
81693c4c15 Added new quest template fields, updated some enums and opcodes 2008-11-03 14:22:55 +03:00
tomrus88
8d54103456 Fixed spell.dbc structure 2008-11-03 14:22:55 +03:00
VladimirMangos
166007525e More fixes for wrong format arg/value pairs. 2008-11-03 01:48:16 +03:00
hunuza
fa37c291d6 Replace some PQuery() calls with more simple Query() 2008-11-02 23:22:18 +01:00
arrai
99ff9ab5d9 Fixed mixing up character and world database 2008-11-02 20:36:48 +01:00
tomrus88
4758be3791 Merge branch 'master' into 303 2008-10-31 19:03:31 +03:00
arrai
0d6805ec94 Implemented ACHIEVEMENT_FLAG_REALM_FIRST_REACH 2008-10-31 12:53:35 +01:00
tomrus88
5ca92eddd7 Fixed MSG_CORPSE_QUERY for dungeons/raids, fixed SMSG_ATTACKERSTATEUPDATE 2008-10-30 23:02:48 +03:00
ApoC
42cf4db28b Implemented alternative GameTele location selection based on substring in case no exact match.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-29 23:06:00 +01:00
arrai
e92cc728c3 Reverted wrong commit d2785283e - the real source for not matching the flags was a mixed up index in DBCfmt.cpp
Added database integrity check for creature_equip_template
Differ between stored and pending completed achievements
2008-10-29 17:58:56 +01:00
tomrus88
8d733e8f8a Merge branch 'master' into 303 2008-10-28 23:04:02 +03:00
GriffonHeart
94e29ce6a8 [2008_10_27_01_npc_option.sql,2008_10_27_02_locales_npc_option.sql] Implement npc_option localization support, also store in DB BoxText/BoxMoney/Coded.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-27 22:20:25 +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