Commit Graph

206 Commits

Author SHA1 Message Date
maximius
f980dd9ac6 *Merge [8524] New cell search algorithm implemented. You can now choose different
visibility distances on continents, in BG/Arenas and instances. Author: Ambal
*Some warning cleanup

--HG--
branch : trunk
2009-09-27 02:24:25 -07:00
maximius
7396b641ae *Gundrak: GO Handling & Slad Ran script by Tartalo
*Cleanup, and don't consider creatures to be in combat if they have no victim, or if their victim is a GM.

--HG--
branch : trunk
2009-09-26 16:01:30 -07:00
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
maximius
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
Kudlaty
b287288888 Fix compatibility problems with PostgreSQL. Patch by Azuritus
--HG--
branch : trunk
2009-09-10 22:40:40 +02:00
Chaz Brown
52f243563f Fix a couple of small typos.
--HG--
branch : trunk
2009-09-04 19:50:00 -04:00
megamage
c5fe210461 *Fix the error in 5477 which makes server freeze.
--HG--
branch : trunk
2009-08-30 11:24:56 -05:00
biglad
8db1370cd6 * Fix Build
--HG--
branch : trunk
2009-08-30 11:47:29 +01:00
maximius
86a4d496e7 *Cleanup in dual spec and handling of multiple ranks of spells; cleanup in resetSpells (by TOM_RUS)
--HG--
branch : trunk
2009-08-30 03:00:11 -07:00
megamage
87270fefc2 *Some update of aura system. Remove unnecessary variables and parameters from auraeffect. Always refer to parent aura when finding target/source/caster.
--HG--
branch : trunk
2009-08-24 22:31:54 -05:00
megamage
5df31bd4b3 [8412] Update some new and old client supported shift-links to proper format. Author: VladimirMangos
* List all client and server side supported shift-link types updated in Chat.cpp
    * Now Henchant anf Hglyph links can be used in commands as spell links.
    * Hitem and Hquest links changed to client supported form.

--HG--
branch : trunk
2009-08-24 20:30:52 -05:00
megamage
6e8009446d [8402] Optimalized guild_eventlog and guild_bank_eventlog loading from database.
Added config options to set count of eventlog records stored in DB.
    Attached SQL files will DROP existing and create new tables. Make sure you create backup (if you need old data).
    Renamed few variables in Guild class.
    Signed-off-by: Triply <triply@getmangos.com>

*Note: existing guild bank log will be removed.

--HG--
branch : trunk
2009-08-24 19:23:31 -05:00
maximius
f7bc620f4f *Cleanup
--HG--
branch : trunk
2009-08-20 13:32:12 -07:00
maximius
eb81138e6d *Add a config option for .die command behavior
--HG--
branch : trunk
2009-08-20 13:22:07 -07:00
Machiavelli
c674463df4 * Change .die command handler so that the user can get credit for the kill
--HG--
branch : trunk
2009-08-20 18:24:45 +02:00
megamage
ce7b0907b8 *Fix a typo. By mike753
--HG--
branch : trunk
2009-08-10 15:53:27 -05:00
Anubisss
18f712f52b *Read AutoBroadcast's messages from cache instead of from DB every times.
--HG--
branch : trunk
2009-08-10 17:03:11 +02:00
Chaz Brown
b9eb4ddf2e AHBot rewrite, pulled from TC2-3.0.9 repo, in no particular order.
*Any file named README.Something (including the original README) will be copied to the build directory when compiled with VS
*Converted AuctionHouseBot to class structure, implemented Singleton for class
*Moved global variables inside of AuctionHouseBot class,
*Minor code cleanups, reformated headers, fixed switch logic errors
*Parts of this code are from Naicisum's Mangos version.
*Prevent endless looping condition where Item Quality has no percentage
*Fix situation where items in the AH would be less than the maxitems setting
*Move AHBot item filters to initialization so the items that are not allowed only get evaluated once.
*Change the way Bid prices are calculated, along with Maximius' uint64 fix, prices should look a lot better now.
*Includes a fix for grey items from MrSmite

--HG--
branch : trunk
2009-08-06 03:00:45 -04:00
megamage
0fcadd9d25 *Replace "LoginDatabase" with "loginDatabase"
--HG--
branch : trunk
2009-07-31 11:29:28 +08:00
QAston
9c52a12e08 Backed out changeset 6ba74f274cb9 - mangos [8249]
--HG--
branch : trunk
2009-07-30 11:44:23 +02:00
megamage
7121d98480 [8249] Implement support spell_proc_item_enchant table for ppm item enchantments triggering at hit.
* Added a new SQL table, spell_proc_item_enchant, for "custom" ppmRates on Item Enchants that do not use auras.
      With table data this must fix ppm for effect from 8033 and ranks enchanting, and item 6947/10918 and ranks enchanting.

    * Implemented SPELLMOD_FREQUENCY_OF_SUCCESS (26).
      That must fix work talent 14113, spell 32645 with ranks, glyph 41094 and item set effect 64917 in frequency part.

    Thanks to MaS0n as author alternative patch that partly used in this patch.
    Thanks to Thenecromancer as author alternative patch that ideas inspire MaS0n's patch writing and then this patch also.

Author: nos4r2zod

*Note: has been implemented before. Only use part of the patch.

--HG--
branch : trunk
2009-07-30 11:33:28 +08:00
megamage
62a6d1dfbe [8203] Correcttly re-apply level scaled item stat mods at player level change. Author: Trogvar
--HG--
branch : trunk
2009-07-24 09:15:29 +08:00
megamage
f481e7b14d [8191] Drop code related to use long time empty spell_affect table. Author: XTZGZoReX
After switch to 3.x.x all data get explcitly from ClassMask fields in spell.dbc
    and no need in custom values.

