Commit graph

4176 commits

Author SHA1 Message Date
VladimirMangos
1b5a82bccd [10975] Report error about not existed item loot data only if item not have money loot. 2011-01-07 02:35:04 +03:00
VladimirMangos
dba840fe01 [10974] Possible fix for GCC based build problems after prev. commit. 2011-01-06 13:49:52 +03:00
VladimirMangos
6b9de2c958 [10973] Implement game event mail sends at event start/stop.
Also implement save game event state to DB mostly for avoid
send mails at resume game event after server downtime.

Thanks to X-Savior for inspiring and original research.
2011-01-06 12:40:15 +03:00
VladimirMangos
da228b707d [10972] Implement mass mail gm commands.
* New comamnds mirror related normal sedn commands:
   - send mass items
   - send mass mail
   - send mass money

* Instead player name it expect or numeric racemask or textual race/team name or 'all'.
2011-01-06 06:55:51 +03:00
VladimirMangos
f347f4bc00 [10971] Make normal server shutdown safe for not finished mass mail tasks. 2011-01-06 06:46:29 +03:00
VladimirMangos
5f2aef756a [10970] Implement mass mail send infrastructure.
It expected to be used in 2 case: some gameevent must send mails at start/end,
and this can be useful in game commands. Both case wil implemented in later commits.

* New MassMailMgr can accept tasks for send mass mails in safe way for map update threads context/etc.
* It work in way:
   - By provided race mask or more generic SQL query string in async query selected affected characters
   - At query result ready at next world tick update in safe common part of tick code some from mails
     from queued mas mail tasks send.
   - Amount mails limited MassMailer.SendPerTick confir option (10 by default). This done for prevent
     high server load/lags at send too many mails in one tick (mail send all existed characters in DB
     who match to seelction criteria)
   - Manager not persistant for server shutdowns so any not send mails in queue lost at shutdown.
     But with default setting 10K mail send in 20 secs (10000/50/10). Adding more safe execution
     for this case will make related code lot more slow and req. many DB tables and code support.
2011-01-06 06:10:15 +03:00
VladimirMangos
231c6d77ce [10969] Some cleanups in MailDraft API
* Use Set* names for cases when function replace old value by new (instead Add*)
* Prevent hidden MailDraft copy create becase if draft have items its can't be just shared
  and need preoprtly cloned, but item close is high price operation (guid use, DB tiuched and etc)
  So this must be explictly operation. In next commits will be added clone function for this.
* Some MailDraft overwrite by assign cases rewrited to more clean way.
2011-01-06 02:11:21 +03:00
VladimirMangos
22115a8d04 [10968] More typo fixes in Callback.h 2011-01-06 01:20:21 +03:00
Daggy
9f8cfb77d4 [10967] Add dummy effect of spell 38194 and limit it's maxTargets
Correct order of spellfamily case.
Note: triggered spell 38203 needs target map fill

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-05 10:24:23 +01:00
VladimirMangos
43707056f3 [10966] Fixed typos in Callback template classes. 2011-01-05 08:57:49 +03:00
patman128
4372a956dc [10965] Fixed typo in faction state changes flags reset.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-05 06:36:33 +03:00
NoFantasy
86b8e4b2f0 [10964] Update a few GO create error messages with better engrish.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-05 00:38:21 +01:00
NoFantasy
514a66fd67 [10963] Rename UNIT_STAND_STATE_SUBMERGED to more generic *_CUSTOM
Visual appearance depend on model animation capability.
In addition, change stand state for creature at enter combat when creature has custom stand state.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-05 00:13:27 +01:00
Kid10
b206e5ddd0 [10962] Fixed wrong spell cast code call with missing bool arg.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added trap code for like wrong cases
2011-01-05 00:54:38 +03:00
VladimirMangos
fda171d6bd [10961] Avoid use scripting support wrappers for internal server code. 2011-01-04 22:48:04 +03:00
VladimirMangos
3a99027a80 [10960] Send SMSG_DISMOUNT to client.
As know no any affect in work from it.
2011-01-04 21:55:58 +03:00
NoFantasy
7828ee18ad [10959] Better description of UNIT_FLAG2_UNK1
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-04 12:06:50 +01:00
NoFantasy
b3076146fc [10958] Rename function to CanUseEquippedWeapon
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-04 10:29:04 +01:00
QAston
4fe41fb335 [10957] Implement auras SPELL_AURA_MOD_DISARM_OFFHAND (254) and SPELL_AURA_MOD_DISARM_RANGED (278).
Thanks to Qsa prepare for mangos.

