Commit Graph

152 Commits

Author SHA1 Message Date
n0n4m3
3fe0bc5254 Replaced time(NULL) on sGameTime.GetGameTime() this is used for better performance.
Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton.
2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs.

--HG--
branch : trunk
2009-12-23 08:04:10 +01:00
p0wer
7590479186 * Add support for different gmlevel's for different realms.
*
* Using the value -1 will add the same value for all realms.
* Make sure to apply the updates.
* Information regarding this patch will be posted on the database forums soon.
*
* Thanks to Sundark and the Ilixiuemu team(for original patch)

--HG--
branch : trunk
2009-12-21 21:08:29 -06:00
Rat
6fe36efe0f *apply trinity style to whole source
*comment out all mangos to trinity defines
*this will make merging a little harder, but code will be more clear

--HG--
branch : trunk
2009-12-20 15:20:04 +01:00
n0n4m3
eccf162be2 Fixed compile errors and some typos
--HG--
branch : trunk
2009-12-17 14:06:20 +01:00
n0n4m3
89656d5749 Restore some commits from trinitycore2 3.1.3
--HG--
branch : trunk
2009-12-17 13:07:38 +01:00
n0n4m3
9f45beb67e Update Map for 322a and new instance system
--HG--
branch : trunk
2009-12-17 11:30:18 +01:00
spp
51a1a0aca9 Wintergrasp: Normalization of names to fit OutdoorPvP system
--HG--
branch : trunk
2009-12-14 03:53:38 +01:00
spp
9e2c09bf09 Wintergrasp .wg command fixes. Closes #442
* .wg timer: limit to 1-60 wartime and 1-2440 not wartime
* .wg switch: timer will not be reset.

--HG--
branch : trunk
2009-12-06 18:21:00 +01:00
maximius
296d6791aa *Wintergrasp: Add number of players in ".wg status" command, by Spp. Closes #211
--HG--
branch : trunk
2009-11-17 23:51:33 -08:00
tartalo
461b90824f Wintergrasp: Fix .wg status crash, By Spp. Fixes #9
--HG--
branch : trunk
2009-11-03 14:56:31 +01:00
tartalo
46ebbdbba7 *Wintergrasp: Tower Control was not applied when entering zone, by Spp
*Wintergrasp: Announce tower and workshops being damaged/destroyed, by Spp
*Wintergrasp: Announce when a player gets rank, by Spp
*Wintergrasp: Implementation of custom commands (.wg for more info), by Spp
    Note: enable on/off will stop timer, it's not a real disable

--HG--
branch : trunk
2009-11-02 16:18:30 +01:00
maximius
b257a28fa9 *Cleanup, fix many cases of unoptimized loops, potential crashes, excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on..
*Proper Maexxna Web Spray locations (old locations sent players flying into the air)

--HG--
branch : trunk
2009-11-01 17:53:07 -08:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
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
0cf75ef9ea *Wintergrasp: Prevent defenders team to click the relic. Patch by Spp.
*Zum'Rah Area Trigger Script, Zum'Rah should become hostile when approached. By totoro.
*Judgement of Light PPM based, not 100%. By Drevi.
*Fix Deflection Exploit. By manuel, thanks to TheNecromancer and Gyullo.
*Correct Wintergrasp Tenacity formulas, by Gyullo.
*A Spirit Guide Escort Quest, code from SD2, patch by manuel.
*TrullyOne/MeanMachine Waypoint System Restored. Patch by XTElite1.

--HG--
branch : trunk
2009-09-19 12:13:08 -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
megamage
0c0a7b6b0e [8444] Prevent spawn gameobjects with invalid displayid by command. Author: VladimirMangos
Also fix mangos string for not existed gameobejct entry.