--HG--
branch : trunk
2009-07-23 09:30:05 +08:00
megamage
ffcbd11b2c [8190] Update killing quest objectives base at creature_template KillCredit fields. Author: GriffonHeart
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way.

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

    Also implement KillCreditN field check at loading.

--HG--
branch : trunk
2009-07-20 12:30:37 +08:00
QAston
88cd705c26 *Remove some code for spells not present in dbc of 313.
--HG--
branch : trunk
2009-07-17 17:26:13 +02:00
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
megamage
6f25682423 [8167] Use more consistence debug command handler names and move its code to debugcmds.cpp Author: VladimirMangos
--HG--
branch : trunk
2009-07-16 09:28:00 +08:00
megamage
d27e5f3de1 [8137] Init player display id + native display id on login. Author: hunuza
* Temporary reset of display id on save no longer needed.
    * Players always have the right model for their gender.

--HG--
branch : trunk
2009-07-10 08:39:14 +08:00
megamage
6976043e22 [8126] Improvemets in player/pet/charter name checks. Author: VladimirMangos
* Implement new config options for minimal player/pet/charter name length (2 by default)
    * Better error reporting at problems in names.
    * Add check from max pet/charter name length (same as for player names at client side)

--HG--
branch : trunk
2009-07-10 08:25:33 +08:00
megamage
eec93e0852 [8116] Fixed low ranks relearn bug, correctly show tlanes at command spell learn. By VladimirMangos
* Bug showup as paladin talents reset. Thanks to ApoC for reseach problem.
    * Now at .learn command use for learn some talent this talent must correctly show as learned in talent dialog.

--HG--
branch : trunk
2009-07-07 06:59:03 +08:00
Anubisss
a7f55ece55 *Correct error message in command lookup taxinode.
--HG--
branch : trunk
2009-07-05 01:51:09 +02:00
Anubisss
1ca3728059 *Move command lookup faction's code to the correct file.
--HG--
branch : trunk
2009-07-05 01:41:27 +02:00
Anubisss
bf697be6f3 *Change uint32 counter to bool found in lookup commands.
--HG--
branch : trunk
2009-07-05 01:19:49 +02:00
megamage
d9ec2d2196 [8072] First step to get rid of data blob.
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table.

    The update will not work if your database contains characters with an old data field (not fitting to the actual client version).

    It's recommended to backup your character database before applying this patch.

--HG--
branch : trunk
2009-06-27 17:39:51 -05:00
megamage
fe89fbfbdb [8057] Move code from Event AI to class Creature function for reuse in other scripting cases. Author: NoFantasy
--HG--
branch : trunk
2009-06-27 15:37:33 -05:00
Chaz Brown
922fee4e1b Fix AHBot maxitems command
--HG--
branch : trunk
2009-06-25 22:46:22 -04:00
QAston
ad91c6b1e2 [8052] Fixed typo in error log output. Author: The_Game_Master
[8049] Added energize effect after last heal tick for 33763 and ranks. Author: bobaz
[8053] At character talents reset using chat command also reset talents
for all character pets. Author: VladimirMangos

--HG--
branch : trunk
2009-06-23 13:05:15 +02:00
Anubisss
609986afed *Better reset time format in command .lookup map
--HG--
branch : trunk
2009-06-19 09:00:29 +02:00
Anubisss
ee6126dd50 *Implement command .lookup map
--HG--
branch : trunk
2009-06-19 01:48:34 +02:00
megamage
4f0ae79036 [8041] Avoid send talent info many times at loading. Small cleanups. Author: VladimirMangos
--HG--
branch : trunk
2009-06-18 17:06:59 -05:00
Machiavelli
a4dafbf8ec * More updating of iterator data types in loops
--HG--
branch : trunk
2009-06-18 18:29:28 +02:00
Machiavelli
3a309abfab * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.

--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
Xlybriem
5154786c1f *Use SendGlobalGMSysMessage() instead of SendGlobalSysMessage() in some reload commands.
--HG--
branch : trunk
2009-06-15 20:45:19 +02:00
megamage
4e130dcdfd [7980] Implement item use target requirements store and check (new table item_required_target). Author: NoFantasy
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

    * Also implement this table reload
    * Static Spell::SendCastResult function for call not from spell code.
      Can be also used in scripts where need send explicitly spell cast error to client.

--HG--
branch : trunk
2009-06-08 17:25:02 -05:00
megamage
a328728cb8 *Implement spell aura 177.
--HG--
branch : trunk
2009-06-07 23:32:35 -05:00
megamage
79b76f10cd *Merge. A m_casttime check is added to prevent redundent check of canseeordetect.
--HG--
branch : trunk
2009-06-07 11:59:12 -05:00
Chaz Brown
715f410fb7 Fix AHBot to calculate the deposit for auctions so it can be used to check the code for figuring deposit amount on a wide range of items. Fix ahbotoptions command so it works from the server console again. change commented out lines in GetAuctionDeposit so they display in debug loglevel. Min/Max Time settings replaced with a function that selects 12 24 and 48 randomly as the auction times. Backport from TC2
--HG--
branch : trunk
2009-06-05 21:12:12 -04:00
Chaz Brown
ab712b78ba Fix AHBot to calculate the deposit for auctions so it can be used to check the code for figuring deposit amount on a wide range of items. Fix ahbotoptions command so it works from the server console again. change commented out lines in GetAuctionDeposit so they display in debug loglevel. Min/Max Time settings replaced with a function that selects 12 24 and 48 randomly as the auction times.
--HG--
branch : trunk
2009-06-05 20:51:45 -04:00
megamage
8d66848af8 *Fix a crash when aubot command is not correctly used.
--HG--
branch : trunk
2009-06-05 14:45:05 -05:00