Commit Graph

92 Commits

Author SHA1 Message Date
QAston
b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Jesper Meyer
b216522b3d Core/SAI: Add action SMART_ACTION_JUMP_TO_POS. 2011-07-02 07:52:03 +02:00
Shauren
a6708fd595 Core/SAI: Fixed possible crashes in many SAI actions
Closes #1144
2011-06-15 17:33:06 +02:00
Shauren
1df876c3ec Core/SAI: Fixed crashes in AttackStart related to movement
Closes #1670
2011-06-15 17:32:31 +02:00
kaelima
d277ecc26a Core/SmartAI: Add ability to set/add/remove dynamicflags of a creature.
SmartAI Wiki is updated.
2011-06-12 17:50:23 +02:00
kaelima
b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
Shauren
0ad14aeafd Core/Gossip: Gossip menu items will now have constant index, allowing to properly define scripts relying on that index when mixed with conditions. Script-created menus via ADD_GOSSIP_ITEM will still have the index generated dynamically 2011-05-26 23:57:17 +02:00
Shauren
ecc95a8690 Core/CreatureTextMgr: Converted chat types to use values found in sniff, without any need for conversions 2011-05-13 22:44:01 +02:00
Shauren
169e4bfa2b Core/SAI: Added missed changes 2011-05-12 10:42:25 +02:00
Shauren
339e8cb7e0 Core/SAI/EAI: Pass struct parameters by reference instead of value, saves unneeded copying 2011-05-12 10:40:53 +02:00
Shauren
53b409e756 Core/SAI: Fixed memory leak 2011-05-11 21:19:22 +02:00
Az@zel
f73c6c40bb Core/Misc: fix compiler warnings 2011-05-11 11:12:26 +06:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak
6d1924cee8 Removing SQLStorage class leftovers 2011-04-28 23:03:02 +02:00
leak
c51c817a45 Core/ObjectMgr: Refactor sCreatureStorage 2011-04-28 22:57:08 +02:00
leak
e2e9431ca3 Core/ObjectMgr: Refactor sGOStorage 2011-04-28 22:54:30 +02:00
leak
03365e9a57 Core/ObjectMgr: Refactor sEquipmentStorage 2011-04-28 22:34:40 +02:00
Shauren
8898db8b27 Core: Corrected NULL usage, it should only be used with pointers, not integers 2011-04-23 15:53:48 +02:00
Machiavelli
6d0c97b06b Core/SAI: Fix a possible crash in SMART_ACTION_SET_ORIENTATION with SMART_TARGET_SELF for TempSummons 2011-04-22 12:19:34 +02:00
Manuel Carrasco
4796848b83 Core/SAI: Implemented SMART_EVENT_IS_BEHIND_TARGET, it is triggered when the creature is behind its current target.
Signed-off-by: Manuel Carrasco <manue.l@live.com.ar>
2011-04-14 00:30:32 -03:00
Shauren
e1bacef346 Core: Removed unused functions (leftovers from sd2, was needed when scripts were built as separate dll) 2011-04-01 20:31:15 +02:00
Shauren
0fbde67824 Core/AI: Some code style cleanup 2011-03-27 12:54:42 +02:00
Shauren
9fea7d9a85 Core/SAI: Fixed another memory leak 2011-03-27 12:54:11 +02:00
Shauren
cbb552ead7 Core/SAI: Fixed memory leaks in targeting (lists were not being deleted) 2011-03-26 23:45:23 +01:00
Shauren
2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren
9710c41a40 More warning fixes 2011-03-08 19:11:02 +01:00
Machiavelli
a9582964d3 Core/Vehicles: Make the vehicle system more aura driven. Get rid of redundant checks and update relevant data.
Closes #805
2011-03-04 21:17:06 +01:00
Manuel
7a0df5876b Core/SmartAI: Moved log to debug level.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-03-04 00:13:25 -03:00
Nay
eea7efa463 Core/SAI: Correct debug log for SMART_ACTION_CAST 2011-03-02 18:20:33 +00:00
Shauren
3cb0c4d969 Core/SAI: Fixed SMART_ACTION_EQUIP used with creature_equip_template ids 2011-03-02 18:23:50 +01:00
Shauren
6c020c72cc Core/SAI: Implemented Gameobject action allowing to send SMSG_GAMEOBJECT_CUSTOM_ANIM with parameter set in param1 2011-03-02 16:50:09 +01:00
click
d92fb9ad65 Core: Clean up some rogue whitespace and tabs 2011-02-27 18:34:24 +01:00
Rat
8b37ac4688 Core/SAI: Fix invoker logic and possible crashes
Signed-off-by: Rat <gmstreetrat@gmail.com>
2011-02-21 22:23:43 +01:00
Machiavelli
f8eae7427d Core/SAI: Fix a possible crash and clean up some copypaste errors in ProcessAction 2011-02-21 04:23:53 +01:00
Machiavelli
4c04da6195 Core/SmartAI: Add some useful debug output to make development and debugging of SAI scripts easier. (Part 1/x)
Core/SmartAI: Fix param usage for SMART_ACTION_RANDOM_PHASE
2011-02-21 01:15:14 +01:00
Machiavelli
e07e20ffca Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf. 2011-02-20 20:16:34 +01:00
Nay
45db1591a4 DB/Schema: Properly use field types in smart_script table
Thanks Shauren
2011-02-20 19:11:42 +00:00
Manuel Carrasco
ad11baffe6 Core/SAI: Implemented SMART_ACTION_INTERRUPT_SPELL action.
Signed-off-by: Manuel Carrasco <manue.l@live.com.ar>
2011-02-15 00:29:33 -03:00
Malcrom
5241fefe7f Core/SAI: Execute SMART_EVENT_WAYPOINT_REACHED events only once 2011-02-15 02:54:13 +01:00
runningnak3d
30e45b9356 Core/SAI: Change SMART_ACTION_PLAY_EMOTE and SMART_ACTION_RANDOM_EMOTE
to use the new IsEmoteValid which checks Emote.dbc.
Thanks Nay for noticing the problem
2011-02-13 20:42:57 -07:00
runningnak3d
2d9ecceae3 Core/SAI: Add IsEmoteValid back for looking up non-text emotes 2011-02-13 20:39:53 -07:00
runningnak3d
27f5d396a2 Core/SAI: Rename IsEmoteValid to a more fitting name of IsTextEmoteValid 2011-02-13 20:33:48 -07:00
runningnak3d
8d8e63a866 Core/SAI: Set proper index for UNIT_FIELD_BYTES_1. Thanks Malcrom 2011-02-07 19:29:16 -07:00
runningnak3d
97882544e1 Core/SAI: Add the ability to remove UNIT_FIELD_BYTES_1 in SAI (action
91)
2011-02-07 10:15:54 -07:00
runningnak3d
f7eba9c940 Core/SAI: Add the ability to set UNIT_FIELD_BYTES_1 in SAI (action 90) 2011-02-07 09:35:14 -07:00
Shauren
9c0cd63e93 Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon 2011-01-02 21:33:37 +01:00
Machiavelli
957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
Shauren
928443d899 Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG--
branch : trunk
2010-12-23 23:25:44 +01:00
Shauren
0f3b9019a8 Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG--
branch : trunk
2010-12-22 21:25:23 +01:00