Machiavelli
f5b3553bb3
Core/SAI: Typo in second param of SMART_ACTION_SEND_GOSSIP_MENU. This is npc_text_id, not gossip_option_id. Wiki needs to be updated accordingly.
...
Thanks to Prodigy for pointing out.
2011-12-06 12:37:05 +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
Nay
f17879d423
Core/SAI: Add input validation (params) to certain target types and update target comments
2011-10-30 13:12:39 +00:00
kaelima
f958fdf246
Core/SmartAI: Add actions SMART_ACTION_LEAVE_VEHICLE and SMART_ACTION_REMOVE_PASSENGERS.
...
Fix maxdist for SMART_TARGET_CLOSEST_PLAYER.
2011-10-25 23:50:00 +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
Nay
5f58965fad
Tiny typo on previous commit.
2011-10-23 13:01:04 +01:00
Geekotron
c2125ece3b
Core/SAI: Add SMART_ACTION_SEND_GOSSIP_MENU.
...
It allows the scripter to change the gossip (and gossip menu option) of a creature with SAI
Param1 = `gossip_menu`.`entry`
Param2 = `gossip_menu_option`.`id`
2011-10-23 12:59:08 +01:00
Rat
e23fe1845f
Core/SmartAI: Updated SMART_ACTION_RESPAWN_TARGET, should work for GOs as intented. Param1 is to set GO respawn time.
2011-10-07 14:12:09 +02:00
Nay
3ccfb5fefb
Core/SAI: SMART_ACTION_FLEE: print flee emote if param1 is set
2011-09-04 18:51:16 +01: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
0b64d726c2
Core/AI: Code style and cleanups
2011-08-18 14:55:59 -03: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
Jesper Meyer
b216522b3d
Core/SAI: Add action SMART_ACTION_JUMP_TO_POS.
2011-07-02 07:52:03 +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
Shauren
339e8cb7e0
Core/SAI/EAI: Pass struct parameters by reference instead of value, saves unneeded copying
2011-05-12 10:40:53 +02:00
leak
1003f30448
Add spaces after commas
2011-04-29 20:47: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
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
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
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
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
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
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
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
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
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
Spp
408fce1de6
Core: Some optimizations
...
- Declare some functions const
- Fix some mem leak
- Fix some resource leak
- Remove unused variables and functions
- Remove duplicate functions
- Reduce the scope of some variables
- Remove unused file
--HG--
branch : trunk
2010-12-06 02:07:53 +01:00
Rat
e3c6723a8d
Core/SmartAI: added ACTION_RANDOM_MOVE
...
--HG--
branch : trunk
2010-11-20 13:23:29 +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
67fa59fb68
Core/SmartAI: added ACTION_ACTIVATE_TAXI
...
--HG--
branch : trunk
2010-11-19 20:23:08 +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
Rat
8bb215d938
Core/SmartAI: removed depricated WP_LOAD, small fix to run-walk states when escorting, fix for escort invoker range check if no targets set
...
--HG--
branch : trunk
2010-11-16 00:13:47 +01:00
Rat
2ee0fda94e
Core/SmartAI:
...
added ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST
added ACTION_CALL_RANDOM_TIMED_ACTIONLIST
you can now call in random timed action lists (script type 9 aka Script9)
--HG--
branch : trunk
2010-11-07 22:10:11 +01:00
Rat
044c003bdd
Core/SmartAI: added ACTION_CROSS_CAST
...
CasterTargets will cast spellID on all Targets
NOTE: use with caution if targeting multiple * multiple units!
--HG--
branch : trunk
2010-11-07 18:34:04 +01:00
Rat
205736ea84
Core/SmartAI: added TARGET_OWNER_OR_SUMMONER, useful if you have a creature summoned by a spell, you can use Summoner as target
...
--HG--
branch : trunk
2010-11-07 18:02:33 +01:00
Rat
13559bde9f
Core/SmartAI/Typo
...
--HG--
branch : trunk
2010-11-07 17:13:48 +01:00
Rat
9781bba535
Core/SmartAI: added SMART_ACTION_INVOKER_CAST, spellID, castFlags,
...
-if avaliable, last used invoker will cast spellId with castFlags on targets
--HG--
branch : trunk
2010-11-06 23:18:04 +01:00
Rat
3809892987
Core/SmartAI: modified ACTION_EQUIP to use a bitmask to send slot updates (for more blzzlike packet handling)
...
--HG--
branch : trunk
2010-11-06 23:08:33 +01:00
Rat
be25e38144
Core/SmartAI: added SMART_ACTION_SIMPLE_TALK, param1: textID, uses the 'Targets' to say the text,
...
NOTE: textID is relative to the current target's entry OR if target is a player, text is used with source creature's entry
--HG--
branch : trunk
2010-11-05 19:38:43 +01:00
Rat
57661c6d54
Core/SmartAI: swap menuid/actionid params in GOSSIP_SELECT event
...
- use proper sql ORDER to order script lines
--HG--
branch : trunk
2010-11-04 22:08:15 +01:00
Rat
2604250c3c
Core/SmartAI: fixed Gossip Select event
...
--HG--
branch : trunk
2010-11-03 19:39:53 +01:00