Commit graph

182 commits

Author SHA1 Message Date
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
tomrus88
8871f281bf Removed some outdated comments 2009-03-30 14:52:46 +04:00
VladimirMangos
2dd36d688f [7558] Implement command: .learn all_mypettalents
Also output more correct messages at use .reset talents to pet
2009-03-28 03:28:08 +03:00
tomrus88
963aed5e0b Merge branch 'master' into 310
Conflicts:
	src/game/Player.cpp
	src/game/Player.h
	src/game/Unit.cpp
2009-03-26 14:28:37 +03:00
tomrus88
9bc487953e Removed some outdated comments 2009-03-26 14:14:47 +03:00
VladimirMangos
ab2bdc3e69 [7518] Implement new script command SCRIPT_COMMAND_PLAY_SOUND (look in World.h for args)
* 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.
2009-03-23 00:27:01 +03:00
tomrus88
9debf4dfc0 Merge branch 'master' into 310
Conflicts:
	src/game/MiscHandler.cpp
	src/game/Player.cpp
	src/game/Player.h
	src/shared/Database/DBCStores.cpp
2009-03-22 09:41:17 +03:00
VladimirMangos
695ceabe3e [7509] Use defines instead explcit value for talent rank cound (in general and for pets) 2009-03-21 20:14:30 +03:00
tomrus88
976cd6da9c Added new files to VC71, VC80 projects 2009-03-21 19:36:23 +03:00
tomrus88
28dc20c6e2 Small code cleanup and partial merge with dev branch 2009-03-21 19:07:38 +03:00
tomrus88
e5bde711ea Merge branch 'master' into 310
Conflicts:
	src/game/Chat.cpp
	src/game/Chat.h
	src/game/GameObject.cpp
	src/game/Level2.cpp
2009-03-21 15:48:51 +03:00
VladimirMangos
fc94d6991c [7503] Implement proper (not 2 level limited) help.security set for chat commands and subcommands. Update some commands data.
* Now `command` table loading set data for any use subcommand levels
* Errors output for not existed in code commands at related data loading from table.
* Detail log level report outout about overwrited security level for loaded chat command data.

Using this functionality found and fixed/update data for `command` in mangos.sql

NOTE: some command security levels changed.

Thank you to benemorius for pointing to this security problem.
2009-03-21 00:09:51 +03:00
VladimirMangos
a63977d767 [7493] Move .gobject functions in one place, update/fix security levels in code and mangos.sql. 2009-03-19 12:53:10 +03:00
VladimirMangos
bfa67880f2 [7492] Rename subcommands functions to names more similar related chat commands 2009-03-19 11:59:02 +03:00
VladimirMangos
dc92e36c00 [7491] Sort chat command subtables by names. 2009-03-19 11:22:15 +03:00
tomrus88
2a0fbbb0dd Fixed some bg and quest things 2009-03-18 12:51:31 +03:00
tomrus88
31b3ee95ad Merge branch 'master' into 310
Conflicts:
	src/game/Level2.cpp
	src/game/PetHandler.cpp
	src/game/Player.cpp
	src/game/Player.h
	src/game/SkillHandler.cpp
