Commit Graph

179 Commits

Author SHA1 Message Date
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
megamage
748466788a [7949] Fixed crash at use .send message with offline player name. Author: VladimirMangos
--HG--
branch : trunk
2009-06-03 19:30:19 -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
90b2951a53 [7874] Fix: possible runtime crash. Author: ApoC
--HG--
branch : trunk
2009-05-22 16:44:35 -05:00
panaut0lordv
079189bcdb Fix typo. Pointed by Aokromes, thx :)
--HG--
branch : trunk
2009-05-21 19:06:09 +02:00
megamage
40c58e5992 *Allow use gm command to set value for gobjects.
--HG--
branch : trunk
2009-05-21 09:59:49 -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
2cdb3865aa [7845] Implement reload support for creature eventAI tables. Author: evilstar
--HG--
branch : trunk
2009-05-18 15:09:34 -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
ff3332f066 [7809] Replace repeating "remove cooldown and send update to client" code by function call. Author: VladimirMangos
--HG--
branch : trunk
2009-05-10 14:51:51 -05:00
megamage
bd33ebf6d3 [7801] Apply damage mods from scripts or target state not in DealDamage but in new function before send data to client. Author: VladimirMangos
* Fixed bug with health decrease (client side visual bug) at spell damage by target with AI::DamageTaken damage set to 0
    * Fixed bug with ignore .die command and instant kill damage in some cases.

--HG--
branch : trunk
2009-05-08 19:20:28 -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
e69d2cbed9 [7776] Completed implementation of CMSG_SPELLCLICK Author: arrai
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
    npc_spellclick_spells, otherwise you won't be able to use them

--HG--
branch : trunk
2009-05-05 16:56:15 -05:00
megamage
c9b1f94122 [7748] Better use LANG_PLAYER_NOT_FOUND message in Modify Gender. Author: AlexDereka
--HG--
branch : trunk
2009-05-03 22:23:39 -05:00
megamage
ad9f94b8cc [7747] Fixed crash in ModifyGender command. Author: Foks
--HG--
branch : trunk
2009-05-03 22:23:00 -05:00
megamage
1cfc04f1f5 [7745] Fixed gcc warnings. Author: AlexDereka
--HG--
branch : trunk
2009-05-03 22:21:46 -05:00
megamage
1d5700ac13 *Update gobject state command.
--HG--
branch : trunk
2009-04-30 12:01:38 -05:00
megamage
6fbe69c2db *Allow gm command to set other types of state.
--HG--
branch : trunk
2009-04-29 17:48:32 -05:00
QAston
7897fc16f0 *Trigger spells after dealing damage by spell.
*Take ammo for autorepeat spells.

--HG--
branch : trunk
2009-04-29 18:05:39 +02:00
megamage
de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage
d4c75dddea [7720] Fixed crash at .character level use from console. Include GM name in message for command target if report need. Author: VladimirMangos
--HG--
branch : trunk
2009-04-27 18:46:44 -05:00
megamage
5ac67c27f7 [7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos
Also use enum for gsmeobject states.

--HG--
branch : trunk
2009-04-27 18:36:10 -05:00
megamage
f9c4047441 [7714] Implement new command .character level for set level provided level. Author: VladimirMangos
--HG--
branch : trunk
2009-04-27 18:15:30 -05:00
QAston
2d1521dea9 *Fix CAST_INTURRUPT_PREVIOUS flag for eventai action cast
*Rewrite .reload all pet_spells command to make it reset actionbars correctly.

--HG--
branch : trunk
2009-04-26 02:48:20 +02:00
megamage
f4e2dccacb [7705] Rename some account/character related commands.
* .lockaccount -> .account lock
    * .password    -> .account password
    * .chardelete  -> .character delete
    * .customize   -> .character customize
    * .rename      -> .character rename
    [7706] Rename command .plimit -> .server plimit

Author: VladimirMangos

--HG--
branch : trunk
2009-04-24 11:45:25 -05:00
QAston
066af701d3 *Fix frenzy and Ferocious Inspiration proc.
*Add command .reset all pet_spells - use it if you still have problems with pet talents after recent revs changes (like pets with all talents for example)

--HG--
branch : trunk
2009-04-23 20:57:17 +02:00
megamage
db3e17cb70 [7700] Implement ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL Author: DonTomika
--HG--
branch : trunk
2009-04-22 18:03:07 -05:00