Commit graph

1085 commits

Author SHA1 Message Date
VladimirMangos
67b8ca03b5 [9957] Alow sell item for money and extanded coset without momey in same time.
npc_vendor.ExtandedCost can be negative now that meaning:
price excluded default item BuyPrice and use only abs(ExtandedCost) items).
For example expected used for item 36908.
2010-05-22 19:49:07 +04:00
NoFantasy
0aac44e091 [9953] Remove two not needed cast to Creature* and make code more safe
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-22 12:04:35 +02:00
NoFantasy
f14c0e319f [9941] Add additional check for UNIT_NPC_FLAG_GOSSIP before using TalkedToCreature
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-20 09:29:03 +02:00
NoFantasy
b881c06104 [9938] Correct premature call of TalkedToCreature.
Only use TalkedToCreature when gossip does not have any following sub menu (and of course when the prepared npc options does not include any gossip)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-20 00:06:49 +02:00
VladimirMangos
d4f1b510ae [9934] Skinning related fixes
* Show skinning tooltip only after creature loot
  (when creature can be explcitly skinned).
* Allow reopen skinning loot if still have not looted items.
2010-05-19 15:35:20 +04:00
bloutix
a457f35b21 [9928] Fix build...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-19 01:21:24 +04:00
VladimirMangos
d5c7e7b7d2 [9927] Support new raid allowed quest types. 2010-05-18 15:36:50 +04:00
VladimirMangos
696a4b6db0 [9918] Fixed player's tapped creature loot access by group in diff cases
* If player tap creature in group and leave then group will have access to creature loot if not disbanded
* If player tap creature and after join to group then creature loot will accesable only by player
* Also RewardPlayerAndGroupAtKill divided to simgle player and group reward versions used for group tap
  and single player tap cases.
2010-05-17 12:56:57 +04:00
VladimirMangos
96d50bf55a [9917] Fixes in loot roll timer work and related cleanups.
* Changes include (in fact as part cleanup) fix got NeedBeforeGreed locked item after expire roll timer
  suggested by somedruid@mangos.lighthouseapp.com.
* Added cancel rolling at creatuer corpse remove.
* For NeedBeforeGreed and GroupLoot sued common code for prepare item roll.
2010-05-17 05:29:01 +04:00
LordJZ
0828c3aa81 [9910] Implement expected from 3.2.x time limit for BattleGroundWS.
With updates and fixes from zergtmn.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 07:56:44 +04:00
VladimirMangos
df6bd3df30 [9909] Prevent SQL injection in equipment sets code.
Author of original verison: Machiavelli
2010-05-16 05:25:02 +04:00
darkstalker
c018563669 [9905] Correct SMSG_INSTANCE_DIFFICULTY structure (fixes raid difficulty display).
Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
2010-05-16 00:31:53 +02:00
VladimirMangos
aaa33d5385 [9904] Add new config option for wait mode at startup error.
Note: it not applied to crashes and shutdowns after mangosd/relamd startup completed.
You can continue without delay (as now) and fast exist, or wait <Enter>, or some secs
for continue. Last can be helpful for see for example not applied sql update revision
data and etc.
2010-05-16 02:19:40 +04:00
Laise
0344a8e838 [9888] Party restore IsKnowHowFlyIn and add area arg 2010-05-13 15:15:46 +03:00
Laise
a002f22916 [9887] Fix special mounts using in Dalaran 2010-05-13 14:42:55 +03:00
VladimirMangos
fecf6fdb72 [9880] Prepare world state inint packet data in more clean way.
* Avoid use hardcoded field amount values
* Avoid use world state update packets just after world state init packet
* Attempt make code look less horrible in general.
2010-05-12 09:28:03 +04:00
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