Commit Graph

237 Commits

Author SHA1 Message Date
maximius 26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius ad91c3a94b * Wintergrasp: Elementals/Revenants only visible outside Wartime. By Spp
*Wintergrasp: Fixed Towers, weren't giving rewards. By Spp
*Wintergrasp: Cosmetic changes to make code easier to follow. By Spp (idea by Biglad)
*Wintergrasp: Building are immune to damage outside Wartime. By Spp (Original code by Biglad)
*Wintergrasp: Modified Custom Honor (Honor and marks) to fit with rank level. By Spp (Thanks to Gyullo and Magnarion)
*Some cleanup.

--HG--
branch : trunk
2009-10-17 02:06:12 -07:00
maximius ae3a82feed *Wintergrasp: Cannons only visible during wartime, by Spp
*Wintergrasp: Custom Honor system now gives marks and completes achievements, by Spp

--HG--
branch : trunk
2009-10-14 22:35:09 -07:00
Machiavelli 43b3f834cf * Allow the initialization of the Wintergrasp OutdoorPvP enviroment to be disabled if configured.
--HG--
branch : trunk
2009-10-06 20:46:58 +02:00
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 906b00465a *add 11 new event hooks to the OnEvents system, by Hawthorne
--HG--
branch : trunk
2009-09-23 20:19:21 -07:00
Chaz Brown 7aa91dd81b * AHBot rewritten to cause less lag spikes when checking for bids and when adding new auctions.
* AH Deposit function rewritten to generate deposits closer to official.
* AH Mail system rewritten to fix some bugs.
* MULTI_THREAD_MAP enabled by default (I have no idea why this was commented out before)
* CLIENT_VER added for allowing parts of the code to be enabled/disabled depending on the client version supported.
  Only used in AHBot for now.
* Various code cleanups.

--HG--
branch : trunk
2009-09-22 20:40:34 -04:00
Chaz Brown c7cc007950 Add Server revision to realmd.uptime table
--HG--
branch : trunk
2009-09-15 01:09:36 -04:00
maximius b4a13eff51 *Missed some changes
--HG--
branch : trunk
2009-09-11 13:42:39 -07:00
Machiavelli 5bd67d1b4b Allow Wintergrasp honor rewards to be customized. Please update your trinitycore.conf.
--HG--
branch : trunk
2009-09-11 17:51:32 +02:00
maximius 5633ea57d1 *MrSmite's PetAI patch, plus Hawthorne's Instant Flight Paths (now with actual code! >_<)
--HG--
branch : trunk
2009-09-10 09:59:16 -07:00
megamage dc68c2b269 [8433] Implement proper store and use character specific account data.
* Base at TOM_RUS reseach save/load character specific account data in new table `character_account_data`
    * Move its in sql update from `account_data` to new table.
    * For client packets that can be send in loggined state or just after logout but assocualted
      with recently logout character add new login status STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT
    * Store low guid for loggedin player or recently logout into WorldSession.

Author: VladimirMangos, TOM_RUS

--HG--
branch : trunk
2009-09-01 16:47:49 -05:00
maximius 1646b0bcef *More updates to Rate.MoveSpeed, thanks megamage
--HG--
branch : trunk
2009-08-30 21:33:17 -07:00
maximius 054aa05201 *Should fix some things with Rate.MoveSpeed, thanks megamage
--HG--
branch : trunk
2009-08-30 21:10:31 -07:00
maximius aab7742e38 *Add Rate.MoveSpeed (aka speedpatch) to core
--HG--
branch : trunk
2009-08-30 19:00:19 -07:00
Chaz Brown 055acc4b8a Replace switch with more proper way of checking allowSecurityLevel, and a few other minor changes.
--HG--
branch : trunk
2009-08-29 08:51:24 -04:00
Chaz Brown 2345c5ca8d Change default MOTD text in load from conf (how did this get overlooked?) comment out some nonsense in SetPlayerLimit that was causing the allowedSecurityLevel in realmd to be reset. (I think someone got confused between setting a limit on number of players allowed and the allowed security limit...) You can now Block Players from connecting to certain realms by setting the allowedSecurityLevel in the realmlist - Thanks, raczman for nudging me in the right direction
--HG--
branch : trunk
2009-08-29 05:17:55 -04:00
megamage 90b55ff7b1 [8424] Added support for strict chatmessage validation Author: arrai
--HG--
branch : trunk
2009-08-27 19:57:35 -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 eb81138e6d *Add a config option for .die command behavior
--HG--
branch : trunk
2009-08-20 13:22:07 -07:00
Machiavelli 6b6963c66d * Change CONFIG_OFFHAND_CHECK_AT_TALENTS_RESET to CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, and change behaviour related to the value.
Note: Update your configuration file.

