Commit graph

771 commits

Author SHA1 Message Date
tomrus88
8ad6f70c35 Fixed typo. 2010-03-14 13:24:45 +03:00
tomrus88
c2a3062f4e Fixed quests. 2010-03-13 20:34:23 +03:00
tomrus88
26070c571f Merge remote branch 'origin/master' into 330 2010-03-13 17:52:17 +03:00
tomrus88
9ae77536a3 Merge remote branch 'origin/master' into 330 2010-03-13 17:37:54 +03:00
VladimirMangos
ab7840a591 [9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build. 2010-03-13 17:35:47 +03:00
VladimirMangos
2bf75e7a10 111 2010-03-13 16:12:13 +03:00
VladimirMangos
8416702d7c [9579] Use ObjectGuid in some loot code.
Also use ObjectGuidSet instead std::set<ObjectGuid>
2010-03-13 14:06:27 +03:00
tomrus88
086e9fa1ce Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/Player.cpp
	src/game/PlayerDump.cpp
2010-03-13 00:54:13 +03:00
tomrus88
768772b14b Updated to PTR build 11655. 2010-03-13 00:50:15 +03:00
VladimirMangos
acde81fc54 [9578] Use ObjectGuid in visibility sets 2010-03-12 22:54:14 +03:00
VladimirMangos
a12fecab0d [9575] Use ObjectGuid in Map object stores/world access/search. 2010-03-12 14:38:38 +03:00
tomrus88
e73c5d3b79 Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/Unit.cpp
2010-03-10 20:24:28 +03:00
tomrus88
393d46f9f6 Updated to latest PTR build. 2010-03-10 20:21:18 +03:00
VladimirMangos
c8fd454a79 [9551] Add and use PackedGuid wrapper.
Also
* use more wide bytebuff << >> operators for objects
* use at read packet faisl alsways exception way instead some time used bool results.
2010-03-08 20:23:16 +03:00
VladimirMangos
6487c24f29 [9545] Rename ObjectDefines.h -> ObjectGuid.h
Also move unrelated generic defines to Common.h
2010-03-07 20:05:32 +03:00
VladimirMangos
bbdb7bb09c [9529] Make Player::IsValidPos const 2010-03-06 06:13:38 +03:00
VladimirMangos
bc5092686e [9516] Fixed talent 50391 and ranks in part apply rune cooldown expire speed.
* Apply rune cooldown buff only for spell 48265
* Implement SPELL_AURA_MOD_POWER_REGEN_PERCENT work for POWER_RUNE

Thanks to Laise for problem research.
2010-03-04 15:29:50 +03:00
VladimirMangos
7fb5d850bf [9510] Gameobject casting improvements.
* Add IsHostileTo/IsFriendlyTo and implement expected way checks for diff. world object types.
  For controlled object check redirected to specific owner, for wild gameobject base at gameobject faction.
  If faction not set expected to be hostile to anyone.
* Update grid searchers to be usable with world object instead only unit case.
  Some grid searches lost redundent second object arg, AnyAoETargetUnitInObjectRangeCheck lost hitHidden arg
  (for hitHidden==true case added new AnyAoEVisibleTargetUnitInObjectRangeCheck)
* Updated grid searchers used with gameobject area casts now.
  Note: Gameobject area spell cast animation will still wrong show around cast triggering target instead
  center around gameobject.
* In case gameobject aura apply to target for restored use target itself as caster because
  we not have currently another way apply aura form wild gameobject.
2010-03-04 07:38:26 +03:00
VladimirMangos
84e5f7520b [9508] Finish impement new functionlity for item 5513 and similar.
* Implement recharge low rank item in inventory.
* Implement recharge item at loading after 15 offline mins
2010-03-03 07:36:00 +03:00
VladimirMangos
4c4629e861 [9507] Implement SPELL_EFFECT_RESTORE_ITEM_CHARGES
Also it application in special case of item 5513 and similar.
2010-03-03 06:02:32 +03:00
VladimirMangos
c71f79584d [9501] Implement item limit category inventory mode.
* Now expected item limit categories (for example for item 5513 and related)
  correctly limited by its amount in inventory.
* Provide and use additional arg in SendEquipError for alt. way get affected
  item prototype. This let send to function item id and prevent crash client at
  limit category equip errors that required item prototype data.
2010-03-02 14:10:38 +03:00
VladimirMangos
4a051e2443 [9496] HomeBind fixes.
* Use area id instead zone id for home bind zone info as expected.
  This will for example proper show capital name in area himebinding for capital; tavern.
* Clarify that player create zone in fact is area (subzone)
* Implement SPELL_EFFECT_BIND for normal homebinding.
  Also support spell target position mode used in 53823/53821 spells
* Add Spell::EffectEmpty for mark spell effects that used but not expect any code in handler.
  Example weapon spells that used just as known spell markers for client.

Original patch idea inspirit by Sadikum patch suggestion.
2010-03-01 13:08:52 +03:00
VladimirMangos
6295275529 [9440] Store in plauer spell list structure instead pointer.
Just not reason in element persistanse storage as std::map
store pointer to structure with size < 16 bits.
2010-02-23 19:11:52 +03:00
tomrus88
32168d697b Updated to 3.3.3.11573 client. 2010-02-23 08:08:33 +03:00
VladimirMangos
df652c56c0 [9425] More achievement types support.
Implemented new achievement criteria requirement:
* ACHIEVEMENT_CRITERIA_REQUIRE_S_EQUIPED_ITEM_LVL (item level and item quality equiped in specific slot)

Implemented suppoprt achievement types:
* ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM (required DB data)
* ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL (required DB data)

Also achievment types used only for statistics:
* ACHIEVEMENT_CRITERIA_TYPE_CREATE_AUCTION
* ACHIEVEMENT_CRITERIA_TYPE_WON_AUCTIONS
* ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_VENDORS
* ACHIEVEMENT_CRITERIA_TYPE_GOLD_EARNED_BY_AUCTIONS
* ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM
* ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM
2010-02-21 03:20:26 +03:00
VladimirMangos
233e75ab4b [9415] Dome not catched cases for MAX_EFFECT_INDEX use. 2010-02-19 19:57:07 +03:00
VladimirMangos
84080aaf60 [9411] More SpellEffectIndex using in apropriate cases 2010-02-19 06:45:11 +03:00
VladimirMangos
ff8d494ed4 [9408] Add MAX_EFFECT_INDEX to enum SpellEffectIndex and use it. 2010-02-18 23:33:16 +03:00
VladimirMangos
e74f62ea31 [9404] Fixed glyph apply with with specs.
This resolve problem when glyph rejetect applied
at some spec if it applied already at another spec.
2010-02-18 00:59:11 +03:00
NoFantasy
7c555add76 [9403] Replace number with enum name where explicitly used in array/other checks
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-17 19:07:00 +01:00
VladimirMangos
d20e50a8e5 [9398] Some config enmus fixes. 2010-02-16 16:08:16 +03:00
VladimirMangos
f9db93e78b [9397] Fixed unexpected rounding in healamount = healamount * int32(TakenTotalMod); 2010-02-16 00:28:12 +03:00
hunuza
462117198e [9390] Remove unneeded mail related queries on character load.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-15 15:31:21 +01:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
AlexDereka
5368751c13 [9386] Store some config values in Rate emun. 2010-02-15 00:17:44 +03:00
AlexDereka
ccfd42bf3e [9381] Fixed some compile warnings. 2010-02-14 18:16:07 +03:00
VladimirMangos
9509b11f38 [9378] Not report action button porblems at spec activation.
Action bar copied at spec creating and base at fact that talents not copied
possible cases when action bars not apporpriate for created spec.
So let its drop silencely
2010-02-14 15:58:37 +03:00
hunuza
282e0fd8aa Add possibility for second glyph set.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-14 12:26:47 +01:00
VladimirMangos
268bb3221b [9362] Make specs work at least for action bars
* Propertly add/remove required for specs work spells at 63624/63651.
* Copy current spec action bars to new spec at specs count increase, and delete action bars data at spec count decrease.
* Avoid undexpected action button data test for not active spec at loading/copy, but test action buttons data at spec activation.
* Reset active spec to default if active spec removed.
* Remove talent reset at spec switch that useless at this moment.
  Also note that for future case this also can be not correct and batter unlearn/learn only talents that different in specs.

After this changes specs must fully work in action bar part without unexpected another effects.
2010-02-12 09:29:50 +03:00
EnderGT
230bc2b49e [9359] Load/save current active spec and total spec count.
Still needed for complete dual spec:
* support for second glyph set
* implement gossip options
* support for second talent set

Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-11 20:53:15 +01:00
tomrus88
2151704669 [9358] Not use PLAYER_FIELD_ARENA_TEAM_INFO_1_1 directly. 2010-02-11 19:30:44 +03:00
hunuza
0f7f7c5ada [9354] Add spell efffects for dual spec.
Actual dual spec still not implemented.

Credits to EnderGT for original patch.

Signed-off-by: hunuza <hunuza@gmail.com>
2010-02-10 20:54:45 +01:00
tomrus88
1aa6c8eac9 Simplify code. 2010-02-10 21:14:04 +03:00
AlexDereka
df457c3ff5 [9352] Remove unused varibles 2010-02-10 20:59:29 +03:00
hunuza
acf507fd5a [9349] Add posssibility for one action button set per talent spec. 2010-02-10 18:00:30 +01:00
LordJZ
c49771337c [9341] Fixed loading chosen player title 2010-02-09 14:37:13 +01:00
VladimirMangos
c9c578b5c3 [9339] Use group ids for indexing groups in DB
* Use group ids in DB
* Pack used group ids at server startup
* Finaly drop group search by leader guid.
2010-02-09 14:36:20 +03:00
NoFantasy
8465d95d9f [9331] Implement DB storage of new quest fields RewRepValueIdN
Value can be -9 to 9. Value point to actual rewarded value in dbc store.
This id can then fully replace current use of RewRepValueN, as this field will most likely be reserved for custom reputation rewards (override RewRepValueId).
Old system/DB data will still work like normal, but be aware this may change in not too far away future.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-08 23:41:34 +01:00
AlexDereka
696cba9c37 [9330] Fixed msvc compile warnings. 2010-02-08 16:27:35 +03:00
AlexDereka
4338c9105d [9324] Fix some gcc warnings 2010-02-08 02:27:34 +03:00