Commit Graph

156 Commits

Author SHA1 Message Date
megamage 8451619c2f [7647] Fixed typo in option StartHonorPoints default value set at error. Author: zhanhang03
--HG--
branch : trunk
2009-04-11 15:35:50 -05:00
megamage 6d0b82676c [7643] Allow set, store and output creture EventAI data version in addition to world DB and script library versions. Author: VladimirMangos
*This patch is disabled in TC2.

--HG--
branch : trunk
2009-04-09 17:57:57 -05:00
megamage 7b2ae4d964 [7627] Replace built-in in code table by new DB table achievement_criteria_data for store additional data for achievement criteria. Author: VladimirMangos
--HG--
branch : trunk
2009-04-08 16:24:34 -05:00
megamage f59c4debf6 [7622] Added creatureAI with related database tables. Author: AlexDereka
*Note: three tables are renamed.

--HG--
branch : trunk
2009-04-07 19:38:09 -05:00
XTZGZoReX 2fe9fed7c7 * Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *
--HG--
branch : trunk
2009-04-07 10:51:45 +02:00
megamage 508a57313c *Merge.
--HG--
branch : trunk
2009-04-05 17:10:59 -05:00
megamage f692364e8e *Fix a crash caused by scriptprocess
--HG--
branch : trunk
2009-04-04 20:31:43 -06:00
megamage cb8b3fe5db [7607] Improvements in support some generic achievement classes Author: VladimirMangos
* Implement support achievements with refAchievement field != 0, that have criterias stored in achievement refAchievement.
    * Implement support achievement complete req. with specific count of completed critirias.
    * Avoid full achievement list scan at search achievement associated with criteria.

--HG--
branch : trunk
2009-04-03 16:36:20 -06:00
raczman 38d634a163 Fixed BG mark rewarding in case of prematurely finished BG:
-team with most points will get 3 marks, the other one 1 mark
-in case of a draw, each team gets 1 mark (not sure if blizzlike)
TODO:
-remove per BG score variables and substitute them further with general m_score[] array to avoid data duplication.
Please report any bugs, and TC2 devs - dont pull this change into TC2, its not 309-like.

--HG--
branch : trunk
2009-04-04 00:29:43 +02:00
megamage 6581497411 [7572] Use enum type instead int for World::SendServerMessage arg Author: VladimirMangos
--HG--
branch : trunk
2009-03-28 17:56:15 -06:00
XTZGZoReX c23ca809df * Fixed tolerant login queue. Thanks to Iskander.
--HG--
branch : trunk
2009-03-28 10:55:14 +01:00
megamage bc2f2bc56a [7552] Move client version dependend DBC code to src/game. Author: VladimirMangos
--HG--
branch : trunk
2009-03-27 09:58:20 -06:00
panaut0lordv b40140e63c Fix typo.
--HG--
branch : trunk
2009-03-26 21:18:11 +01:00
megamage 1ac13728a7 [7545] Fixed exploration achievements for certian areas Author: DonTomika
[7546] move uptime table to Realm database, use realmid column. Author: Triply

--HG--
branch : trunk
2009-03-26 14:02:11 -06:00
XTZGZoReX 0952469d69 * Fix some conversion in DB logging.
--HG--
branch : trunk
2009-03-26 16:46:08 +01:00
XTZGZoReX 0da5f826b8 * Implement logging of battleground chats.
* New config option: ChatLogs.BattleGround.

--HG--
branch : trunk
2009-03-26 16:12:17 +01:00
XTZGZoReX aa033536c1 * Fixed two typos. Thanks Wormheart.
--HG--
branch : trunk
2009-03-26 15:56:00 +01:00
XTZGZoReX 942e93fbcb * Implemented WUPDATE_CLEANDB timer to clean logs table of old entries.
* New config option: LogDB.Opt.ClearInterval - time in minutes between each call to cleanup.
* New config option: LogDB.Opt.ClearTime - maximum time in seconds to keep old log entries.

--HG--
branch : trunk
2009-03-25 15:21:32 +01:00
XTZGZoReX 82e966e5f2 * Added support for logging chats: Guild, raid, party, public, officer chat, addon messages, whispers, system/custom channels.
* Added config options to enable/disable them (ChatLogs.*), LogDB.Chat (enables/disables DB logging of chats), and ChatLogFile to specify the log file to use.

