Commit graph

1077 commits

Author SHA1 Message Date
VladimirMangos
bc4611e8c0 [7877] Correctly set totem PvP state at loading and owner PvP state change, including GM totem case.
* Also set PvP state in proper way at pet loading if owner in PvP state.
2009-05-23 00:37:49 +04:00
ApoC
e0e5ed7bd8 [7876] Implemented dummy effect and special target selection for 52759.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-22 20:34:58 +02:00
ApoC
dad833fd3e [7875] Calculate mechanic immune mask for aura remove only if really needed.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-22 19:09:42 +02:00
ApoC
5c80c62f9b [7874] Fix: possible runtime crash.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-22 18:20:56 +02:00
VladimirMangos
3beec18f4e [7873] Use same name for realmd DB connection in realmd code as used in mangosd/game. 2009-05-22 16:27:46 +04:00
Astellar
0bd7177b11 [7872] Restore work one shaman totem
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-22 14:47:51 +04:00
NoFantasy
8b5fa13011 [7871] Drop unused second arg in InstanceData::OnCreatureCreate.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-22 06:33:08 +04:00
VladimirMangos
3b11d833c8 [7870] Implement creature ranged ammo show at ranged weapon use.
* Use BDC data (creature weapon not alwas listed in item_template)
2009-05-22 06:09:03 +04:00
VladimirMangos
b708cc87a3 [7869] Add note about VS 2003 drop to NEWS 2009-05-21 21:50:42 +04:00
freghar
fd074a71fb [7868] Added guard sql queries and 7867_01_realmd_account.sql to Makefile
"the stuff I forgot in previous commit", sorry

Signed-off-by: freghar <compmancz@gmail.com>
2009-05-21 19:13:08 +02:00
freghar
34ee1cffa2 [7867] Change default IP in account and banned_ip tables
As IP of 0.0.0.0 is, unlike 127.0.0.1, more clearly recognized as invalid.

Signed-off-by: freghar <compmancz@gmail.com>
2009-05-21 18:47:29 +02:00
tomrus88
61d1829431 [7866] Added VS 2010 Beta 1 project files. Requires libeay32.dll update. This is experimental changes. Use it on own risk. (cherry picked from commit 732a8e66ab877563be3163b1307144d2003a7d2a)
Signed-off-by: tomrus88 <tomrus88@gmail.com>
2009-05-21 20:10:04 +04:00
NoFantasy
50898eedde [7864] Use x.0f float constant format.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-21 17:34:18 +04:00
Alex
bde5402b40 [7863] Implement for EVENT_T_SPAWNED map/zone/subzone only event conditions.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-21 05:26:38 +04:00
VladimirMangos
0f928164e0 [7862] Fixed infinity loop at search spell related summoned gameobject in owner list. 2009-05-21 03:42:26 +04:00
Astellar
75438d2736 [7861] Update visibility check to make possible have invisible for owner pets/totems (need for some spells)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-21 02:39:28 +04:00
VladimirMangos
f332c000d1 [7860] Implement creature event ai ACTION_T_CALL_FOR_HELP for explicit call for help in some script cases. 2009-05-20 22:15:41 +04:00
raczman
159258b668 [7859] Memory leak in BG code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Thanks to ANTOMA for prepering patch to mangos.
2009-05-20 16:34:28 +04:00
raczman
a6d4d733b5 [7858] Properly deallocate memory in tile assembler, and dereference memory when fread fails.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Thanks to ANTOMA for prepering patch to mangos.
I also change code to more nice view using temporary defines.
2009-05-20 15:42:41 +04:00
X-Savior
1dbadb6ff0 [7857] Update doc/EventAI.txt
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-20 13:36:29 +04:00
Astellar
ea1ca701ed [7856] Fix cast 51525 and ranks charge on target (not owner)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-20 06:58:50 +04:00
Seizerkiller
c014560b45 [7855] Add description command to pool_* tables for simplify DB development.
Note: this fields not used and not loaded by mangos.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-19 23:40:06 +04:00
NoFantasy
83beb6ec1d [7854] Fixed typo in random text selection code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-19 23:24:35 +04:00
Astellar
4e748b3786 [7853] Start casting including take reagents/power and set cooldown aftre fill targets and re-check spell cast continue.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-19 23:09:44 +04:00
VladimirMangos
72b4ff2fac [7852] Use union of per-event type structures, more checks at creature event ai loading.
Including:
* Fixed check for EVENT_T_SPELLHIT school field. Add check at loading. Note: this event expect before and now schol _mask_ in param2.
* In EVENT_T_RECEIVE_EMOTE use original player condition check code instead copy of related code.
2009-05-19 22:20:36 +04:00
VladimirMangos
e712baa58c [7851] Fixed typo to allow work '.tele name' command. 2009-05-19 01:36:29 +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
DiSlord
695d83568a [7849] Fix remove Swiftmend aurastate in some cases
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-18 23:44:26 +04:00
SeT
c672d4d99e [7848] Fix set variable to zero on apply -100% mod
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-18 23:41:12 +04:00
VladimirMangos
07d00c3927 [7847] Replace paramter unions by uniton of event ai action type structures. Add/fix some loading checks.
* Also send to process function reference to strucutre instead large amount fields.
* Specially note that fixed check for first arg of action type 27 that before wrongly test as quest id,
when by using code expected creature id. Possible some used data wrongly can be quest ids....
2009-05-18 22:45:20 +04:00
timmit
2d4edd18f6 [7846] Add empty line to end of .h file
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-18 13:27:31 +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
75d7a4c0cb [7844] Fixed mangos string storage index type. 2009-05-18 12:28:23 +04:00
ApoC
592adcf6d4 [7843] Added newline into Pet.h end to make gcc happy.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-05-17 23:54:00 +02:00
DonTomika
ab3eb09669 [7842] Set and stop combat for pets at player enter to GM-mode.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-17 22:48:06 +04:00
SilverIce
b7f09eb37c [7841] Fixed: Prevent loading maps/vmaps when building enum.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-17 19:58:43 +04:00
Naicisum
53699e1aa3 [7840] Fixed unexpected rounding in pet size scale calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-17 19:04:27 +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
VladimirMangos
122c9c5785 [7838] More fixes in pet's levelup spells.
* Fixed not updating levelup spells at warlock pet summon firsy time (overwriting by default original ranks in fact)
* Correctly upgrade/doungrade spell ranks in action bar.
* Fixed spell learning spam at warlock pet re-summon in some cases.

