Commit graph

118 commits

Author SHA1 Message Date
VladimirMangos
c7ac8577ae Exclude some generated files in contrib subdirs. 2008-10-31 19:27:44 +03:00
arrai
b724ae2fe4 Fixed windows ad.exe build 2008-10-30 23:12:02 +01:00
VladimirMangos
0bf682fdbd Fixied crash at .pinfo command use from console.
Also apply mangos code style to related code.
2008-10-30 21:04:51 +03:00
VladimirMangos
a26b72411a Use characters.guid instead low guid value from characters.data in charcter enum data prepering for client. 2008-10-30 21:00:19 +03:00
VladimirMangos
8d02b5c7f2 Fixed sql update naming for 2008_10_27_01_npc_option.sql and 2008_10_27_02_locales_npc_option.sql. 2008-10-30 19:47:04 +03:00
VladimirMangos
5b2bb73b18 Merge branch 'master' of git@github.com:VladimirMangos/mangos 2008-10-30 07:01:34 +03:00
VladimirMangos
0127feb5a8 Fixed RuntimeLibrary setting in VC80/framework.vcproj 2008-10-30 06:56:30 +03:00
VladimirMangos
5efb2f35c9 Merge commit 'VladimirMangos/master' 2008-10-30 06:54:16 +03:00
VladimirMangos
83f034ae5d Some command handlers renames and declaration sorting. 2008-10-30 05:14:14 +03:00
ApoC
42cf4db28b Implemented alternative GameTele location selection based on substring in case no exact match.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-29 23:06:00 +01:00
dythzer
569032d907 [2008_10_29_04_mangos_mangos_string.sql 2008_10_29_05_mangos_command.sql] Added new command: .npc follow - Makes the selected NPC follow you around like a pet
Signed-off-by: dythzer <micke223@gmail.com>

* Also implement .npc unfollow for cancel following.
* Help and mangos strings.
* Unrelated small fixes in mangos.sql.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-29 22:50:19 +03:00
Wyk3d
affb0722d6 * [2008_10_29_03_mangos_db_version.sql] Added a column to db_version that will be used to check if the required db updates have been installed 2008-10-29 19:22:46 +02:00
VladimirMangos
403374c6c7 Use \t instead explict tabs in genrevision string constant. 2008-10-29 19:01:01 +03:00
Wyk3d
6675f8d2a5 Changed the VC71 projects to use dynamic linking for the CRT 2008-10-29 17:33:56 +02:00
VladimirMangos
d8e29e7421 Fixed typo in mangos string in prev commit. 2008-10-29 17:14:27 +03:00
dythzer
67779b76b7 [2008_10_29_01_mangos_string.sql 2008_10_29_02_mangos_command.sql] Added new command: .waterwalk on/off - disable or enable waterwalk mode
for selected player

Signed-off-by: dythzer <micke223@gmail.com>

Add help text and mangos strings.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-29 17:02:23 +03:00
Wyk3d
da04859e7c Added msvcrt / msvcrtd dependencies to VC80 mangosd.vcproj 2008-10-29 15:41:34 +02:00
ApoC
9534aece0b Added checking global cooldown for pet autocast spells.
Added checking global cooldown for pet spell casting triggered by master.
Optimized PetAI::UpdateAI:
 - Removed obsolete victim_guid as combat check.
 - Stop pet combat when pet die in JustDied(Unit*) method.
 - Optimized autospells selection and casting.

Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-28 21:31:41 +01:00
ApoC
aae37a6dce Added missed part from my prev. commit.
Compile fix.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-28 21:10:08 +01:00
ApoC
61b2b3d234 Prevent adding more than 5 people into RAID subgroup.
Optimized free subgroup in raid finding.
Optimized method calls, now using const uint64& instead of value passing.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-28 20:15:24 +01:00
VladimirMangos
8322ccb136 Use same RuntimeLibrary settings for any selected VC80 build 2008-10-28 19:08:28 +03:00
VladimirMangos
454ff6e667 Add *.user to all Visual Stidio versions .gitignore 2008-10-28 17:41:15 +03:00
Seline
4db0c00181 Use .respawn only for selected creature (if any)
If no creature is selected, old behavior is used (respawn everything).

Thanks Seline for the diff.