--HG--
branch : trunk
2009-09-02 15:42:40 -05:00
megamage
2a4c9bcaf9 *Make position as a class;
--HG--
branch : trunk
2009-08-29 14:58:45 -05:00
megamage
6de6557bf0 *Fix a crash caused by gm command .object move and so on
--HG--
branch : trunk
2009-08-28 14:19:14 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
Machiavelli
e0c660d831 * Fix memory leak in WaypointStore::UpdatePath
* Correct packet size calculating mistake from 5292
* Code style cleanup in Level2.cpp (Waypoint commands)

--HG--
branch : trunk
2009-08-22 16:54:14 +02:00
Anubisss
227a1dc0be Show player's race and class in command .pinfo
--HG--
branch : trunk
2009-08-15 01:20:18 +02:00
megamage
0fcadd9d25 *Replace "LoginDatabase" with "loginDatabase"
--HG--
branch : trunk
2009-07-31 11:29:28 +08:00
QAston
2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +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
Anubisss
d78c917eff *Print the account's email in command pinfo. Based on Charlie's patch.
--HG--
branch : trunk
2009-07-05 00:37:05 +02:00
megamage
111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -05:00
Machiavelli
cf414bb7ca * Minor typo cleanup
--HG--
branch : trunk
2009-06-29 15:03:07 +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
Machiavelli
6fd51a0273 *Add forgotten part of previous commit
--HG--
branch : trunk
2009-06-27 17:41:07 +02:00
Machiavelli
dfe7b63899 * Fix message that gets sent to target when using .namego command.
* Re-add clean up in mute command

--HG--
branch : trunk
2009-06-27 17:38:18 +02:00
QAston
e7e79ff8a4 *Merge.
--HG--
branch : trunk
2009-06-27 16:37:29 +02:00
QAston
a74ae18739 *Merge tc1 commits 1582-1590
--HG--
branch : trunk
2009-06-27 15:29:06 +02:00
Machiavelli
4a93373c06 * Use safer way to handle recently added mute reason command
--HG--
branch : trunk
2009-06-20 23:28:47 +02:00
Machiavelli
1dd1f6db34 * Implement parameter 'reason' for mute command.
--HG--
branch : trunk
2009-06-20 14:16:42 +02:00
megamage
9049233629 *Merge.
--HG--
branch : trunk
2009-06-16 00:07: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
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
Machiavelli
79c15a3d75 Remove unneeded query for renaming characters that are online, this is handled perfectly with the Player::SetAtLoginFlag and Player::SaveToDB functions already.
--HG--
branch : trunk
2009-06-08 20:56:24 +02:00
megamage
ebfb4c0558 [7971] Implement support exotic pets limtations related to hunter telent 53270. Author: VladimirMangos
Note: before this commit hunters can tame exotic pets like any other.
          After patch like not propertly contriolled pets will auto-dismiss at loading
          if talent not learned.

--HG--
branch : trunk
2009-06-06 20:31:23 -05:00
megamage
72cab37bcc [7923] Search all available locale skill names in .learn all_recipes Author: VladimirMangos
--HG--
branch : trunk
2009-05-31 16:24:56 -05:00
megamage
552e08b3f0 [7920] Ignore racial skill and skills without recipes in .learn all_recipes. Cleanup code. Author: VladimirMangos
--HG--
branch : trunk
2009-05-31 16:19:01 -05:00
megamage
f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
      I64FMTD renamed to UI64FMTD for more clear name.
    * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
      Please always use UI64LIT(0x00001) instead less portable 0x00001LL

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00
megamage
8d1f4f9ea0 *Provide another way to implement dynamic spawns. Now a creature will call its zonescript before spawn to determine the spawned entry. This can be used to implement zones such as wintergrasp with less data requirement (only need to know the entry of counterpart creatures, not require spawn points)
*Use zonescript as basic class of opvp script and dugeon script (can also be used for bg)
*Store zonescript in worldobject.
*Add door for sapphiron.

--HG--
branch : trunk
2009-05-30 22:15:05 -05:00
panaut0lordv
d846ae72ae Sorry, hg missed this change.
--HG--
branch : trunk
2009-05-21 19:46:56 +02:00