TODO: currently (before this commit and in it) PetSpellInitialize() called too oftern. Maybe possible cache update flag and do it one time somewhere in Pet::Update....
2009-05-16 17:15:45 +04:00
xILOSWag
8cf9dc035b [7837] Implement missed item enchant type (stat mana, stat health)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-05-16 12:35:43 +04:00
VladimirMangos
45b209df50 [7836] Fixes for distance range checks.
* ignore 0.0f min range limit (this correct case when 2 object overlapped)
* typo in CreatureEventAI::CanCast

Also use int32 for temporary store GetSessionDbLocaleIndex result.
2009-05-16 10:25:11 +04:00
VladimirMangos
7a7ee86f97 [7835] Store structures (with size = uint32) insteed pointer to structure in PetSpellMap. 2009-05-15 17:22:44 +04:00
VladimirMangos
6aacc45ace [7834] Mangos string loading code cleanups.
* Better integration creature event ai strings.
* Not inclide in checks as expected max mangos strings range value to range
2009-05-15 17:01:11 +04:00
VladimirMangos
a1f4549862 [7833] Implement levelup spells for non-hunter pets.
* Use less hacky way to prepare data in SpellMgr::LoadPetLevelupSpellMap.
* Fill data for all pet families including not hunter pets.
* Fixed bug with lost/unexpected learned spells for some hunter pet families.

Use less hackky way for
2009-05-15 06:26:19 +04:00
VladimirMangos
b722e75d90 [7832] Better check at petcreateinfo_spell loading for errors and redundend data. 2009-05-15 06:19:11 +04:00
VladimirMangos
e134b5383b [7831] Prevent have hunter pet with level greater player levels at level changes. Propertly set hunter pet xp values at level update. 2009-05-15 05:33:46 +04:00
byeolpyo
ac67ac8c28 [7830] Spell chain data for 54424 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-14 23:41:21 +04:00
VladimirMangos
8858aacfb0 [7829] Rename 3d (x,y,.. versions of IsWithinDist/IsWithinDist functions with adding 3d explict posfix to name for avoid wrong use. 2009-05-14 21:42:32 +04:00
VladimirMangos
42d74d811f [7828] Add 2d/3d versions for WorldObject::IsInRange(x,y,... and WorldObject::IsWithinDist(x,y,... 2009-05-14 20:55:06 +04:00
VladimirMangos
592db69c0c [7827] dd support 2d version for WorldObject::GetDistanceOrder. 2009-05-14 20:10:11 +04:00