Subv2112
e43b1cd750
Core/SAI: Run mode should not be set to true each time a creature resets, it should use its previous value
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-27 08:34:36 -05:00
Subv2112
3d4f55723c
Core/SAI: Linked events should be executed after the event that linked them is executed.
...
Core/SAI: Allow SMART_EVENT_GO_STATE_CHANGED to use ActionInvoker target
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-22 20:36:01 -05:00
Subv2112
07b1101a63
Core/SAI: Run mode should be disabled by default in creatures with SAI
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-21 18:54:05 -05:00
Machiavelli
5a504f94f7
Merge pull request #4700 from Subv/fix001
...
Core/SAI: Implement SMART_EVENT_GO_STATE_CHANGED and SMART_ACTION_GO_SET_LOOT_STATE
2012-01-07 11:24:53 -08:00
Subv2112
7f977c28b6
Core/SAI: Fixed the behaviour of SmartAI::RemoveAuras, it should only remove the auras that are applied on the unit by casters other than the unit
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-06 20:50:05 -05:00
Subv2112
aaa255b83d
Core/SAI: Implemented SMART_EVENT_GO_STATE_CHANGED and SMART_ACTION_GO_SET_LOOT_STATE
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-06 11:09:01 -05:00
Subv2112
235b941964
Fixed a typo
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-05 19:46:46 -05:00
Subv2112
d889edb436
Core/SAI: Self-casted auras should not be removed when the NPC resets
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-05 15:09:55 -05:00
Subv2112
8197c37a92
Vehicles with SAI should not kick their passengers when resetting
...
Signed-off-by: Subv2112 <s.v.h21@hotmail.com >
2012-01-05 12:11:58 -05:00
kiper
8299627ed9
Update headers for 2012. HAPPY NEW YEAR!!!
2012-01-01 00:32:13 +01:00
Machiavelli
1b2c413933
Core/SAI: Preliminary implementation of SMART_EVENT_GAME_EVENT_START and SMART_EVENT_GAME_EVENT_END {param1: game_event.entry}
2011-12-11 16:23:43 +01:00
kaelima
b10477a166
Core/SmartAI: Fixed crashes when using timed actionlist for gameobjects.
2011-12-10 13:44:06 +01:00
kaelima
3d4d147196
Core/SmartAI:
...
- Drop useless actions SMART_ACTION_ENTER_VEHICLE, SMART_ACTION_LEAVE_VEHICLE and SMART_ACTION_REMOVE_PASSENGERS.
(Vehicles are aura-driven, just remove or add the proper aura to achieve the same as these actions did)
- Fixed possible crash in SMART_ACTION_SEND_GOSSIP_MENU
- Areatriggers should not be triggered by dead players
2011-10-31 02:01:17 +01:00
kaelima
199bcf1a88
Core/SmartAI: Allow SMART_ACTION_FOLLOW to take 0 values for dist and angle - will set them to their "default" following values.
2011-10-25 19:08:21 +01:00
kaelima
f2000f3fb5
Core/Misc: Some minor cleanups
...
Fixed SQL added in prev commit.
2011-10-24 23:33:17 +01:00
kaelima
3a3af64f68
Core/SmartAI:
...
- Fixed some issues with SMART_ACTION_SET_FLY (#1073 )
- Fixed allowing 0 as input for SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST (#2680 )
- Some cleanup
2011-10-24 23:21:34 +01:00
Nay
8373e6c32e
Core/Creature: Do not attack non-combat pets.
...
Fixes an issue where non-combat pets were aggroing other creatures
2011-10-01 16:57:10 +01:00
Nay
0f7d9e4837
Core/SAI: Fix an issue where SAI was ignoring civilian and passive unit flags
...
Closes #2526
Disclaimer: This was not thoroughly tested; report any issue caused by this change.
2011-10-01 16:29:23 +01:00
Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Nay
dc123820ad
Core/Spells: Correct a DBC mistake in Improved Stings (R2)
2011-09-06 18:12:09 +01:00
Spp-
aa85553bfd
Core: Crash fix (TemporarySummon), remove some warnings and some other minor changes
...
- "const uint64" and "uint64 const" --> uint64
- Add some info in LFGDungeonEntry
- Move some definitions from ".h" files and move to ".cpp"
2011-08-30 13:46:36 +02:00
Chaplain
fb27848510
Core: Clean up here and there.
...
*replase postfix iterator increment\decrement with prefix in cycles
*replase strlen(*char) != 0 with *char[0] != '\0'
*replase strlen(rStr.c_str()) with rStr.length()
2011-08-23 18:09:08 +03:00
Fredi Machado
73b1448f29
Core/AI: English correction thanks u2blah for pointing
2011-08-21 00:07:38 -03:00
Fredi Machado
78e10e9cd0
Core/AI: Cleaning up hungarian notation
2011-08-20 20:31:31 -03:00
Fredi Machado
0b64d726c2
Core/AI: Code style and cleanups
2011-08-18 14:55:59 -03:00
Spp-
acd0fc79f6
Core: Pass by const reference for simple objects replaced with pass by value
2011-08-01 14:23:27 +02:00
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
Shauren
1df876c3ec
Core/SAI: Fixed crashes in AttackStart related to movement
...
Closes #1670
2011-06-15 17:32:31 +02:00
kaelima
b9e8694540
Core: Continued cleanup
...
If and for whitespaces.
2011-06-12 02:30:32 +02: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
Shauren
0fbde67824
Core/AI: Some code style cleanup
2011-03-27 12:54:42 +02:00
Shauren
2f79b0f266
Core: Removed all double (and more) empty lines
2011-03-21 10:52:14 +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
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
Malcrom
5241fefe7f
Core/SAI: Execute SMART_EVENT_WAYPOINT_REACHED events only once
2011-02-15 02:54:13 +01: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
leak
6115b0bd5f
Removing ProgressBars as they are performing badly on startup.
...
[**************************************************] 100%
R.I.P
--HG--
branch : trunk
2010-12-22 00:12:03 +01:00
Shauren
24193966dd
Core/Auras: Fixed crash in AuraEffect::TriggerSpell (dummy effect) and removed some useless code
...
Scripts/AI: Changed sOnDummyEffect to return bool value
Closes issue #5190 .
--HG--
branch : trunk
2010-12-18 22:04:19 +01:00
Shauren
58a9b15443
Core: Fixes some warnings
...
Core/SmartAI: Fixed DamageTaken and DamageDealt hooks
--HG--
branch : trunk
extra : rebase_source : 062f1c68cd1d318d192b294a493db17a1943bee2
2010-12-14 22:45:23 +01:00
click
2642894342
Core: Add new system for parallelizing client packet processing. Handle WorldSession updates in Map::Update() where we are safe to proceed. Patch by Ambal.
...
(And clean up tabs and whitespace while rummaging around in there)
Closes issue 5084.
--HG--
branch : trunk
2010-12-13 22:37:56 +01:00
Rat
cebf8590e3
Core/SmartAI: some error checks for actionlists, and enabled lists for GOs
...
--HG--
branch : trunk
2010-12-07 20:25:45 +01:00
Rat
bb09a4a50f
Core/SmartAI: all actions regarding to TIMED_ACTIONLIST will now use targeting:
...
you can now 'send' a list of timed actions to any targeted creature if it has SmartAI
NOTE: already made script with timed actions should be remade to use self as target
--HG--
branch : trunk
2010-12-07 18:31:34 +01:00
Spp
25ac835507
Core/Groups: Move all function definition from .h to .cpp
...
Core/Groups: Remove Group.h dependency from any .h file
--HG--
branch : trunk
2010-11-29 07:50:31 +01:00
Rat
c1ec8c80de
Core/SmartAI: added TARGET_THREAT_LIST, uses all units from creature's threat list as targets
...
- modified ACTION_CALL_CASTEDCREATUREORGO to use simple targeting
--HG--
branch : trunk
2010-11-20 12:42:10 +01:00
Rat
3de2f6af01
Core/AI: added sOnDummyEffect() for all AIs
...
Core/SmartAI: added EVENT_DUMMY_EFFECT (66)
--HG--
branch : trunk
2010-11-17 23:24:21 +01:00
Spp
addd762c4d
Core: Fix warnings
...
--HG--
branch : trunk
2010-11-16 14:08:12 +01:00