Commit graph

4950 commits

Author SHA1 Message Date
VladimirMangos
f07a3232d4 [11751] Implement option for set ahbot config file in mangosd command line
"-a configfilename" or "--ahbot configfilename" can be used for this

This possibility can be useful if normal mangosd.conf path also set by -c
option for example.
2011-07-24 08:38:31 +04:00
Schmoozerd
b26a969e0d [11750] Implement npc spells 28096 and 28111
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-24 07:08:17 +04:00
darkstalker
7a24d7768b [11749] add C++ casts
Signed-off-by: Laise <fenrisse@gmail.com>
2011-07-23 10:24:41 +03:00
Laise
e178c79d51 [11748] Replace SpellModifier struct by direct aura access (this should fix charge drops of 36032) also revert [11740] 2011-07-20 15:41:39 +03:00
NeatElves
c9a9179d89 [11747] Resore use skinning_loot_template in ahbot code
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Not problem of original patch but my special "ability" in patch apply :/
2011-07-19 13:52:55 +04:00
herrtrigger
41ca608c57 [11746] Fixed default value for AuctionHouseBot.Buyer.BuyPrice to false
as expected by default.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-19 07:23:00 +04:00
Pyromaniac
8606dcc25f [11745] Use less CPU/HDD loading value for AuctionHouseBot.ItemsPerCycle.Boost
Update it in your habot.conf version if you have haby load at mangosd
startup time from ahbot activity

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-19 07:16:39 +04:00
NeatElves
d1d4973f95 [11744] Include spell_loot_template in ahbot loot filter
Also skip item=0 cases from loot tables.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-19 07:11:11 +04:00
VladimirMangos
3e0cacbdaf [11743] Fixed auction crash in case missing localization for only some items
Source crash in missing locale strings array size check before access
to it in locale structure.

Also move repeating code for access to wide used localization string arrays to ObjectMgr functions.
2011-07-19 02:34:16 +04:00
Azelen
bc171d5f97 [11742] Fixed typo in ahbot.conf comments.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-18 07:26:10 +04:00
VladimirMangos
575d9c8e5c [11741] Drop recently added duplicate code with remove SPELL_AURA_SPIRIT_OF_REDEMPTION 2011-07-17 05:26:36 +04:00
rowman
222612fa51 [11740] Restore spellmod charges used by fail spell cast
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also

 * Prevent more one charge use for same spell cast
 * Cleanup enum SpellState from unused cases
 * Propertly remove spellmod charges at spell finish in case pet/totem caster
2011-07-16 10:14:03 +04:00
VladimirMangos
f1bec402e9 [11739] Fixed possible crash after auction loading with wrong houseid field value.
Also
* Fixed error report at 'commands' load for "ahbot items" security level
* Some auction code cleanups and speedups
2011-07-14 17:06:11 +04:00
Laise
0254ad6bf9 [11738] make armor bonuses from certain items be unaffected by base armor mods 2011-07-14 12:13:13 +03:00
kid 10
07cc0aa13e [11737] Fixed use ".gobject move" with implicit player coordinates.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

By unknown reason added in last weeks or longer period gameobject
visually moved only after relogin. GO removed from client view and readded
at same place _but_ have and send to client new coordinates as debuged.
This problem researched and not comnnected directly with fixed bug.
2011-07-14 04:58:23 +04:00
VladimirMangos
a0ff5f4536 [11736] Hide passwords from logs
* DB connection
* chat/console password changes commands.
2011-07-13 05:40:02 +04:00
zergtmn
f4802ab4c4 [11735] Spells 64844 and 64904 can target caster 2011-07-13 03:58:55 +06:00
zergtmn
a1ca1d71d8 [11734] Use vector instead of list for sorting auction items 2011-07-12 03:41:28 +06:00
Laise
202a6b0a70 [11733] fix melee attack speed slowing part of 53695 and ranks 2011-07-11 10:23:53 +03:00
SilverIce
a7fba67225 [11732] Interrupt movement state at dying
TODO: proper solution would be update creatures while in corpse state.
This also would solve problems with death persistent auras that not get updated for died creatures
2011-07-10 22:17:08 +03:00
VladimirMangos
0cbb8e311e [11731] AHBot chat/console commands.
Originaly provided in ahbot patch but havy rewrited.
2011-07-10 06:16:51 +04:00
VladimirMangos
8e48e44c22 [11730] Move empty guid check into GetPlayerAccountIdByGUID code.
This cleanup small code and let catch some missing check cases
when 0 guid attempt searched by real DB query.

This also make function call more safe if it used with non-player guid by
some reason.
2011-07-10 05:57:37 +04:00
Lynx3d
35e8af7195 [11729] Improve fishing bobber placement and send more correct error messages. 2011-07-10 03:56:06 +02:00
SilverIce
776ef3885a [11728] Lost line in prev. commit 2011-07-09 19:31:41 +03:00
SilverIce
94133107c7 [11727] Interrupt spline movement at teleporting
this fixes the position desync issue caused by teleport packets
2011-07-09 19:23:53 +03:00
blueboy
e246d8d94e [11726] Fix build on *nix
also restore accidentally removed line

Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-07-09 04:54:01 +03:00
VladimirMangos
1221a60d57 [11725] Fixed chat command parse with explicit literal check.
Before fix ExtractLiteralArg(str,"abc") reject "ab" string wrongly.
2011-07-09 05:43:11 +04:00
VladimirMangos
4ec136222a [11724] Sync some ahbot config option default values in config/code
Thanks to lakilak for find some from cases.
2011-07-09 03:57:41 +04:00
antiroot
04581f36ce [11723] Auction House Bot (AHBot) patch applied
Thanks to Chris K, cyberium, Dolomit6, grether, Kerbe, Naicisum, Paradox, Xeross
and other contributers for creating, long time improvments and patch up-to-date state support.