--HG--
branch : trunk
2009-08-17 03:17:14 +02:00
maximius b6e7065d41 *Add config option to change minimum level required to Dual Spec
--HG--
branch : trunk
2009-08-15 13:39:40 -07:00
megamage 372655d862 [8365] Small description clarify for new config option. Author: Fog
--HG--
branch : trunk
2009-08-14 14:36:11 -05:00
megamage 1211aabb28 [8364] Implement possibility reset client cache data from server side. Author: Fog
Implemented 2 way set cache data "version":
    * New db_version.cache_id field let set cache data version by DB content creators.
      This can be used for content releases by seting some unique value at each release.
      This value used by default.
    * New mangosd.conf config option let set (overwrite DB value) or use 0 for ignore.
      This can be used by serever admin for reset cache at some local changes.

    Note: values use at client login and then must be unique for long period time to avoid ignored
          at login some long not connected client with old same cache version value.

--HG--
branch : trunk
2009-08-14 14:34:46 -05:00
megamage d575793f6d [8343] Extand level allowed range for item use to upper values if it end at max player level. Author: VladimirMangos
Also add DEFAULT_MAX_LEVEL define for store current used client expection about max player level.
    For example for current supported this is 80.

--HG--
branch : trunk
2009-08-12 20:30:17 -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
maximius 64ee35bd94 *Added autoannounce to core, and optimized autobroadcast db query to put less strain on MySQL
--HG--
branch : trunk
2009-08-08 15:05:21 -07:00
maximius fe3ba612d9 *Emalon the Stormwatcher fully scripted, by Necroo (boss needs to be spawned and ScriptName needs to be updated)
*Added config options: DurabilityLoss.OnDeath and DurabilityLoss.InPvP, optimized Rate.RepairCost

--HG--
branch : trunk
2009-08-07 12:12:42 -07: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
megamage 0a2af88cb4 [8252] Move DB scripting code from global World to Map. Author: Ambal
This one more step to pre-map events proccesing and parallel in future.

    [8256] Restore DB script loading broken after [8252]. Author: VladimirMangos

    Also propetly decrease scheduled DB script actions at map unloading.
    Some code style restore.

--HG--
branch : trunk
2009-07-31 10:48:34 +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 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 833e4e41ab [8185] Allow set visible gm level for in gm list and in who list checks. Author: VladimirMangos
* GM.InGMList replaced by GM.InGMList.Level with default value 3 (visible any gm levels)
    * GM.InWhoList replaced by GM.InWhoList.Level with default value 3 (visible any gm levels)

    Update mangosd.conf if used non default value for old GM.InGMList and GM.InWhoList

--HG--
branch : trunk
2009-07-20 11:51:20 +08: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
Anubisss 692c927e75 *Show online players numbers in command server info.
--HG--
branch : trunk
2009-07-12 00:16:56 +02: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
Kudlaty 820f77c265 Fix showing proper EventAI version. Thx for pointing X-Savior
--HG--
branch : trunk
2009-07-09 11:14:43 +02:00
megamage 7c8f37abea [8078] Fixed typos in character data loading after recently added new field.
* Really use race/class/gender fields instead `data` field values.
    * Load extra flags (gm mode onm gm fly mode, gm invisibility and etc) from proper field.

    NOTE: recommedned reset characters.extra_flags field to 0 for all characters.
    It can be corrupted in time login/logout before this fix.

Author: VladimirMangos

--HG--
branch : trunk
2009-06-27 17:50:28 -05:00
megamage 06123fa3af *Add config option Arena.QueueAnnouncer.PlayerOnly
--HG--
branch : trunk
2009-06-19 19:30:32 -05:00
megamage a49c2982ba *Merge.
*mtmap is disabled by default. To use it, define MULTI_THREAD_MAP in define.h
*mtmap support is not provided for windows users. Because there is no free openmp lib for windows. If you have openmp lib and want to use openmp, you need to manually change the setting.

--HG--
branch : trunk
2009-06-18 19:27:17 -05:00
megamage 7e4fcb1793 *Now new arena team has both team rating and personal rating = 0. According to the change in 3.1
--HG--
branch : trunk
2009-06-17 18:19:08 -05:00
megamage 2d569883e6 *Add config option CheckDB to check if the contents in FULL folder are applied.
--HG--
branch : trunk
2009-06-17 14:09:17 -05:00
Machiavelli 6ad7da569c *Integrate TicketMgr with ObjectMgr and clean up assosciated code. More features concerning ticket system are to be added soon. Please report any issues, thanks.
--HG--
branch : trunk
2009-06-15 23:58:29 +02:00
raczman 19225e8880 Added basic support for multithreaded map updates using openmp standard.
Windows users need to install Platform SDK to use this feature,
linux users have everything they need in gcc.
Number of threads used to update world is set by confiuration file,
and can be changed dynamically without restarting core.
Thanks to megamage and Jeniczek for testing and helping out with this.

--HG--
branch : trunk
2009-06-15 09:07:51 +02:00
megamage 9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage 5daba83c70 *Move relocation notify back to map class so that mtmap can work better.
--HG--
branch : trunk
2009-06-10 16:33:09 -05:00
megamage 4167ca4f84 *Do relocation notify in world class and only not do it every update.
--HG--
branch : trunk
2009-06-09 19:54:46 -05: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