Commit Graph

56 Commits

Author SHA1 Message Date
leak
73cf793e56 Core/DBLayer: Refactor prepared statement defines Note:
The new format for the middle section is a 3-letter upper case abbreviation of the sql command being executed (select -> SEL, update -> UPD, etc.)
{DB}_{SEL/INS/UPD/DEL/REP}_{Summary of data changed}
2011-12-31 20:14:38 +01:00
Subv2112
c145c67331 Core/SAI: Enabled SMART_TARGET_STORED
Signed-off-by: Subv2112 <s.v.h21@hotmail.com>
2011-12-27 20:23:55 -05:00
Machiavelli
aefbc5701c Core/SAI: Remove an improper value in case switch.. no idea when/how/why that got there, but it's conflicting with recent changes. 2011-12-11 19:04:21 +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
a919265623 Core/DB: Fix character creation in Player::SaveToDB.
And some misc comments/whitespaces
2011-11-26 01:53:44 +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
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
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
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
Shauren
a11bee31c3 Core/SmartAI: Corrected validation check for SAI action summon, type parameter 2011-09-19 14:41:21 +02:00
Nay
fac814c87b Core/SAI: SMART_ACTION_SET_FACTION validation should check FactionTemplate(.dbc) and not Faction. 2011-08-26 17:26:51 +01: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
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
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
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
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
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
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
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
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
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
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
leak
fd694cd232 Streamlining loading functions for server startup
- Added a couple of timer outputs
- Improved code consistency between loading functions
- Progess bars should look and behave similar on all OS now (sLog.outString() is not needed anymore to replace the progress bar in log files)

--HG--
branch : trunk
2010-12-19 17:06:33 +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
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