Commit Graph

105 Commits

Author SHA1 Message Date
maximius
d22768a6b5 *Cleanup
--HG--
branch : trunk
2009-10-18 18:38:46 -07: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
Machiavelli
b1e2eda5be * Some changes to command handlers. Patch by ogeraisi
--HG--
branch : trunk
2009-10-05 21:47:51 +02: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
maximius
65d0a8bd90 *[8457] display summoner to summoned at .namego command Author: balrok
--HG--
branch : trunk
2009-09-11 12:59:30 -07:00
Kudlaty
b287288888 Fix compatibility problems with PostgreSQL. Patch by Azuritus
--HG--
branch : trunk
2009-09-10 22:40:40 +02:00
maximius
d2ae7e1cd4 *Make .namego and .goname more flexible when summoning players to/from instances & BGs
--HG--
branch : trunk
2009-08-26 22:17:40 -07:00
maximius
35c57db00a *Make .namego and .goname inherit phase from destination player
--HG--
branch : trunk
2009-08-26 21:48:38 -07:00
megamage
4f4775a31b [8339] Improved storing/restoring BG entry point
* Introduced new table character_battleground_data
    * Entry point is now stored on BG enter event not join event
    * Entry point for dungeons is now correctly set to nearest graveyard
      (this prevent well known assert in GetInstance because of porting to already destroyed instance)
    * Teleporting from BG correctly restore mount state
    * Teleporting from BG correctly restore taxi flight
      (in multipath flight you will end up in nearest transition point on the route)

    Signed-off-by: ApoC <apoc@nymfe.net>

--HG--
branch : trunk
2009-08-12 20:27:00 -05:00
megamage
0fcadd9d25 *Replace "LoginDatabase" with "loginDatabase"
--HG--
branch : trunk
2009-07-31 11:29:28 +08:00
Kudlaty
3c04635694 Fix build on windows.
Fix command ticket viewname - thx Deadlyskunk for point this
fix setlink command group, add missing commands to db - patch by XTElite1

--HG--
branch : trunk
2009-07-26 02:00:35 +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
Anubisss
bf697be6f3 *Change uint32 counter to bool found in lookup commands.
--HG--
branch : trunk
2009-07-05 01:19:49 +02:00
QAston
fd86e6a369 *Fix possible exploits with flying paths.
--HG--
branch : trunk
2009-07-01 16:18:37 +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
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
Machiavelli
b0e42c0256 * Fix .ticket delete and .ticket viewid
--HG--
branch : trunk
2009-06-24 21:47:41 +02:00
QAston
0c36f2ab24 [8071] Restore work .modify tp command. Allow apply it to selected
character's pet. Author: VladimirMangos.

--HG--
branch : trunk
2009-06-23 15:05:40 +02:00
Machiavelli
26b7e344db * Correctly update ticket status in database when closing via GM command.
--HG--
branch : trunk
2009-06-21 21:46:15 +02:00
megamage
e0553121f2 *Merge
--HG--
branch : trunk
2009-06-18 20:26:49 -05: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
Anubisss
8e3313ceb2 *Make an emote when commands .npc say or .npc yell used by bufferoverflow.
--HG--
branch : trunk
2009-06-17 23:28:47 +02:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -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
a8dbf8904c *Correctly show spellclick flag for vehicles and creatures with info in spellclick table.
--HG--
branch : trunk
2009-06-08 23:43:25 -05:00
megamage
e3390806a9 [7948] Use SetFaction instead explcit field set, other cleanups. Author: NoFantasy
--HG--
branch : trunk
2009-06-03 19:29:55 -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
5ed5513ca8 Mangos [7911]. Author: tomrus88
Very big patch. May cause bugs.

--HG--
branch : trunk
2009-05-31 15:56:51 -05:00
megamage
8b26c1c728 [7893] Fixed work chat guild commands that expect guild name in args. Now guild name always must be in "". Author: VladimirMangos
--HG--
branch : trunk
2009-05-26 16:19:11 -05:00
megamage
4840603510 *Allow to use gm command to modify mob health.
--HG--
branch : trunk
2009-05-26 15:29:31 -05:00
megamage
ca4c3eb847 [7851] Fixed typo to allow work '.tele name' command.
[7850] Fixed '.pinfo name' work, move reputation code from it to new command '.character reputation [$name]'.
Provide and use universal way for get locale and locale index for chat/console command use.
Author: VladimirMangos

--HG--
branch : trunk
2009-05-19 15:34:07 -05:00
megamage
3569f949d7 [7839] Rafactoring player targeting code in chat command and related cleanups/improvments.
* New extractOptFirstArg function for easy get 2 args in case option playe name as first arg.
    * New extractPlayerTarget function for get player pointer/guid/name for online/offline player base at provided name
      or if not provided by current seelction with error cases processing.
    * Property apply mute/unmute in case use different character name from loggined currently for account.
    * .reset commands can be used from console now
    * .repairitems comamnd can be used from console now but only to online player.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-17 10:57:55 -05:00
megamage
23a5a80336 [7803] Prevent ignore max money limit at use .modify money command. Author: VladimirMangos
--HG--
branch : trunk
2009-05-08 19:23:24 -05:00
megamage
e85e4c386b [7796] Implement .lookup taxinode and .go taxinode commands. Author: VladimirMangos
--HG--
branch : trunk
2009-05-08 18:47:27 -05:00
megamage
fc7e1db9fb [7690] Move GetCreature/GetGameobject to class Map. Author: VladimirMangos
* This let get objects at map without reference to player or another object.
    * Simplify future implementation for per-map storage for like objects

--HG--
branch : trunk
2009-04-20 20:28:19 -05:00
megamage
905833f84e *Merge.
--HG--
branch : trunk
2009-04-15 17:06:38 -05:00
Machiavelli
2b52663e42 Ticket system changes by Disassembler: (TC1 rev 1358)
- Change uint16 closed guid to uint64
- Add createtime field

--HG--
branch : trunk
2009-04-14 12:38:12 +02:00
Machiavelli
37f8ee0680 * Fix build 1358, my apologies
--HG--
branch : trunk
2009-04-14 03:55:28 +02:00
Machiavelli
e2a4b4d178 Ticket system changes by Disassembler:
- Change uint16 closed guid to uint64
- Add createtime field

--HG--
branch : trunk
2009-04-14 01:27:43 +02:00
Anubisss
8c13fe15d4 *Fix typos in command Namego and Groupgo.
--HG--
branch : trunk
2009-04-06 21:07:15 +02:00
megamage
022e2df612 [7613] Sort and rename functions for GM commands in code. Author: VladimirMangos
--HG--
branch : trunk
2009-04-05 16:31:56 -05:00
megamage
494e09ba92 [7554] Prevent accepting wrong numeric args as 0.0f in .go zone command Author: VladimirMangos
--HG--
branch : trunk
2009-03-28 16:13:33 -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
bf7cfe6964 *Rename and sort some gm commands. By Vladimir.
--HG--
branch : trunk
2009-03-19 15:06:30 -06:00
megamage
ef47783882 [7487] Avoid attempt use InstanceSave data for non-dungeons. Author: VladimirMangos
Also check map existance and correctness at instance data loading.
    Removed unused and totally bugged InstanceMap::GetResetTime.

--HG--
branch : trunk
2009-03-18 20:41:49 -06:00
megamage
6e29ab4fbb [7440] Use server-side only zone info. Optimize related calles in case zone and subzone use. Author: VladimirMangos
This in some cases make some zones not explorable if it not have server side data in current maps
    but not allow cheating with zone set from client.

--HG--
branch : trunk
2009-03-11 16:17:37 -06:00