Commit Graph
10513 Commits
Author SHA1 Message Date
Rat 9b3ce64f6e Core/SmartAI: added option to reset orientation (use ACTION_SET_ORIENTATION with TARGET_SELF to reset to spawn orientation)
--HG--
branch : trunk
2010-11-05 21:34:26 +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
click 7956bc8c44 Core/Chat: Move some protected members of chathandler to public scope so they can be used by commandscripts (Patch by Paradox)
Closes issue 4653

--HG--
branch : trunk
2010-11-05 07:54:24 +01:00
Shocker 7f4039269c Core/Groups: Fix issue with raid-leader being removed from group on relog/server restart. Updates issue 3142
--HG--
branch : trunk
2010-11-05 00:54:17 +02: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
Shauren f658176df8 Core/Spells: Enchanting items using a vellum is no longer possible in trade
Closes issue #2990.

--HG--
branch : trunk
2010-11-04 21:59:27 +01:00
Rat 54b11cce01 Core/SmartAI: store event invoker when available, and use it for Invoker target
note: dont forget to call script_reset when script is over!

--HG--
branch : trunk
2010-11-04 19:56:39 +01:00
click cf475e75ca dep/ace: fix the config-test macro
--HG--
branch : trunk
2010-11-04 06:08:24 +01:00
click 9b16ee203f Dep/ACE: Upgrade ACE -library to 5.8.3
--HG--
branch : trunk
2010-11-04 05:30:29 +01:00
Rat 2604250c3c Core/SmartAI: fixed Gossip Select event
--HG--
branch : trunk
2010-11-03 19:39:53 +01:00
Rat c9cf2f059f Core/AI: delay all AI()->Respawn() hooks by 1 server tick, this way when creatures are just got created they will successfully find other objects in scripts at spawn time
--HG--
branch : trunk
2010-11-03 18:33:47 +01:00
Rat 4747c5f820 Core/SmartAI: fixed EVENT_RANGE handling, and limited it to only creature scripts
--HG--
branch : trunk
2010-11-03 17:25:46 +01:00
Shauren 58bc1194d2 Scripts/Icecrown Citadel: Fixed Festergut casting Gastric Bloat too often, patch by bytewarrior
Closes issue #4633.

--HG--
branch : trunk
2010-11-03 16:48:40 +01:00
Shauren f2fdcdf8f3 Core/Scripts: Added enum for generic script texts, fixed one broken text
Scripts/Icecrown Citadel: Blood-Queen Lana'Thel will no longer spawn for Blood Princes intro if they were already killed

--HG--
branch : trunk
2010-11-03 16:44:34 +01:00
Rat 6f748a76a1 Core/SmartAI: use BaseObject for guid based targeting if available
--HG--
branch : trunk
2010-11-03 16:40:12 +01:00
Spp 6b6d992d55 Core/Dungeon Finder: Fix 'unknown' player names after group being formed and teleported to dungeon
Original Patch by danik
Closes issue 3846

--HG--
branch : trunk
2010-11-03 14:21:59 +01:00
Rat 9df4af80f4 Core/SmartAI: added script type 9 (TimedActionList)
- interrupt spells when entering combat
- fixed reset of timers
- added npc flag modify actions
- added action to call a TimedActionList, default options are: process only OOC and resume after combat

--HG--
branch : trunk
2010-11-03 14:10:16 +01:00
Spp afb3e790de Core/Scripts: add example_commandscript as an example of how to use commandscripts to add your own commands to the core
Patch by Paradox
Closes issue 4630

--HG--
branch : trunk
2010-11-03 08:44:03 +01:00
Spp 43a5a3ced1 Core/Scripts: Cached command definitions at first use to allow dynamic commands take security levels and help text from the database.
Core/Scripts: Removed unused function related to executing dynamic commands.

Patch by Paradox

--HG--
branch : trunk
2010-11-03 08:35:48 +01:00
Spp 38ae2062d9 Core/Scripts: Changed chat command handlers to take ChatHandler* as an argument, instead of as 'this'.
Fixes commandscripts so it can be used to add custom commands without editing chat.h, chat.cpp or levelX.cpp files.

Patch by Accel
Closes issue 4629

--HG--
branch : trunk
2010-11-03 08:30:40 +01:00
Rat 51f17678de Typo O.o
--HG--
branch : trunk
2010-11-02 17:47:47 +01:00
Rat f27b6f6097 Core/SmartAI: do not report not used smart scripts as error
--HG--
branch : trunk
2010-11-02 17:29:36 +01:00
runningnak3d e95eb72603 Core/Scripts/ToC5: Set proper vehicle IDs in script to go with recent exploit
fix. Thanks again to Aokromes

--HG--
branch : trunk
2010-11-01 14:24:45 -06:00
Rat 7ed5f93aed Core/SmartAI: use Target types where possible, instead of simple self target
- removed some obsolete comments
- added errorlog if a special action uses a non-smart scripted creature

--HG--
branch : trunk
2010-11-02 13:13:54 +01:00
Rat b3b048449b Core/SmartAI: renamed reload command to reflect funtion name
--HG--
branch : trunk
2010-11-01 16:10:30 +01:00
Rat d568fcf273 Core/SmartAI: remade 'Say' handler, more simple, more usable, you can now script multiple npc conversations from one script
-also added 'entry' to text_over event

--HG--
branch : trunk
2010-11-01 11:00:53 +01:00
Rat e68c149e69 Core/ConditionMgr: use chamer/owner player for spell condition check where avaliable
--HG--
branch : trunk
2010-10-31 22:37:54 +01:00
Rat 96df97c5ae Core/SmartAI: fix logic in HAS_AURA event
note: copy-paste from eai is bad idea ..

