Commit graph

919 commits

Author SHA1 Message Date
GriffonHeart
c4247ece32 [9878] Set for client battleground weekend event world state.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-12 06:24:06 +04:00
zhenya
fd131fb408 [9867] Prevent another potion drink until combat end.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-11 11:29:55 +04:00
VladimirMangos
6fb07911f9 [9862] Defines for some spelentry arrays.
* Move and rename MAX_REAGENTS to DBC Strcuture.h.
  It used only afore access to SpellEntry field and so part of strcuture definition.
* Add MAX_SPELL_TOTEMS and MAX_SPELL_TOTEM_CATEGORIES for same reasons, and use in code.
2010-05-11 00:06:47 +04:00
tomrus88
ff2cda6af1 [9861] Backporting some code chnages from 400 branch.
(based on 400's commit 0f37423)
(based on 400's commit 636cfef)
(based on 400's commit 0bbe3a7)
(based on 400's commit ce86b56)
(based on 400's commit b74c6a8)
2010-05-10 23:45:49 +04:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
VladimirMangos
6dec6c8a9f [9836] Make log output code more consistent for diff build modes.
* Make possible have debug output if build in release mode.
* But preserver current optimization in avoid debug output args
  calculation if debug ouput disabled if done using DEBUG_LOG
* Implement in same way BASIC_LOG, DETAIL_LOG. Recommended use
  its instead explicit access to sLog
* Use variadic macros for DEBUG_LOG and other new defines.
  All supported VS/GCC have its support as C++ extension.
* Add DEBUG_FILTER_LOG and semilar defines for filered log output and use its.
* Also move recent added debug output for transport events under LOG_FILTER_TRANSPORT_MOVES
2010-05-04 22:29:11 +04:00
VladimirMangos
57dcc84940 [9824] Use in taxi flight movegen original taxipath data. 2010-05-02 06:14:26 +04:00
VladimirMangos
4910add486 [9808] Simplify TaxiPathNodes data use, specially for transport case. 2010-04-29 19:44:21 +04:00
VladimirMangos
9e356f10c9 [9806] Fixed player loading to transport.
Bug exist already some time but possible hide by another code way work or
client change maybe.
2010-04-29 17:25:13 +04:00
Olynn
9d8aab98e6 [9801] Typo in enum name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-29 11:45:42 +04:00
Chipleo
bb95e4a868 [9797] Prevent interect with NPC/Gameobject player in non-react state
* (stun,confuse,fleeing).
* This also fix cheating with taxi use.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-27 05:30:25 +04:00
VladimirMangos
065a6732e1 [9791] Fixed problem with character deleting at some server platforms. 2010-04-25 02:20:10 +04:00
VladimirMangos
7b675219e7 [9785] Remove special dagger starting outfit amount.
Now DBC data provide special off-hand instead.
Also update structure comments.
2010-04-23 22:51:32 +04:00
Laise
236a578d52 [9780] Change CalcAbsorbResist/isBlocked to be called from target side 2010-04-23 06:58:58 +03:00
VladimirMangos
15dd77873e [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
DasBlub
492ce567d2 [9767] Add the posibility to keep deleted characters in the database for a while and also add related commands.
Added commands:
* .character deleted list [$guid|$name]
* .character deleted restore $guid|$name [$newname]
* .character deleted delete $guid|$name
* .character deleted old [$keepdays]

Command .character delete renamed to .character erase

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-20 22:12:50 +04:00
Laise
6610484609 [9754] Rename flight speed related auras and fix spell 40120 2010-04-16 17:54:58 +03:00
NoFantasy
5570f8c9cd [9752] Add storage for min/maxgold of gameobject
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-04-16 08:45:46 +02:00
SilverIce
e3f3f3410a [9736] Added more usable interface for grid visits
(based on SilverIce's repo commit f20f01e)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-12 15:15:55 +04:00
VladimirMangos
6a50185cfd [9732] Remove another case hardcoded set skill step.
We not have currently way set proper set skill step at loading,
but this not required, because important only for new learned rank have different step.
Also drop outdated (as tested) comment.
2010-04-12 12:17:43 +04:00
VladimirMangos
c7095fb3ed [9731] Cleanup in skil steps code.
* Move step arg in SetSkill to end for make possible for it default value.
* Merge GetSkillStep function to SetSkill, base at fact that old GetSkillStep
  code can be != 0 only for already known spell, so at update
2010-04-12 08:51:17 +04:00
VladimirMangos
c64a2e8c84 [9730] Mail send related fixes in recent code.
* Avoid use explicit MailReciever/MailSender where not need.
  Types specially added for autoconvertion from common cases.

* Prevent allow copy text auction mails. It anyway store encoded data.
  Same for some another non-player mails.
2010-04-12 05:07:47 +04:00
SilverIce
234e241284 [9727] Build equiped item data only for item's owner
This is must decrease amount of data send to network
at player enter to visibility radius for another player.

(based on SilverIce's repo commit 8c60a80)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-11 08:30:18 +04:00
SilverIce
53eeebf2fe [9725] removed PlayerNotifier and related Map::UpdatePlayerVisibility function, used UpdateObjectVisibility instead
(based on SilverIce's repo commit e226019)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Note: this changes not affect in any good/bad way recent problem with player guids.
2010-04-11 06:27:57 +04:00
VladimirMangos
20162b6db4 [9724] Temporary back to 0 player highguid.
This is resolve "none from players see each other" problem.
Please, reapply non-0 player guid only with or after this problem resolve.

Some ObjectGuid use cleanups added while reseach porblem source.
2010-04-11 05:36:05 +04:00
VladimirMangos
c6b56b512c [9723] Finaly cleanup usage ventorslot values.
This is also fix recent showup problem buy items
from vendors in case when some items usable (and then show in list)
only for some class/races.
2010-04-11 00:25:31 +04:00
VladimirMangos
25c2a76b63 [9716] Allow to vendor have same items in list with different extanded price. 2010-04-10 05:41:30 +04:00
insider42
da253087cb [9715] Implement required basic elements for dual spec learn gossips.
Required DB data for real work. This is final part required at core side for support.

Also note that commit include

* generic implementation money cost gossip menu items so let
  implement in DB many money cost gossip operations with _fixed_ cost.
* useful CONDITION_SPELL that let implemtn menu item visible if specific
  spell known/don't known also wide used case for diff gossips.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-10 03:09:09 +04:00
Laise
eef1f119b2 [9712] Use enum for effect index 2010-04-09 22:49:55 +03:00
VladimirMangos
6ef88699d1 [9710] Add gm possibilities reset talents for all specs.
* At login reset '.reset all talents' will reset all spec talents.
* New command '.reset specs' will reset its online/offline.
* Command '.reset talents' now not support offline player case.
2010-04-09 22:43:11 +04:00
ApoC
8aa9d795be [9705] Fixed typo.
This fixes assert in Player::AddQuest when quest log is full.

Signed-off-by: ApoC <apoc@nymfe.net>
2010-04-09 11:13:16 +02:00
VladimirMangos
24f2d03485 [9702] Drop now redundent item_text table.
* In beggining bad news: at 3.3.3 switch has been forgoted item_instance.data field chnage.
  In result items with texts (mail copy in to inventory, some other) lost text content.
* That why in current commit item_text droped without convertion. In result all itesm with texts
  will lost text. Sorry for this as i think small porblem :(
* Now text stored in item itself.
2010-04-09 02:10:36 +04:00
VladimirMangos
45fba95d13 [9694] Not crash in case unknown spell expected to be learned at spec switch.
It will output error insteed and continue.
2010-04-08 05:57:55 +04:00
VladimirMangos
6bcbbc321b Merge branch 'master' into 330 2010-04-07 06:58:42 +04:00
VladimirMangos
d78117bbc8 [9687] Add to mangos.conf options for daily/weekly reset time.
* Quests.Daily.ResetHour (0..23) for daily quests
* Quests.Weekly.ResetWeekDay (0..6) and Quests.Weekly.ResetHour (0..23) for weekly quests.
* Drop time from character_queststatus_daily and use same way as weekly quest reset time store.
2010-04-07 05:48:14 +04:00
GriffonHeart
fdddf9188a [9686] Implement support weekly quests cooldowns.
Part code provided by zhenya.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-07 04:24:51 +04:00
VladimirMangos
e45d165a8e [9685] Code style cleanups in quest code. 2010-04-07 03:27:28 +04:00
hunuza
dd2dda62a5 [9681] Add config to decide whether character stats should only be saved on logout.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-04-06 16:29:17 +02:00
hunuza
145182a53d [9680] Create new table character_stats for external tools.
Added new config value to define whether it should be updated.

This table will only be updated on logout, not on periodic save.

Signed-off-by: hunuza <hunuza@gmail.com>
2010-04-06 15:03:43 +02:00
Antimozg
1b536c03e6 [9677] Implement ITEM_MOD_BLOCK_VALUE support in item stat mods and enhantments.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-06 02:16:03 +04:00
VladimirMangos
d6cd1dcc27 [9676] Not counting gems at broken item for meta gem requirements.
This is fit as cleint show meta gem state and fix cheating with gems at broken items.
2010-04-05 22:08:45 +04:00
Laise
16a281c6d0 [9674] Fix crash in ActivateSpec 2010-04-05 15:58:28 +03:00
tomrus88
9a0545cd05 Merge remote branch 'origin/master' into 330 2010-04-04 15:50:18 +04:00
Laise
7cb0edc272 [9669] Restore build at some old GCC versions
Old GCC hash_map::erase not return next iterator point

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-03 23:09:56 +04:00
tomrus88
4f6006b9db Fixed few opcodes. 2010-04-03 17:49:12 +04:00
Wowka321
4e81b6c98b [9666] Check max. honor points on characteacter login.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-04-03 11:13:10 +02:00
tomrus88
d131f137cc Merge remote branch 'origin/master' into 330 2010-04-03 11:33:45 +04:00
Laise
7fb7c47de5 [9661] Implement dual talent specializations in talent switch part.
* Implement talent specs switch functionality.
* Only gossip part still not implemented.
* At update server to this commit or later character talents will be reset
  with some spam in logs about wrong places talents in character_spell.
  It can be ignored as part of conversion to new table support.

Thanks to all getmangos.com community members who take part
in creating and updating original dual spec patch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-03 00:02:55 +04:00
VladimirMangos
12426b158d [9659] Simplify resetTalent code.
Currently all code related to deepndent spells unlern exist in removeSpell
so not need do it in special way in talentReset.
2010-04-02 23:18:06 +04:00
Laise
eee89851a6 [9658] Remove SPELL_EFFECT_TITAN_GRIP flag at related spell remove.
This let have correct state for flag at .unlearn related spell and etc.
Not only at full talent reset.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-02 22:51:43 +04:00