Commit graph

178 commits

Author SHA1 Message Date
balrok
0ce6395857 gm command for reload of eventindex
also i merged both loading functions together
(union-select gameobject and creature)
those loading functions were pretty similar
2009-09-28 16:42:08 +02:00
tomrus88
3f33946d6a Update to latest client build 10505.
Fixed CMSG_AUCTION_SELL_ITEM.
Fixed CMSG_BUY_PETITION.
Some other fixes.
2009-09-26 19:40:14 +04:00
balrok
bd30769dec [8475] fixed some gcc-warnings
all warnings from Wunused
and some from Wall

cause unused may be most interesting for some:
they were in following files:
src/game/Level2.cpp
src/game/Map.cpp
src/game/SpellAuras.cpp
src/game/Unit.cpp
src/mangosd/Master.cpp
but i guess mostly someone just fogot to remove this code

for some unsigned vs signed warnings i used:
ack "for.*int .*size\(\)" | ack -v uint

also note for coding:
if you do something like
    if( a && b || c)
just place parentheses around (a && b) && always will have
precedence over || but without parentheses this could be overseen
quite fast (at least that's my guess why gcc will warn for this)

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-09-05 13:47:47 +02:00
AlexDereka
a65d3a1560 [8467] Fixed some typos. 2009-09-04 18:52:17 +04:00
VladimirMangos
5d50bb16b8 [8426] Use upper/lower iterator pairs as result instead 2 function calls. 2009-08-27 10:56:20 +04:00
arrai
43a4d1505e [8424] Added support for strict chatmessage validation 2009-08-27 01:08:21 +02:00
VladimirMangos
b91da7846e [8413] Fixed lost 0 in comment and swap enum elemys for better fit to 0.12 cases. 2009-08-24 05:09:21 +04:00
VladimirMangos
261ad1c5df [8412] Update some new and old client supported shift-links to proper format.
* List all client and server side supported shift-link types updated in Chat.cpp
* Now Henchant anf Hglyph links can be used in commands as spell links.
* Hitem and Hquest links changed to client supported form.
2009-08-24 02:44:19 +04:00
Gendalph
ae61c1eec0 [8277] Add new line at the end of some .cpp to make gcc happy
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-29 18:34:37 +04:00
nos4r2zod
13b709a10b [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.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-26 04:58:46 +04:00
XTZGZoReX
a538fa621c [8191] Drop code related to use long time empty spell_affect table.
After switch to 3.x.x all data get explcitly from ClassMask fields in spell.dbc
and no need in custom values.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-17 04:29:33 +04:00
VladimirMangos
f99f477fe8 [8169] Implement new optional table spell_check and console command .debug spellcheck
* Table expected to be store data mirror same data in code:
  - explicit spell ids with related expected spell properties like effects, spell family or auras
  - implicit requirements for select some spell sets like spell family masks, icons or visual values
* For check can be used .debug spellcheck _console_ only command.
* Main purpose table and related command check code parts for outdated data at client switch.
  It also can be used for check data in patch writing time to be sure code correctness.
2009-07-12 22:15:56 +04:00
VladimirMangos
7f3f21ee1a [8167] Use more consistence debug command handler names and move its code to debugcmds.cpp 2009-07-12 16:00:28 +04:00
VladimirMangos
97721109ff [8083] New debug command: .debug setaurastate for test target/caster aura states.
Also fix wrong (!args) checks in debug commands.
2009-06-28 00:06:57 +04:00
VladimirMangos
05b1bda879 Merge commit 'origin/master' into 310 2009-06-09 09:51:34 +04:00
NoFantasy
6a1b4e5729 [7980] Implement item use target requirements store and check (new table item_required_target).
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.
2009-06-09 00:26:36 +04:00
tomrus88
2f15546120 Merge commit 'origin/master' into 310 2009-05-25 21:57:59 +04:00
VladimirMangos
f271fd6819 [7893] Fixed work chat guild commands that expect guild name in args. Now guild name always must be in "". 2009-05-25 06:31:17 +04:00
tomrus88
ebb03b7b9f Merge commit 'origin/master' into 310
Hope it works with live 3.1.2.9901 client
2009-05-20 10:53:55 +04:00
VladimirMangos
0838475415 [7850] Fixed '.pinfo name' work, move reputation code from it to new command '.character reputation [$name]'. 2009-05-19 01:03:39 +04:00
VladimirMangos
fdbc22ac93 Provide and use universal way for get locale and locale index for chat/console command use. 2009-05-19 01:02:10 +04:00
evilstar
4617ac1dc1 [7845] Implement reload support for creature eventAI tables.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-18 12:28:45 +04:00
VladimirMangos
1f2670facf [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.
2009-05-17 14:29:55 +04:00
tomrus88
c9f5062955 Merge commit 'origin/master' into 310 2009-05-08 15:31:27 +04:00
VladimirMangos
a587590ab5 [7796] Implement .lookup taxinode and .go taxinode commands. 2009-05-07 19:37:14 +04:00
tomrus88
6821c24268 Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-05-06 09:40:35 +04:00
arrai
fefe56e3c5 [7776] Completed implementation of CMSG_SPELLCLICK
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
2009-05-05 18:58:58 +02:00
tomrus88
d4323e0071 Merge commit 'origin/master' into 310
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Player.cpp
2009-04-29 11:51:15 +04:00
VladimirMangos
512c015dc2 [7731] Some code cleanups, warrning fixes. 2009-04-29 04:03:59 +04:00
zhenya
8144f30199 [7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-04-29 01:05:21 +04:00
tomrus88
950a4bf13f Merge commit 'origin/master' into 310
Conflicts:
	src/game/Player.cpp
2009-04-28 19:08:53 +04:00
VladimirMangos
1ec21cfb71 [7714] Implement new command .character level for set level provided level. 2009-04-26 01:24:09 +04:00
tomrus88
55d6fbe3cb Merge commit 'origin/master' into 310 2009-04-25 17:24:05 +04:00
VladimirMangos
226bdca199 [7708] Continue chat command function declarations sorting. 2009-04-24 04:46:05 +04:00
VladimirMangos
b2da7732f9 [7706] Rename command .plimit -> .server plimit 2009-04-24 03:58:19 +04:00
VladimirMangos
7fde7b8ca6 [7705] Rename some account/character related commands.
* .lockaccount -> .account lock
* .password    -> .account password
* .chardelete  -> .character delete
* .customize   -> .character customize
* .rename      -> .character rename
2009-04-24 02:46:11 +04:00
VladimirMangos
1b09aab42b [7693] Allow use .revive command in console, support revive offline players. 2009-04-21 20:24:37 +04:00
tomrus88
a9e148edac Merge commit 'origin/master' into 310
Conflicts:
	src/game/AchievementMgr.cpp
	src/game/BattleGroundHandler.cpp
	src/game/CreatureEventAIMgr.cpp
	src/game/DBCStructure.h
	src/game/Player.cpp
	src/game/Spell.cpp
	src/shared/revision_nr.h
2009-04-21 15:20:45 +04:00
VladimirMangos
fc0e1ecdf1 [7690] Move GetCreature/GetGameobject to class Map.
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
2009-04-20 19:08:13 +04:00
tomrus88
412a8029ea Removed some outdated comments 2009-04-08 14:54:45 +04:00
tomrus88
14e9afa46f Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
2009-04-07 13:22:10 +04:00
tomrus88
75f4cc6375 Removed some outdated comments 2009-04-07 13:14:11 +04:00
VladimirMangos
5c7b3e1f50 [7628] Implement .reload for static achievement tables. 2009-04-07 03:11:11 +04:00
VladimirMangos
dfa2869136 [7616] Implement .debug play cinematic and .debig play movie. Rename .debug playsound to .debug play sound. 2009-04-05 04:36:26 +04:00
VladimirMangos
678be86d67 [7615] Continue sorting chat command function declarations. Move send commands in new .send * subcommand list. 2009-04-05 01:38:02 +04:00
tomrus88
2a8776e567 Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
2009-04-04 23:25:57 +04:00
tomrus88
a9dbe0f661 Removed some outdated comments 2009-04-04 23:24:24 +04:00
VladimirMangos
db2027feb0 [7614] Sort/rename debug commands, Move packet send commands to new ".debug send " subcommands list.
Also drop not implemented .debug inarc
Add to .debug send spellfail support for up to 2 additional args for spell fail packet.
2009-04-04 06:27:49 +04:00
VladimirMangos
8fe9008132 [7613] Sort and rename functions for GM commands in code. 2009-04-04 05:06:23 +04:00
tomrus88
abae3cac91 Merge branch 'master' into 310
Conflicts:
	src/game/Unit.cpp
	src/shared/Database/SQLStorage.cpp
2009-03-30 15:01:04 +04:00