AHBot disabled by default. For enable it you need have ahbot.conf
in same dir where mangosd.conf placed and enable options:
AuctionHouseBot.Seller.Enabled and/or AuctionHouseBot.Buyer.Enabled

Original version ahbot.conf can be found by path:
src/game/AuctionHouseBot/ahbot.conf.dist.in

Note: chat commands from patch not included in commits and will added later after
      additional work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-08 22:32:36 +04:00
sixsixnine
124dc96643 [11722] Fix non-pch build
Signed-off-by: SilverIce <slifeleaf@gmail.com>
2011-07-08 20:32:01 +03:00
SilverIce
fc0eb7e9fa [11721] Simplify walk/run movement mode selection code 2011-07-08 19:30:00 +03:00
SilverIce
9d566398ad [11720] Implement spline movement subsystem
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc).
Proper implementation of effects such as charge, jump, cyclic movement will rely on it.
However, need improve our states system before.

Technical changes:

 1. Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation.
 2. Precission increased. There are no more position desync issues since client's position calculation formulas used.
 3. Now possible to move by paths with multiple points, send whole path to client.
2011-07-08 17:25:13 +03:00
Laise
0176b15cf0 [11718] gtfo baddie 2011-07-07 14:46:04 +03:00
Laise
774ffeaa6c [11717] fix 47245 proc 2011-07-07 10:33:36 +03:00
VladimirMangos
b5e136c289 [11716] Always use _unsigned_ BIGINT fields in DB for time store
Also some other BIGINT fields fixed.
2011-07-07 04:22:07 +04:00
VladimirMangos
f4be64ff48 [11715] Remove World::setConfigPos for uint32 and move check to all uint32 config values.
As part changes move to int32 list as expected by values:
 * CONFIG_INT32_QUEST_HIGH_LEVEL_HIDE_DIFF
 * CONFIG_INT32_QUEST_LOW_LEVEL_HIDE_DIFF

Please report if mangosd will report unexpected error (< 0) for some signed config option.
I check manually but maybe miss some...

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-07 03:47:34 +04:00
VladimirMangos
1a263cb6a0 [11714] Add enum AuctionHouseType and let use it for more direct access to auction houses in AuctionHouseMgr
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-07 03:38:34 +04:00
VladimirMangos
7db70dd969 [11713] Load ItemClass.dbc
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-07-07 03:35:21 +04:00
SilverIce
a1577182c7 [11712] Fix build 2011-07-04 09:18:35 +03:00
SilverIce
26d73759e2 [11711] Rewrite WaypointMovementGenerator 2011-07-04 05:48:36 +03:00
SilverIce
fce6a5b7d3 [11709] Cleanup, simplify random and targeted movement generator code 2011-07-03 23:23:16 +03:00
Laise
6a597ae755 [11708] add negative auras, channeled and regeneration spells immunity for totems 2011-07-03 12:26:53 +03:00
VladimirMangos
ac486506ab [11707] Drop unused in 3.x AuctionHouseMgr::SendAuctionSalePendingMail 2011-07-02 07:24:04 +04:00
VladimirMangos
5e9854974b [11706] Use proper text structure in auction mail subject/text
This for example will enable show random property suffix in item name
in auction mails.
2011-07-02 07:12:34 +04:00
VladimirMangos
cda3a95fc2 [11705] Allow have auction bid generated by server
Some code cleanups also.

Fir generation bids can be used auction->UpdateBid(price) call without player pointer.
2011-07-02 06:26:49 +04:00
VladimirMangos
0f0fa22607 [11704] Resolve possible crash in auction code for paiment pending state.
Source of crash in sharing item object for sent mail to new owner
and in same time use it in still existed auction for show pending paiment.
Crash possible if new onwer get mail in less hour delay and will drop item
at receive.

Solution: Added fields in memory auction object and table `auction` for
store item stack size and random property id. This let not use auction item
except points where item send to owner at expire and new owner at
buyout/timeout auction with bid.
2011-07-02 04:23:24 +04:00
VladimirMangos
0daf12a348 [11703] Proper way create items in Item::CreateItem/CloneItem for items not for inventory
Old code way work not allow create item without providing targeting player.
In result creating item that will not placed to inventory required additional hacks
for undo redundent links to player structures.
2011-07-02 01:08:01 +04:00
VladimirMangos
cc11366d6b [11702] Alsways attempt generate randomProperty for item in at create if value not pre-selected.
This resolve all existed cases when we miss assign random property id.

Also move random property/suffix check from item creating to server load time.
2011-06-30 19:19:02 +04:00
VladimirMangos
67f9c26d51 [11701] Command .auction item and support auction without owner.
* New command allow place auction from chat/console and create auction without owner.
* Same code can be used in other place when server code want create generated auction
  without need have associated player. Auction code update for support this case.
* MailDraft::SendMailTo now allow "send" mails to non-players. It correcly drop items in like case.
2011-06-29 23:29:32 +04:00
VladimirMangos
78991c1131 [11700] Implement SPELL_AURA_DETECT_AMORE (170)
For example used by item 35125.
2011-06-29 17:52:01 +04:00