--HG--
branch : trunk
2010-10-31 22:11:56 +01:00
Rat 32f088558d Core/ConditionMgr: added two new conditions NEAR_CREATURE and NEAR_GAMEOBJECT
--HG--
branch : trunk
2010-10-31 22:10:31 +01:00
Rat 9a02ae79c9 Core/Conditions: fixed a typo in logging
--HG--
branch : trunk
2010-10-31 15:39:09 +01:00
Rat 75c065637c Core/SmartAI: added new target type (invoker's vehicle)
-added new action: ENTER_VEHICLE (79), param1: seatID

--HG--
branch : trunk
2010-10-31 14:21:35 +01:00
Rat b6c8158f88 Core/Vehicles: temp fix visibility issues when creatures enter a vehicle, this also fixes the 'Ride Vehicle' type spells
note: isntance scripts using spell+EnterVehicle() hacks should be updated

--HG--
branch : trunk
2010-10-31 14:19:14 +01:00
Machiavelli 05a292633c Core/DBLayer:
- Fix a race condition in KeepAlive() when connections are using mysql context when ping is called.
- Don´t wait for locks to be released on a connection when pinging, this means the connection is not idle and locking is redundant.

Patch by admin@****.net

Fixes issue #4599

--HG--
branch : trunk
2010-10-31 10:55:29 +01:00
Rat c9bbe85e48 Core/DB: changed some errors to DB errors
--HG--
branch : trunk
2010-10-30 23:06:05 +02:00
Spp c9b6f44e9f Core/Groups: Add some checks to prevent a crash with Invites
Core/Groups: Use proper size with SMSG_GROUP_DECLINE Opcode

Fixes issue 4412. (Prevents the crash but the main reason of player being null not solved)

--HG--
branch : trunk
2010-10-29 14:09:25 +02:00
Shocker 7b35d0b2e8 Core/Spells: Deathfrost weapon enchantment shouldn't scale with spellpower
--HG--
branch : trunk
2010-10-29 00:21:39 +03:00
Shauren 618afa3656 Scripts/Icecrown Citadel: Fixed possible crash in Shadow Prison aura script
--HG--
branch : trunk
extra : rebase_source : 6eb3f49dece9087b4ac82a1cda236ca63ce97c24
2010-10-28 16:55:28 +02:00
runningnak3d bcce517c6d Core/Scripts: Fix exploit in ToC5 where vehicles could be used a
multipassenger mounts anywhere. Thanks Aokromes from reporting

--HG--
branch : trunk
2010-10-27 15:01:29 -06:00
Spp 1d7100b67f Core/Dungeon Finder: Fix a crash when someone leaves the group while a Rolecheck is active
--HG--
branch : trunk
2010-10-28 17:14:18 +02:00
silinoron f1f1823901 Core/SmartScript: Fix a compile error.
Thanks Aokromes for telling me it existed.

--HG--
branch : trunk
2010-10-27 20:03:42 -07:00
silinoron da4c2339bc Core: Add a warning message for those who are using SFMT for random number generation.
Patch and suggestion by Paradox.

--HG--
branch : trunk
2010-10-27 19:51:41 -07:00
Rat afe683aff4 Core/AI: fix debug / nix build
--HG--
branch : trunk
2010-10-27 23:19:35 +02:00
Rat 5cb119e617 Core/AI: implemented SmartScripts System (still beta) not 100% complete
WARNING: Use scripts at own risk. You were warned.
NOTE0: creature, gameobject, areatrigger type scripts should be fully functional
NOTE1: has no effect on any core related stuff if not using any SmartScript
NOTE2: all event/action/etc descriptions can be found in SmartScriptMgr.h

SmartScripts is a reloadable DB-Sript system, with full control for special scripting,
like escorting, following, complex combat handling, pre-stored AI templates(caster, turret, etc) and much more
with a total of 66 events, 78 actions, 22 target types, and can be easily extended

--HG--
branch : trunk
2010-10-27 21:01:47 +02:00
Shauren c9fba03da9 Scripts/Icecrown Citadel: Fixed Gaseous Blight removal on Festergut's death
Scripts/Icecrown Citadel: Added missing in room check for Blood Prince Council
Scripts/Icecrown Citadel: Fixed Professor Putricide facing during phase transitions

--HG--
branch : trunk
2010-10-27 18:46:48 +02:00
Shauren ba6fc58bad Core/Spells: Fixed "not handled custom case" log spam for Sniper Training
--HG--
branch : trunk
2010-10-26 15:36:32 +02:00
Spp 0b4abbb48e Core: Fix some warnings added in recent commits
--HG--
branch : trunk
2010-10-26 11:40:13 +02:00
Rat 23d3f72bcb Core/World?: (forgotten commit) make SessionMap public , can be usaful in some places..
--HG--
branch : trunk
2010-10-25 18:47:30 +02:00
Rat e4c27a2ffa Core/TextMgr: updated with new funtions for future useage
--HG--
branch : trunk
2010-10-25 18:25:21 +02:00
Rat a792e3d67c Core/AI: added Gossip* and Quest* virtual functions to UnitAI, will be used in future system (not all functions hooked yet)
--HG--
branch : trunk
2010-10-25 18:23:45 +02:00
Rat 67346f449a Core/Grids: implemented AllWorldObjectsInRange searcher, will be used in upcoming script engine
--HG--
branch : trunk
2010-10-25 18:13:49 +02:00