--HG--
branch : trunk
2009-03-25 14:25:15 +01:00
megamage 470d961dfa Let set in conf custom rates for low level kill/quest reputation gain. Author: VladimirMangos
--HG--
branch : trunk
2009-03-22 19:29:09 -06:00
megamage a47d2e1c22 *Note some script id are changed. DB change may be needed.
[7518] Implement new script command SCRIPT_COMMAND_PLAY_SOUND (look in World.h for args) Author: VladimirMangos

    * Also rewrite use SMSG_PLAY_OBJECT_SOUND/SMSG_PLAY_SOUND
      Now WorldObject have 2 function for sound level dependent from distance (PlayDistanceSound)
      and for not depednet (PlayDirectSound)
    * Old Player::PlaySound function removed and uses need to be updated to WorldObject functions
      Note: function called for _source_ of sound in different from old function.
    * chat command .debug ps removed and .debug playsound can used for bother packects test:
      if no selection used SMSG_PLAY_SOUND, if selection exist including self then SMSG_PLAY_OBJECT_SOUND.

--HG--
branch : trunk
2009-03-22 19:20:03 -06:00
megamage f1afff1a5b Updated OpenSSL lib. Thanks to Neo2003. Author: tomrus88
--HG--
branch : trunk
2009-03-21 14:39:04 -06:00
XTZGZoReX 55695eda78 * Implement ".server set closed on/off" command to allow/deny new connections to the world.
--HG--
branch : trunk
2009-03-21 13:51:28 +01:00
XTZGZoReX 9fe43fa9c0 * Implementing database logging:
** LogTime and LogColors config options removed due to incompatibility.
** Old file logging still available.
** Totally redone the Log class.
** Config options added: EnableLogDB, DBLogLevel, LogDB.Char, LogDB.RA, LogDB.GM -- remember to update config file.
** SQL updates attached.

--HG--
branch : trunk
2009-03-19 21:13:52 +01:00
megamage f71dff82c6 *Fix build.
--HG--
branch : trunk
2009-03-09 19:17:12 -06:00
megamage 01b67a1f6a [7413] Fixed finally problems with node names localization in BattleGroundAB messages. Author: VladimirMangos
Also fix build at some platforms.
Note: GetTrinityString should be removed in the future when AV is updated.

--HG--
branch : trunk
2009-03-09 17:06:13 -06:00
megamage 5d5b37ab32 *Support localization for messsages in battleground. Author: VladimirMangos
[7411] Use similar localization classes for World::SendWorldText muti-line message. Author: VladimirMangos

--HG--
branch : trunk
2009-03-09 17:00:31 -06:00
megamage e3fa93e75f [7395] Default MaxPlayerLevel should be 80 Author: multiplexer
--HG--
branch : trunk
2009-03-07 10:40:59 -06:00
megamage 417c7c8319 [7393] Implement access to client side holiday ids. Author: VladimirMangos
* src/game/GameEvent.* renamed to src/game/GameEventMgr.* for consistence
    * `game_event` now have new `holiday` field for store client side holiday id associated with game event
    * Added new enum HolidayIds with existed at this moment holiday ids.
    * New function "bool IsHolidayActive(HolidayIds id)" added accessabel from scripts for active holidays check.

--HG--
branch : trunk
2009-03-06 19:36:47 -06:00
megamage 7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
Paradox 7b47d509e3 New AHBot plus AuctionHouse changes
--HG--
branch : trunk
2009-03-06 17:47:11 -06:00
megamage 80cd305082 [7383] Changed some comments in config file, changed default MaxRatingDifference from 100 to 150 in default config.
[7384] Removed some comments.
    Fixed problem that queues doesn't invite new players to already running battlegrounds.
    Some other fixes for announce system will be soon.

Author: Triply

--HG--
branch : trunk
2009-03-05 19:02:08 -06:00
megamage 635faad2bc *Merge.
--HG--
branch : trunk
2009-03-05 15:24:09 -06:00
Blaymoira fd2fd00c14 *Implement access_requirement table - by Iskander
- now check the requirements on teleport not only on areatrigger use
- moved some columns from instance_template and areatrigger_teleport to access_requirement table

