Vincent-Michael
921457ae7b
Core/Sai: Added missing changes in 4060fb1b59
2014-10-02 21:13:16 +02:00
Vincent-Michael
4060fb1b59
Core/Sai: Added ugly code for new sai error log :(
2014-10-02 21:11:50 +02:00
Vincent-Michael
88ea67add0
Core/SAI: Addet new error log for SMART_ACTION_CAST kill credit invalid target
2014-09-30 18:56:12 +02:00
Vincent-Michael
1d8feb271c
Core:/SmartScript: Added log for item has credit spell blabla
2014-09-21 17:45:57 +02:00
DDuarte
af7daba02d
Core/SAI: Remove SMART_ACTION_STORE_VARIABLE_DECIMAL
...
It's not used.
2014-09-17 01:07:29 +01:00
Discover-
6066ec0949
Core/SAI: Implement a new action type to make a creature (or targets in list) start the closest waypoint available to them
2014-09-03 20:11:15 +02:00
Dehravor
cbd36d5a4e
Core/Misc: Remove remaining COMPILER_HAS_CPP11_SUPPORT related macros
2014-05-01 11:19:32 +02:00
MitchesD
718b0e6bdd
Core/SmartScripts: SMART_ACTION_EQUIP prevent to false errors
2014-04-03 19:47:27 +02:00
Vincent-Michael
bacfbdc4ee
Core/Sai: Added new db errors :P (hihi)
2014-03-31 17:32:39 +02:00
deathicon
78e9a3eb65
Core/SAI: Implement two new event types that are triggered when a certain creature/gameobject entry or guid gets within a given distance of the source.
2014-03-26 10:23:34 +01:00
jackpoz
7a188c8685
Core/SAI: Fix assertion in SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST
...
Fix assertion triggered in SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST if max entry is less than min entry
2014-02-09 16:09:09 +01:00
Discover-
bf0d8c1346
Core/SAI: Implement three more event phases which makes a total of 9 (from 6).
...
Ref. #11486
2014-01-21 19:56:43 +01:00
Vincent_Michael
20004050bc
Update copyright note for 2014.
...
Happy new year.
2014-01-01 00:07:53 +01:00
Discover-
4ca63412c8
Core/SmartAI: SMART_ACTION_UPDATE_TEMPLATE will no longer ignore the target type and force the source creature (creature only) to be updated; from now on it updates the given targets to the given entry (actionparam1)
2013-12-13 09:45:58 +01:00
joschiwald
a40e814240
Core/SmartScripts: speedup loading/validating sai scripts from db
...
Before:
>> Loaded 6953 SmartAI scripts in 3543 ms
After:
>> Loaded SmartAIMgr Helpers in 4 ms
>> Loaded 6953 SmartAI scripts in 95 ms
2013-12-11 18:53:05 +01:00
Spp
cd48662233
Core/Logging: Minor changes
...
- Select stderr when writing ERROR and FATAL messages
- Simplify function defines
- Fix `logs` table structure with latest logging changes
2013-11-11 14:35:16 +01:00
Spp
94e2b9332a
Core/Logging: Remove LOG_FILTER_XXX defines with it's value (remember logger names are case-sensitive)
2013-11-08 10:50:51 +01:00
Gacko
be19ac95ed
Core/SmartAI: Better wording for telling "There is a spell for summoning this"
2013-11-07 11:56:02 +01:00
Discover-
0cc32e28e3
Core/SAI: Rename SMART_EVENT_TARGET_CASTING to SMART_EVENT_VICTIM_CASTING as that's what it actually does. It was often confused to use the target_type field instead of the victim.
2013-10-22 15:59:32 +02:00
Vincent-Michael
bc1a079b6c
Core/SAI: Fix typo (i blame germans laziness)
2013-09-06 21:40:04 +02:00
Vincent-Michael
458f5b9502
Core/SAI: Added SMART_ACTION_SUMMON_CREA / SMART_ACTION_SUMMON_GO log for has already summon spell
2013-09-05 16:16:23 +02:00
Vincent-Michael
ab85a9507e
Core/SAI: Added SMART_ACTION_CALL_KILLEDMONSTER log for has already spell kill credit
2013-09-02 17:48:55 +02:00
Nay
582686090d
Merge pull request #10685 from Discover-/SmartAI-Target-Casting
...
Core/SmartAI: Add a spellid to SMART_EVENT_TARGET_CASTING. If left on 0,...
2013-09-01 10:03:45 -07:00
Discover-
016dac995e
Core/SmartAI: Add a spellid to SMART_EVENT_TARGET_CASTING. If left on 0, it checks for all spells (like it did without these changes)
2013-09-01 10:49:29 +02:00
Nay
7ecf4fdec1
Core/Quests: Split Flags and SpecialFlags
2013-08-30 23:08:40 +02:00
Nay
7776016106
Core/Quests: Remove CastedCreatureOrGO method
...
- Remove EAI's ACTION_T_CAST_EVENT and ACTION_T_CAST_EVENT_ALL
- Remove SAI's SMART_ACTION_CALL_CASTEDCREATUREORGO
- Split QUEST_TRINITY_FLAGS_KILL_OR_CAST into QUEST_TRINITY_FLAGS_KILL and QUEST_TRINITY_FLAGS_CAST
- Assign QUEST_TRINITY_FLAGS_CAST to all the quests that were using RequiredSpellCastX
- (unrelated) Fix a warning in Player.cpp
- Replace CastedCreatureOrGO usage in scripts by KilledMonsterCredit
TODO: Convert the two EAI scripts commented out in the .sql to proper SAI
Closes #10667
2013-08-30 19:32:08 +01:00
Nay
aa5bc37e9c
Core: Yet more warning fixes
2013-08-30 16:03:37 +01:00
xjose93
c3afc00571
Implement SMART_ACTION_GAME_EVENT_STOP (111) and SMART_ACTION_GAME_EVENT_START (112).
2013-08-30 01:23:01 +02:00
Discover-
a0ff0233c5
Core/SmartAI: Implement SMART_TARGET_CLOSEST_FRIENDLY.
...
Parameter is distance to search for.
Closes #10521
2013-08-15 01:22:22 +01:00
Discover-
8c961687a0
Core/SmartAI: Implement SMART_EVENT_FRIENDLY_HEALTH_PCT.
...
On current clean TDB, there are a total of 106 creatures using
SMART_EVENT_FRIENDLY_HEALTH (non-PCT) which has a flat first parameter, but
only 8 of these use the event correctly (and therefore only 8 of them
actually work).
Closes #10520
2013-08-15 01:18:10 +01:00
Nay
54d2b73f3c
Merge pull request #10513 from Discover-/SmartAI-Casted-CreatureOrGo
...
Core/SmartAI: Drop support for SMART_ACTION_SEND_CASTCREATUREORGO. It is...
2013-08-11 06:26:52 -07:00
Discover-
80bd5b363a
Core/SmartAI: Drop support for SMART_ACTION_SEND_CASTCREATUREORGO. It is unused in the current newest TDB, it never even worked like it should and the exact same purpose of this function is already fulfilled by SMART_ACTION_CALL_CASTEDCREATUREORGO (the correct way).
2013-08-11 02:58:53 +02:00
Discover-
75ca3573c8
Core/SmartAI: Implement SMART_ACTION_SET_POWER, SMART_ACTION_ADD_POWER and SMART_ACTION_REMOVE_POWER (param1 = powertype, param2 = newPower). Required for upcoming EAI to SAI conversion (for ACTION_T_SET_UNIT_FIELD) (only SMART_ACTION_SET_POWER is required for the conversion but might as well do it right when on it).
2013-08-10 14:13:17 +02:00
Nay
edf77a4cf6
Merge pull request #10493 from Discover-/SmartAI-Action-Sound-Update
...
Core/SmartAI: Rename SMART_ACTION_SOUND's parameters and get rid of an e...
2013-08-09 08:38:09 -07:00
Discover-
bd2120593d
Core/SmartAI: Rename SMART_ACTION_SOUND's parameters and get rid of an error that shouldn't be there. The method it calls doesn't take CreatureTextRange (enum) in consideration, but a boolean called onlySelf.
2013-08-09 01:05:56 +02:00
Discover-
9d4c2c5b1e
Core/SmartAI: Implement SMART_TARGET_CLOSEST_ENEMY (25)
...
Required for upcoming EAI to SAI conversion.
Closes #10482
2013-08-07 19:59:06 +01:00
Mihapro
e00fc19779
Core/SmartScripts
2013-07-08 18:01:41 +02:00
Spp
d1677b2db0
Core/Logging: Performance-related tweaks to logging system
...
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros.
Memleak fix
2013-05-13 15:07:36 +02:00
Spp
b4ee55dd05
Core/Misc: Do not use singleton when calling to static function ChooseDisplayId (and remove unused parameter)
2013-03-20 14:20:17 +01:00
Vincent_Michael
83c98d6dff
Core/SmartAI: Implement SMART_ACTION_SUMMON_CREATURE_GROUP (107)
2013-03-09 02:03:37 +01:00
Nay
2d861b71ce
Core/SAI: Add actions to set/add/remove (104/105/106) gameobject flags
2013-02-16 18:42:26 +00:00
Vincent_Michael
9d7d68395c
Core/SmartAI: Implement SMART_ACTION_SET_ROOT (103)
2013-02-02 18:18:27 +01:00
Vincent_Michael
cc65aba789
Update copyright note for 2013.
...
Happy new year.
2013-01-01 00:41:01 +01:00
Warpten
63b9a7579c
Core/SAI: Fixed build, i need new glasses.
2012-12-29 22:30:29 +01:00
Warpten
609c5700d6
Core/SAI: SMART_ACTION_NONE is not a valid action. Also accept SMART_ACTION_SET_RANGED_MOVEMENT as a valid action.
2012-12-29 22:27:32 +01:00
Subv
2002bc785e
Core/SAI: Fixed SMART_ACTION_SET_RANGED_MOVEMENT
2012-12-29 15:35:56 -05:00
Kandera
2e5e8331f3
Core/SmartAI: add SMART_ACTION_SET_HEALTH_REGEN (102).
2012-09-17 14:11:57 -04:00
Santiago
e3b9b15779
Core/SAI: Implement SMART_ACTION_SET_HOME_POS (101)
...
No parameters; allowed targets: self and position
Closes #7689
2012-09-08 00:55:47 +01:00
Nay
e3d9768a50
Core: Fix many "errors"/warnings and coding style (3)
...
Game
Errors were found using Cppcheck, open-source static analysis tool
2012-08-30 22:44:33 +01:00
Spp
8a1e7dd070
Core/Loading: Re-enable Server loading log
2012-08-16 00:23:44 +02:00