Signed-off-by: freghar <compmancz@gmail.com>
(cherry picked from commit 6bbdffac9acb9c02a74be632b35a90f0bda3ccb0)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Some changes in creature targeting and work in case alive target. Help data updated.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-28 16:34:35 +03:00
dythzer
e98a123027 Added new command: .repairitems - repairs all items of selected player
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-28 15:34:32 +03:00
VladimirMangos
6169f57ab9 Simplify check requirement report command results to target and output command user name.
* Provided ChatHandler::GetName for player name/"console command" output dependent from chat/console command call.
* New function for check when command work result send to command target.
* Remove unrequired complexy in mangos string usage in some commands.
2008-10-28 14:55:17 +03:00
VladimirMangos
58bc947ef9 Fixed subcommands list output at console. 2008-10-28 10:14:05 +03:00
GriffonHeart
94e29ce6a8 [2008_10_27_01_npc_option.sql,2008_10_27_02_locales_npc_option.sql] Implement npc_option localization support, also store in DB BoxText/BoxMoney/Coded.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-27 22:20:25 +03:00
VladimirMangos
74ddd38af3 Prevent crash at access to deleted social data for player.
Remove social data at logout instead ~Player that called also for temporary Player object for Player::MinimalLoadFromDB call.
2008-10-27 18:47:13 +03:00
VladimirMangos
9e6390d88d Load npc_options at server startup, use cached data at creature gossip menu init.
Also new .reload table command added. Note: currently it will not affect creatures that have gossim memu created at command use moment.
2008-10-27 16:43:31 +03:00
@
e96fedc97c Implement new player conditions CONDITION_NO_AURA, CONDITION_ACTIVE_EVENT.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Currently can be used in loot conditions, later possible in gossip options show.
2008-10-26 23:43:50 +03:00
ApoC
4482593653 Fixed posible crash in my prev. commit
thx. to Hanuza who point it out.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-26 21:07:02 +01:00
@
687a9bc8ce Fixed genrevision tool build at FreeBSD and maybe some other plafroms.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-26 21:12:34 +03:00
ApoC
6f6a1a7608 Default behaviour of pets for creatures changed to REACT_DEFENSIVE
Fixed typo: changed m_ReactSate to m_reactState
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-26 18:24:45 +01:00
VladimirMangos
f8a94b84c3 Use 0.12.0-DEV instead 0.12.0-SVN for mark MaNGOS version in development. 2008-10-26 18:18:20 +03:00
VladimirMangos
8a16fc4117 Better revison data extraction for revison in case remote repo with branches 2008-10-26 18:03:43 +03:00
VladimirMangos
6f190fedd4 Output DB/ScriptLib versions in ".server info" command.
Required support by used scripting library.
2008-10-26 16:29:39 +03:00
VladimirMangos
24549669a9 Add lost .c_str() call at send std::string content to ".pdump write" command output. 2008-10-26 16:29:38 +03:00
ApoC
4658b2b38e Fixed ticket reading when using PGSQL
Optimized ticket deleting by its position
Signed-off-by: ApoC <apoc@nymfe.net>
2008-10-26 12:26:22 +01:00
VladimirMangos
03621bf5f3 Restore build at Windows for x64 mode (debug/release). 2008-10-26 00:24:03 +04:00
VladimirMangos
85319c4a15 Revert wrong 06ed6af86c36869f2781bf328802214f23e3f369 and restore RA login work. Sorry :/ 2008-10-25 16:27:30 +04:00
VladimirMangos
643f6af8c7 Rename gensvnrevision and related files and references to genrevision/etc.
Also svn_revision.h renmaed to revision.h and defines in to it also renamed. MaNGOS code updated.
Other projects using this genrevison tool need to be updated in similar way.
2008-10-25 15:35:25 +04:00
arrai
3dc4e40e34 Fixed extracting common.MPQ under *nix
Signed-off-by: arrai <array.of.intellect@gmail.com>
2008-10-25 13:03:38 +02:00
VladimirMangos
0874856e34 Implement git support in gensvnrevision tool and related changes in code.
gvnrevision still support svn version generation and have addition options now (see sources).
gensvnrevision/svn_revision.h and other svn reference will fixed later.
Now version strings include commit date/time that can be used in git case for fast find git commit without using git hash most time.
In chat ".server info" output git hash can be copied by shift-click in chat and then copied to cliboard if need.
2008-10-25 14:34:47 +04:00
foxbox
a0ab11bb17 Fixed: restore RA login work.
Provided correect number login query args.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-25 11:37:35 +04:00
VladimirMangos
f187226451 Correctly limit use some flask types to zones.
Typo in IsSpellAllowedInLocation.
2008-10-25 08:11:41 +04:00
VladimirMangos
51b2290be6 Some endianess related fixes and cleanups
* Fixed: build fail at bigendian platform in result typo in code
* Hide endianess related convertions into EndianConvert/EndianConvertReverse calls
* Linkning errors protection from attemps convertion pointers.
2008-10-24 04:06:27 +04:00
VladimirMangos
89893215e5 Finish review/fix commands appropriate for console. Allow call 'help' command without args. 2008-10-23 20:44:30 +04:00
VladimirMangos
e31709611d Add to 'list item' command show items in guild bank. 2008-10-23 19:06:18 +04:00
VladimirMangos
697fafd2f5 Fixed: crash after prev commit. 2008-10-23 17:41:52 +04:00
Reiner030
0d4f770811 Implement low character expirience level in group with high character.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-10-23 07:29:53 +04:00