--HG--
branch : trunk
2009-03-05 21:02:33 +01:00
Blaymoira c5175e5e47 *Implement SCRIPT_COMMAND_KILL for database scripting
--HG--
branch : trunk
2009-03-05 17:25:29 +01:00
megamage 8998eba728 [7368] Implement unequip unexpected offhand weapons at talent reset (mostly for warror talent case). Author: Lightguard
Implemented OffhandCheckAtTalentsReset option for unequip at zone change (default)
    and at talent reset itself (can be enabled).

--HG--
branch : trunk
2009-03-02 17:04:46 -06:00
megamage b1677c901d [7362] Use IN_MILISECONDS where appropriate, other cleanups. Author: VladimirMangos
--HG--
branch : trunk
2009-03-02 16:53:50 -06:00
Paradox iamparadox@netscape.net ef8d2ac080 AHBot/AH changes
--HG--
branch : trunk
2009-02-28 17:42:29 -05:00
megamage adb19df474 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area. Author: VladimirMangos
* It allow store requirenments: area, active or rewarded quest (until possible another quest not rewarded),
      aura present at character, character race/gender.
    * Listed spell can marked as auto-casted when fit requirents. In this case spell requirements checked at
      zone/subzone update (and then resurraction also), quest start/reward, dummy aura apply.
    * Old hardcoded lines for similar check removed from sources and required DB support for work now.

--HG--
branch : trunk
2009-02-27 12:53:27 -06:00
megamage 472f897b0a [7336] Implemented new BattleGroundQueue invitation system. Now it supports premade group versus premade group matches.
Added 2 new config options - InvitationType and PremadeGroupWaitForMatch - you can find more info in default config file.
    This patch can cause crashes.

Author: Triply

[7338] Little cleanup in battleground queues code. Author: ApoC

--HG--
branch : trunk
2009-02-27 12:13:59 -06:00
megamage 85d5d94e71 [7333] Refactoring DestinationHolder/Traveler/Unit::SendMonsterMoveWithSpeed code. Author: VladimirMangos
* Move common code in appropriate functions.
    * Correct select speed and 2D/3D distance for creature/player walk/fly

--HG--
branch : trunk
2009-02-26 20:35:40 -06:00
megamage 65a933c6c1 *Fix build.
--HG--
branch : trunk
2009-02-24 11:55:56 -06:00
megamage 699bc588b8 [7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
    2) redundent includes
    3) wrong constructor :-part field initilization
    4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
    5) explicitly list not implemented achievement types.

    Also bugs fixed:
    1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
    2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
    3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.

--HG--
branch : trunk
2009-02-24 11:14:28 -06:00
megamage 107218fe44 *Merge.
--HG--
branch : trunk
2009-02-22 17:35:14 -06:00
Blaymoira c5204ca3a0 *Configurable option time for reconnect without queue - by Iskander
--HG--
branch : trunk
2009-02-21 18:31:26 +01:00
megamage ec52b48c46 [7305] Allow use datalong2 not only for set target for DB script cast but also caster (1 bit set target (target/source), 2 bit set caster (source/target)) Author: VladimirMangos
--HG--
branch : trunk
2009-02-19 18:56:50 -06:00
megamage e21b2c9baa *Implemented gameobjects and creatures grouping (pools of them)
*Groups (called pools) can be also member of any game event
Author: Neo2003

--HG--
branch : trunk
2009-02-19 18:44:20 -06:00
megamage 31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin 14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage a24928be67 [7292] Implement storage for points of interest data in DB.
It can be in current state used for simplify scripting code that set POI and more advansed way later..
    Call void PlayerMenu::SendPointOfInterest( float X, float Y, uint32 Icon, uint32 Flags, uint32 Data, char const * locName )
    will removed after some time delay, and only void PlayerMenu::SendPointOfInterest( uint32 poi_id ) will exist.

Author: GriffonHeart

--HG--
branch : trunk
2009-02-17 17:40:03 -06:00