2009-03-11 12:22:58 +03:00
multiplexer
d440ff3184 Restructured/Reordered Npc Commands
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-09 03:10:19 +03:00
balrok
54f2dbefa0 [7403] much more unneeded includes removed
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
VladimirMangos
ce8bd43bef Merge commit 'origin/master' into 310 (at [7360]) 2009-03-01 01:18:20 +03:00
VladimirMangos
07bce28d5c Call proper function for .reload spell_area 2009-02-28 01:56:47 +03:00
tomrus88
ffca6c8c57 Fixed some opcodes 2009-02-27 19:25:11 +03:00
VladimirMangos
1fca6de6f3 [7349] Implement spell cast depenences from area/quest.aura state store in new table spell_area.
* 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.
2009-02-27 11:15:36 +03:00
GriffonHeart
9b2a772413 [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.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-18 00:29:05 +03:00
GriffonHeart
74fdc7bee7 [7290] Command .npc setdeathstate on/off.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-17 13:33:41 +03:00
GriffonHeart
1fb8a52032 Propertly send SMSG_SET_PHASE_SHIFT to inform client about phase shift at phase change.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-02-15 12:00:47 +03:00
balrok
78a6d084bc add .debug bg to allow starting a battleground with just one player
it's implemented like .debug arena - so you toggle debug bg
on or off
2009-02-08 11:27:31 +03:00
VladimirMangos
74ec17a273 [7235] New command: .reset achievements 2009-02-07 00:00:23 +03:00
VladimirMangos
42e12136a8 [7221] Add output player names as sift-links in more chat commands. 2009-02-02 23:14:05 +03:00
VladimirMangos
4039fa8a4a [7219] Improvements ins shift-links work.
* Implement support 'Hplayer' link type. Mostly as player name highlights in command messages.
* Support shift-links parsing withoyt '|c' color prefix
* Many related code cleanups.
2009-02-02 03:10:47 +03:00
VladimirMangos
4602ff9c21 [7214] Phase system continue development - Commands and fixes.
* Fixed creature/gameobject save from game (used in commands code only)
* Implement .modify phase (for player), .npc setphase (for creature/pet), .gobject phase (for gameobjects) commands
  for set phasemask of selected object. In player/pet case temporary until in game phase switch/re-login/GM-mode change.
  In creature/gameobject case change saved in DB.
* Add to .gps output phasemask value print. Allow use .gps command with creature/gameobject shift-link
  (work for objects loaded in game in command time).
2009-02-01 08:13:16 +03:00
VladimirMangos
b5da610388 Phase system development continue.
* Use WorldObject phase mask field instead explicit aura scan. This allow have phase for any world objects.
* Add phase checks to packet broadcasters/object searchers. This let correctly work say/yell/area
  and multi/random target spells/aggro assistance in phased areas or target selection.
* In GM-mode character presense (see and visible) in all phases except normal visibility efects including GM-visibility.

TODO: summoned objects phase set base at owner phase, load phase mask for creatures/gameobjects from DB, in game commands.
2009-01-31 06:06:01 +03:00
DiSlord
4ecfbcc2f5 Use spell_bonus_data table for store custom damage/healing bonus coefficients
Big thanks ApoC for help create table.
Fixed bonuses for stacked periodic
Warning need test all coefficients for correct bonus amount.
TODO:
 use this table for absorb bonus calculation
 use this table for melee spells AP bonuses
 use chain multipler in final damage/heal amount

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-28 02:23:16 +03:00
VladimirMangos
4dc06d6d9e [7168] Spell shift-link and command improvements.
* Support Htrade shift link (it created by client at click by crafting profession spell icon in spellbook)
  in spell comands.
* Support "all" second arg for .learn for learning not provided spell id but it's all ranks.
* Drop support range for .unlearn command but support instead "all" second arg for unlearn not specific spell id but it's all ranks.
* In .list auras output print spell names as shift links for better readable view.
* Add to beggining Chat.cpp lists all supported by commands shift-links (client generated and server-side)
2009-01-25 07:53:18 +03:00
VladimirMangos
0798b151cc Small vehicle related code cleanup. 2009-01-24 01:45:57 +03:00
VladimirMangos
2b91a790bc [7133] Re-implement explicit spell discovery code.
* Replace reqClass by reqSkillVlaue field in `skill_discovery_template`
  and check expected skill points amount for specific reipe discovery.
* Add new `spell_loot_template` loot table for store item selection data for spells.
  At this moment for expclicit recipes discovery spells.
* Code cleanups.
2009-01-21 06:39:54 +03:00
Mordred
6165da2b3a [7066] Fix crash in console commands in HasLowerSecurityAccount()
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-01-10 22:08:47 +03:00
VladimirMangos
cc5fc88fb2 [7046] Do more security level checks in commands using HasLowerSecurity. Make use .account set addon safe for players. 2009-01-07 18:23:56 +03:00
arrai
dfa29a883f Replaced dynamic by static allocation in server packets header. Added command to test large packets. 2009-01-04 18:42:06 +01:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
freghar
73ca2b7a54 [6982] Implemented gmlevel-based command security
This is just a simple check if target's gmlevel is lesser
than the caller's one. If it is, an error is returned.
Offline checks for some commands are included.

That in simple words means no further .goname to a gmlevel 3 player
from a gmlevel 2 or 1 account, so gmlevel 3 can work in peace.

Signed-off-by: freghar <compmancz@gmail.com>
2008-12-29 23:54:05 +01:00
begemot
b9e0787c2a [6961] Remove redundent code that prevent show .reload subcomands list in normal way.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-28 05:04:01 +03:00
Arthorius
41cbc67dfc [6960] Implement ".modify runnicpower" command.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-28 03:23:03 +03:00
tomrus88
71b1065c8b Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Chat.h
	src/game/Player.h
	src/game/World.h
	src/game/debugcmds.cpp
2008-12-16 07:30:23 +03:00
ApoC
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
tomrus88
5d4d7292b9 Merge branch 'master' into 303
Conflicts:
	src/game/Player.h
2008-12-12 18:14:49 +03:00
hunuza
0f12997ef1 [6899] Pass const reference instead of value for some strings in some functions.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00