Commit graph

235 commits

Author SHA1 Message Date
VladimirMangos
737600a665 [7166] Make reserved name check case-insensitive.
Original patch provided by jpmythic.
2009-01-25 02:38:08 +03:00
begemot
9bede601a2 [7151] Startup log cleanup and beautification.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-23 04:29:35 +03:00
VladimirMangos
100801b713 [7147] Check creature template type/family at server startup. 2009-01-23 01:28:05 +03:00
VladimirMangos
3afd542de2 [7143] Avoid selection quest taxi nodes for taxi master map.
Preper at loading more stricted taxi nodes mask for normal taxi network
with excliuded quest only nodes (used from spells with SPELL_EFFECT_SEND_TAXI.
Use prepered mask at search nearest to taxi master taxi node.
2009-01-22 05:14:26 +03:00
Energy
f26d6151c8 [7141] Implement heroic raid instance mode support.
* Heroic mode player amount for instances in DB. Can be used for any instances but added for heroic raid instance.
* Output transfer error at max playrs limit.
* FIXME notes ;) for raid required implementing store 2 reset time and do global reset for 2 modes. But currently raid have inmmap entry data
same reset time for both cases.
* Update instances list where mounts allowed.
* Simplify and fix code for SMSG_RAID_INSTANCE_INFO.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-22 03:27:59 +03:00
GriffonHeart
d9d30fd40e [7135] Implement support for single taxi master with different path for teams.
Side effect: quest taxi flights (without mount id provided) will impossible start from normal taxi master.
But for its expected starting from scripts.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-21 17:50:21 +03:00
VladimirMangos
ed14e59de4 Fixed typo in log output and misc code cleanups. 2009-01-16 18:11:58 +03:00
DiSlord
014ab283dd [7092] Work vs XP per level data
Add new table "player_xp_for_level" for this
Fill table data 1-79 level
Remove old code

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-16 01:00:41 +03:00
VladimirMangos
c0824b35c6 Fix item Unk0 field type as expected signed and related log output.
Also restore item class check at server loading but not subclass check. Problems only with subclass check case.
2009-01-15 03:08:25 +03:00
VladimirMangos
c7a5537bac [7087] Use signed type as expected for item material field. This also fix -1 value output for it.
Also disable Class/Subclass item_template check by dbc data for avoid unexpected log spam (dbc have some wrong values for this fields).
2009-01-15 00:12:48 +03:00
VladimirMangos
950df723d7 [7083] Implement support for cast-spells in trainer lists for riding also. 2009-01-14 02:41:19 +03:00
VladimirMangos
d3615532b5 [7081] Fix comments in recent added code. 2009-01-14 00:33:03 +03:00
VladimirMangos
d53b43024a [7080] More item_template data checks at loading.
Not all checks can be 100% correct result possible. Plerase, report proved wrong output and this checks part will disabled.
2009-01-14 00:29:32 +03:00
VladimirMangos
5b50e2f9e8 [7077] Implement support castable trainer spells for profession ranks. 2009-01-13 21:09:43 +03:00
VladimirMangos
f956a3bf10 [7067] Move inactive form/stance passive spells from playercreateinfo_spell to spell_learn_spell with active field.
This let have in `playercreateinfo_spell` only expected at character creating spells for simplify updating.
2009-01-11 02:09:03 +03:00
VladimirMangos
dc19fc4ca3 [7040] Move achievment rewards dat to new DB table. Implement sending item rewards by mail.
Support localization string fields for new table.
Move achievments related code and data from ObjectMgr to new AcievmentGlobalMgr.
2009-01-06 16:21:22 +03:00
VladimirMangos
dbc228370c [7021] Not check allowed class/race for items with inventory type INVTYPE_NON_EQUIP that can't be used from inventory. 2009-01-04 19:56:20 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
ee505ec9da [7015] Implement support -1 in item_template.stackable and item_template.maxcount fields.
Also disable incorrect used vanity pets/currences/quest items special slotes. All items in its will be send by mail to characters at re-login.
Fixed code for item stacks operations with size > 255.
2009-01-03 19:19:53 +03:00
arrai
88208bc9a7 [7010] Teleport players to the entrance of instances if they are in reset ones at login 2009-01-03 01:10:31 +01:00
VladimirMangos
bd4fc1b0ae [7005] Request Area/Zone Ids using 3D coordinates.
.map files not have 3D specifci area infor. So use hack way for update areaflag for some cases (areas 4281, 4342)
where exist area dependent auras.
2009-01-02 19:30:43 +03:00
hunuza
70c7dda068 [6959] Merge some queries on item load.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-28 00:38:38 +01:00
begemot
128f808858 [6925] Correctly show loaded 100% for empty playercreateinfo_item.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-22 12:47:35 +03:00
freghar
d75812749f [6922] Whitespace and newline fixes
This should fix the GCC "no newline at end of file" warnings.

Signed-off-by: freghar <compmancz@gmail.com>
2008-12-22 12:47:33 +03:00
tomrus88
71b1065c8b Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Chat.h
	src/game/Player.h
	src/game/World.h
	src/game/debugcmds.cpp
2008-12-16 07:30:23 +03:00
ApoC
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
VladimirMangos
35f54d365d Replace hardcoded client(100) and server side (255) level limtation values by defines.
(cherry picked from commit 389a1784e288f11587067d3a6d4b70cce9214cb9)

Conflicts:

	src/game/Player.cpp
	src/game/World.cpp
	src/shared/Database/DBCStructure.h
2008-12-14 23:52:32 +03:00
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