Note: single unsure case: is block chance must be show or set to 0 in shield disarm time.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 06:42:35 +03:00
Schmoozerd
883e88fad5 [10956] Implement support triggered spells in SCRIPT_COMMAND_CAST_SPELL
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 04:15:47 +03:00
thenecromancer
9174e5d085 [10955] Fixed MSG_PVP_LOG_DATA data prepering.
Thnaks to Lightguard for not let this patch lst and prepare to recent sources.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 03:34:44 +03:00
VladimirMangos
9cdafee907 [10954] Drop not help clarify code comments. 2011-01-03 19:54:27 +03:00
VladimirMangos
2f7db4801e [10953] Add changes from [10949] to mangos.sql 2011-01-03 15:20:59 +03:00
VladimirMangos
a0e298179c [10952] Don't use singleton to access static functions. 2011-01-03 14:55:55 +03:00
Lynx3d
32649abe6b [10951] Add some missing spell_proc_event entries for set bonuses.
- set 898, 4 pieces
- set 891, 2 and 4 pieces
- set 889 and set 901, 4 pieces
2011-01-03 01:07:30 +01:00
VladimirMangos
9ae7104251 [10950] Check for scripting lib that it build with exactly same mangos rev.
This prevent use outdated script DLL with hidden possible incompatibilities
in used from core inline functions  or defines.
2011-01-02 20:19:21 +03:00
NoFantasy
0da3463758 [10949] Fix the word accessable -> accessible in log message
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-02 01:30:21 +01:00
VladimirMangos
20e7cdb55e [10948] Fixed typo in enum names 2011-01-02 00:23:56 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
siduskana
984f690e71 [10946] Drop redundent spell_proc_event data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-01 18:50:50 +03:00
VladimirMangos
84b5ee3b43 [10945] Restore check scripting lib API at load.
Also report result of script library load/reload to chat/console.
2011-01-01 18:39:09 +03:00
Lynx3d
d4018322b9 [10944] Lock action buttons before unlearning talents on spec switch.
This prevents client from automatically requesting removal of buttons that use unlearned spells.
2010-12-31 00:54:12 +01:00
VladimirMangos
cb1e82d663 [10943] Fixed mangos.sql after rename table to game_event_creature_data 2010-12-31 00:27:37 +03:00
VladimirMangos
7a2478ff4f [10942] Implement .reload npc_text. 2010-12-30 23:41:54 +03:00
VladimirMangos
16768da053 [10941] More strict check player race/class allowed values. 2010-12-30 06:53:06 +03:00
VladimirMangos
b325e93538 [10940] Apply mangos code style to in class {} indent. 2010-12-30 04:11:05 +03:00
VladimirMangos
afdfdf6559 [10939] Check non-unit target case for avoid crash in EffectQuestComplete. 2010-12-30 03:20:39 +03:00
zergtmn
0b7e78d2a7 [10938] Some adjustments to script calls OnQuestChooseReward replaced with OnQuestRewarded. Also fix compile in VC 8.0 and VC 9.0. 2010-12-30 01:27:13 +05:00
NoFantasy
14c8db9c9a [10937] Add models for spell aura 50517 and 51926
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-29 21:18:39 +01:00
Unid
7d41f3fadf [10936] Correctly show online status of 1.12.1 realms
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-29 20:50:20 +03:00
zergtmn
ec6089bbd8 [10935] Move script calls to ScriptMgr
- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-29 21:48:06 +05:00
VladimirMangos
918e646ca2 [10934] Implement dummy effect of spell 7671.
Thanks to X-Savior for reserch.
2010-12-29 05:05:59 +03:00
VladimirMangos
26370b8df7 [10933] Fixed crash at modified data from client at trainer spell learn. 2010-12-29 02:49:03 +03:00
VladimirMangos
d38df50a7e [10932] Imporvments gameevent creature morphing.
* Table `game_event_model_equip` renamed to `game_event_creature_data`
* Table allow now store same creatures for different events, BUT
  expected that related events no active in same time.
* Added possibility switch entry at gameevent time.
  This let have diff factions/loot and etc for creatures.
* Added possibility cast spells at gameevent start/end.
  Exist some spells that expected casted to creature at gameevent start
  for model replace, and for animation in other cases.

Note: `game_event_creature_data`.`modelid` field posisble will removed soon in fowor related spell use.
      Ofc, when spells will implemented in core.
2010-12-29 01:38:49 +03:00
Ambal
e52ebaf7a9 [10931] Fix mangos build with old ACE libraries after [10924].
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-12-28 23:38:58 +02:00
NoFantasy
dfa30a495d [10930] Add models for spell 65528 and 65529
Add spells in commented form that will need custom handling in similar way for the same aura effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 21:03:34 +01:00
VladimirMangos
3ff5ff2e6f [10929] Move game event creature morphing code to Creature::UpdateEntry
* This is allow have more clean logic in feature work.
* Prevent modify static creature data.
2010-12-28 22:52:40 +03:00
NoFantasy
f8921dbca8 [10928] Uncomment all races in enum Races
Race can also be creature race and needed for future implementation of spells.
RACE_UNDEAD_PLAYER renamed to more proper RACE_UNDEAD

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 19:53:01 +01:00
zergtmn
d400f00224 [10927] Prevent null-pointer dereference in AI calls 2010-12-28 22:09:25 +05:00
NoFantasy
1031f3b5d2 [10926] Remove player-only limit for HandleAuraTransform where miscvalue is 0
Add error output for unhandled spells plus minor code cleanup

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 11:57:50 +01:00