Commit graph

5231 commits

Author SHA1 Message Date
VladimirMangos
c2096380cf [10752] Convert to objetguids map scripts and finally drop IS_PLAYER_GUID. 2010-11-20 02:38:56 +03:00
VladimirMangos
2601022b9f [10751] Use objectguids in item code.
Also
* Fixed unexpected container updated state after inventory load
* Make .debug getitemstate command more friendly by args.
2010-11-20 01:59:48 +03:00
VladimirMangos
bbd34562a8 [10750] Convert Gameobject owner to objectguid use. 2010-11-19 21:36:01 +03:00
VladimirMangos
6154cb3b43 [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
VladimirMangos
f5cf98e9f4 [10748] Convert MonsterSay/Say and similar functions to ObjectGuid use. 2010-11-19 20:34:23 +03:00
VladimirMangos
12b80fec68 [10747] Some other aura caster object guid use cases. 2010-11-19 18:36:43 +03:00
VladimirMangos
f034a9bd0a [10746] Use objetguid for other .list auras command part 2010-11-19 17:06:33 +03:00
C:/Program Files (x86)/git/dev/rsa
87b8a1d1ce [10745] Use ObjectGuid in spellauraholders instead uint64
(based on rsa's repo commit 06342c1)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 16:01:12 +03:00
Den
62c448b466 [10744] Prevent equip/unequip items in process logout
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:24:18 +03:00
insider42
355f172fc6 [10743] Add AP/RAP bonus data to spell_bonus_data.
Also remove related hardcoded cases.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:03:19 +03:00
QAston
f27741460f [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table.
Thanks to insider42 for prepering patch for mangos repo.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added loading check for redundant ap/ap_dot data in table.
2010-11-19 05:23:29 +03:00
NoFantasy
21d63d491b [10741] Add AI function OwnerKilledUnit for protector pets (when owner kills unit)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-19 01:56:52 +01:00
virusav
82505a8633 [10740] Cleanups in spell effects names.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 02:49:16 +03:00
VladimirMangos
f9bcfa3a89 [10739] Cleanup pet remove code and some fixes.
* Merge Player::RemovePet and Pet::Remove function code to Pet::Unsummon
  This let be sure that in all cases all required steps doen. For example this fix
  creature's guardians propertly remove from guardians list.
* Add new pet save mode PET_SAVE_REAGENTS as replacement PET_SAVE_NOT_IN_SLOT+true-arg stable pair in old function args
  This will avoid use reagent save arg with wrong different save modes.
* Fixed recently added code with absent check for re-summon protector pet call.
2010-11-19 02:17:55 +03:00
TOM_RUS
de66f32882 [10738] In fact set pet name to empety state redundent.
Client work propertly also if used default name from creature template (set in create code).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-18 23:23:22 +03:00
VladimirMangos
1fe4b1f4bb [10737] Use empty name for non-unique named pets.
This let to client select appropriate name by self base at UNIT_CREATED_BY_SPELL data.
2010-11-18 22:58:49 +03:00
zergtmn
5579471075 [10736] Fixed unexpected typo in prev. commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-18 22:26:46 +03:00
VladimirMangos
876458c6e4 [10735] Fixed spell 51420 work by use recently added protector pets as expected.
Thanks to NoFantasy for problem research (and prev. new pet type adding case research aslo) ;)
2010-11-18 22:21:31 +03:00
VladimirMangos
98d19f4d07 [10734] Rename and clarify SummonPropertiesEntry.Type->Title field meaning.
This also show why we have some problems with sorting sumons by types base at this field.

Thanks to TOM_RUS for research.
2010-11-18 22:07:33 +03:00
VladimirMangos
9c0076181b [10733] Implement defencive guardians pet type for creatures like 28120 2010-11-18 21:23:22 +03:00
VladimirMangos
10273fa38a [10732] Not send session fields as args into HandleMoverRelocation/VerifyMovementInfo.
Also mark args as constant where expected in this functions.
2010-11-18 06:12:15 +03:00
NoFantasy
bd48d3cdc9 [10731] Remove redundant isAlive-check, thanks LordJZ for notice
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 19:09:51 +01:00
NoFantasy
cfbfae7f40 [10730] Check if Pet's target is a valid target (isTargetableForAttack)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 18:26:01 +01:00
NoFantasy
8140ff20d9 [10729] Add dummy aura effect of spell 47178 and dummy effect of 47176
Note: see comments in code for spell 47176

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 13:00:50 +01:00
virusav
673b798863 [10728] Fix Deathly Stare spell
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-17 01:34:23 +02:00
Ambal
f67d89f109 [10727] Map system re-engineered. Special thanks to Blueboy for tests.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-16 21:08:28 +02:00
NoFantasy
f5e40a5fda [10726] Correct one SQL in tools, table was renamed.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-16 08:54:18 +01:00
NoFantasy
6e1605caef [10725] Add a few comments for SUMMON_PROP_TYPE_CRITTER
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-15 22:35:33 +01:00
NoFantasy
8a1c5bd800 [10724] Fix TARGET_AREAEFFECT_CUSTOM, need to obey type when DB target entry exist
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-15 18:04:59 +01:00
TOM_RUS
ec974656ac Fixed wrong error message for quest related areatriggers. 2010-11-15 09:03:24 -08:00
NoFantasy
9c4be1d308 [10723] Add dummy aura effect of 51405 and dummy effect of 51420
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-15 17:31:51 +01:00
tomrus88
76dfdd336f Backports from 400 branch. 2010-11-15 18:01:45 +03:00
NoFantasy
bf774f49ce [10722] Fill target map for TARGET_RANDOM_NEARBY_DEST(b) cases.
Corrects ~35 spells, where most has summon effects.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-14 17:35:35 +01:00
NoFantasy
ff56ee3db2 [10721] Use required_quest instead of _heroic for non_instance areatrigger teleport
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-13 09:02:19 +01:00
VladimirMangos
4aa239ac8c [10720] Implement check gossip_menu_option.npc_option_npcflag.
For cases main menu options used by creature but impossible show in result absent
related npcflags for any creatures used that menu.
2010-11-11 18:08:53 +03:00
tomrus88
ff66e20468 [10719] Implement proper calculation quest honor reward.
Now server side rewar same as reported at client side.

Also thanks to KiriX for patch prepering to commit and testing.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-10 23:50:33 +03:00
VladimirMangos
c9dacb9940 [10718] Partly revert "[10687] UInt32 timer class copies instead using time_t timers for mstime cases."
This reverts commit 967877fefd91e00895f9790dc006b532b94d41b7
in part MapManager/World timers.

Main reason: unclear source cases wrong mstime diff generation at WorldRunnable level at *nix systems.
So need have existed in past hacks that skip its.
2010-11-10 17:55:20 +03:00
VladimirMangos
3b0e926788 [10717] Revert "[10716][10688] New version of patch for send real diff from last update."
This reverts commit 8398a55fa274471daae115e00c627b299a3fdbbd.
This reverts commit 06e2d6859ba3d7fd47be72c23a64e68ae039701f.
2010-11-10 06:29:49 +03:00
VladimirMangos
c1427f7d83 [10716] Typo show commit before revet all realddiff one more time.
Typos show that in fact "working" has been result typos diabled state for relamd.
Cell-based way have not avoidable problems with case when object added to not active
long time Cell. If someone find more working sollution it can be readded ofc.
2010-11-10 06:13:27 +03:00
VladimirMangos
4dc943aaa8 [10715] Fixed move in inventory items with ItemLimitCategory. 2010-11-10 05:42:53 +03:00
VladimirMangos
bfec27707a [10714] Avoid unexpected error at action_menu_id < 0 after recent loading checks adding. 2010-11-10 04:38:27 +03:00
VladimirMangos
9c96949da9 [10713] player/group instance binding fixes.
* Use anum instead raw uint8 type in args
* Fixed crash when gm at continent invite to group gm in instance
  and then teleport to instance using .goname.
  When group leader teleport to instance it must get group bind instead solo bind.
* In other semilar cases detection report error as before but replace solo by group bind instead
  assert crash at enter to map.
2010-11-10 04:36:01 +03:00
VladimirMangos
a87648c56b [10712] Startup checks for gossip_menu and gosip_menu_option table data.
Existance `gosup_menu` id refercned from gameobject field and unused meni ids
activated only with disabled LogFilter_DbStrictedCheck.
2010-11-10 01:00:14 +03:00
VladimirMangos
534ff29f15 [10711] Check localization data for existance main table entres.
Data will skipped for nonexistent entries, and reported with
disabled LogFilter_DbStrictedCheck filter.
2010-11-09 20:26:59 +03:00
SilverIce
24eb9ec87a [10710] Fixed typos in my previous commit 2010-11-09 15:24:10 +02:00
zergtmn
6c1dd50511 [10709] Prevent wrongly use transport guid as unittarget in spell targets
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 06:13:10 +03:00
Revils
050eb8cf5f [10708] Update ACHIEVEMENT_CRITERIA_TYPE_LOOT_* with group roll.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 05:43:03 +03:00
eggxp
11f13e10bd [10707] Move Glancing Blow early in melee outcome results.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 05:32:29 +03:00
virusav
262b3ce1ff [10706] Implement talent 30326 for spell 5138.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 05:11:39 +03:00
SilverIce
b825c33cdf [10705] Simplify CellArea calculation 2010-11-09 00:56:49 +02:00