Commit Graph
100 Commits
Author SHA1 Message Date
Discover- a5c248b60f Core/SAI: Get rid of unused parameter 'storageId' (third) in SMART_ACTION_SUMMON_CREATURE. This means the 4th parameter (actionInvoker 0/1) must move back one parameter. On a clean TDB there is not a single case of this parameter being used.
Updated wiki accordingly.
2013-09-25 11:46:51 +02:00
Discover- a0db0728f2 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2013-09-23 16:47:47 +02:00
Discover- 9653576cb4 Core/SAI: Using SMART_TARGET_NONE no longer works the same way as SMART_TARGET_ACTION_INVOKER but rather return NULL instead.
Fixes #10908
2013-09-23 16:47:22 +02:00
Discover- 69b0a009c4 Core/SAI: Make SMART_ACTION_RANDOM_MOVE also work with SMART_TARGET_NONE and non-creature targets (if a non-creature target_type is specified and no creature target was found, the action is fired at the source)
Ref. #7431
2013-09-21 11:21:29 +02:00
Discover- 926edaf49d Tabs to spaces... 2013-09-04 14:07:27 +02:00
Discover- 9761affc8d Core/SAI: Make SMART_TARGET_OWNER_OR_SUMMONER also work for creatures summoned by spells 2013-09-04 09:35:21 +02:00
Discover- 8ba8190773 Core/SAI: Allow using SMART_ACTION_SET_HOME_POS with multiple target types 2013-09-01 13:56:35 +02:00
Discover- 7d7fc7b662 Core/SAI: Also use loot recipient for SMART_ACTION_CALL_KILLEDMONSTER when target is SMART_TARGET_SELF (used in four cases in a clean TDB which will be fixed by this) 2013-09-01 13:44:08 +02: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
Discover- 77f1d3a328 Core/Misc: Implement CMSG_SET_TAXI_BENCHMARK_MODE to toggle PLAYER_FLAGS_TAXI_BENCHMARK based on arguments. To enable/disable this, call '/script SetTaxiBenchmarkMode(1)' (1 = on, 0 = off). Basically debugs the taxi flight and outputs min, max and avg FPS during flight. Automatically toggled off when flight ends. 2013-08-17 14:17:38 +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
Discover- 3d1c549aa4 DB/EAI: Fix some typos in EAI scripts
We are updating EAI scripts so the conversion to SAI is correctly done
2013-08-11 16:02:17 +01: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- 488128bada DB/EAI: Fix unit_field changes, outdated since initial 3.x versions 2013-08-10 16:31:52 +01: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
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
Discover- d87b0fff2f Core/SmartAI: Allow SMART_ACTION_SET_ACTIVE to take a parameter for on/off (true/false). Required for upcoming EAI to SAI conversion (https://github.com/Discover-/EventAI-to-SmartAI) 2013-08-07 02:41:58 +02:00
Discover- 233a154e77 Core/Misc: Update const casts of ToBattlegroundX to use reinterpret_cast as well. 2013-08-06 17:30:23 +02:00
Discover- 7f744de746 Core/Misc: Implement reinterpret casts for all battleground classes and use them. 2013-08-06 13:26:52 +02:00
Discover- 4bb49378fc Core/Items: Fix an exploit where players would be able to reset the cooldown of items to the equip cooldown (30 seconds) when unequipping, equipping and then relogging. 2013-08-04 23:10:21 +02:00
Discover- 8c46681b44 Core/LootMgr: Fix a little logging mistake on startup to prevent confusion. 2012-07-07 17:14:57 +02:00
Discover- 5edeb06f66 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-07-02 17:34:07 +02:00
Discover- f454b6722c Core/Battlegrounds: Don't reward killing blows if the killer is also the victim. Reason could be stuff like warlock's Hellfire spell or fall damage. 2012-07-02 17:33:17 +02:00
Discover- d5d742924a Merge pull request #6937 from w1sht0l1v3/stormpeaks
DB/SAI: Fix Quest 12828 (Ample Inspiration).
2012-06-25 15:05:27 -07:00
Discover- 92bcddfcbc Merge pull request #6887 from Vincent-Michael/scriptLoader
Core/Commands: Add missing scriptLoader for d3bf4626d0
2012-06-21 14:46:42 -07:00
Discover- e190a202ca Core/CreatureAI: Implement an OnSpellClick hook instead of the ugly way that uses DoAction with EVENT_SPELLCLICK.
Core/SmartAI: Implement SMART_EVENT_ON_SPELLCLICK. Parameter is the clicker.

If someone could update the wiki accordingly for SAI I would appreciate that. Thanks to @Shauren for some help!
2012-06-19 00:07:20 +02:00
Discover- 19dbfbeb62 Core/SAI: Fixed a mistake in SMART_TARGET_INVOKER_PARTY which made it add the same player to the targetlist twice if there was a group. 2012-06-04 17:20:40 +02:00
Discover- 1b77fd45fa Core/SAI: Revert SMART_ACTION_SET_STAND_STATE from 013fe44b92, can be done with SMART_ACTION_SET_UNIT_FIELD_BYTES_1. 2012-05-30 01:00:55 +02:00
Discover- 154a030a68 Core/SAI: Fix previous commit. Thanks Shauren for notifying. 2012-05-29 12:29:10 +02:00
Discover- 013fe44b92 Core/SAI: Implement SMART_ACTION_SET_RANGED_MOVEMENT (79) and SMART_ACTION_SET_STAND_STATE (101). Updated wiki accordingly. These were required in order to properly be able to convert EventAI to SmartAI. 2012-05-29 12:19:46 +02:00
Discovered f4c8f6ed73 DB/SAI: Add SAI for the Chicken Escapee 2012-05-23 11:28:50 +02:00
Discover- 5057a8156d Scripts/Quests: Fix compile from 0ecd9e72d0 - sorry guys.
Thanks @Vincent-Michael.
2012-05-10 13:52:22 +02:00
Discover- 70739ec9de Scripts/Commands: Fix compile under Linux (d6d45633c8).
Credits go to @PuniCZ
2012-05-10 13:50:22 +02:00
Discover- 0ecd9e72d0 Scripts/Quests: Script quest Leave Nothing to Chance.
Closes #1863
Closes #3087
Closes #2061
2012-05-10 13:43:40 +02:00
Discover- 7a6314595a Database/Quests: Script quest See On The Other Side.
Closes #4174
Closes #3340
Partly closes #5200
2012-05-10 13:27:28 +02:00
Discover- 4aa2032cd4 Database/Errors: Fix another SQL error from b5ff163354
👎
2012-05-10 13:15:09 +02:00
Discover- fdc4f67921 Database/Quests: Script quest Arelion's Mistress.
Closes #3120
2012-05-08 00:10:09 +02:00
Discover- b72617a77b Merge pull request #6394 from Amit86/patch-1
[Typo] Fix log typo with spell_group at SpellMgr.cpp
2012-04-30 06:45:45 -07:00
Discover- bf0d001cd3 DB/Misc: Fix start-up errors and non-working SmartAI from 61bc8e1c6f.
Thanks @Xanvial for spotting the SAI issue and @joschiwald for the condition start-up errors.
2012-04-25 08:15:05 +02:00
Discover- 57e937e171 Merge pull request #6290 from Xanvial/tabard_vendor
DB/SAI: NPC Tabard Vendor
2012-04-22 07:33:45 -07:00
Discover- bc4303d8f9 Merge pull request #6286 from Ramusik/master
boss_doomlord_kazzak improvements
2012-04-21 12:12:07 -07:00
Discover- 11be85a402 Merge pull request #6215 from Vincent-Michael/game_event
[DB/GameEvent] Add missing Game Event - Pilgrim's Bounty
2012-04-16 07:25:46 -07:00
Discover- 01fc695bad Database/Misc: Template updates for Gymer.
Author: Faq

Closes #6089
2012-04-08 13:18:58 +02:00
Discover- b06bb9e505 Merge pull request #6094 from Vincent-Michael/game_event
Db/GameEvent: Fix start_time for Noblegarden and Children's Week
2012-04-07 12:12:14 -07:00
Discover- f7b1edf60d DB/NPC: Mana Beast shouldn't reward XP
Closes #1887
2012-04-01 17:45:43 +01:00
Discover- 512aa8897b Database/Spawns: Spawn some missing creatures.
Closes #5974
2012-04-01 14:54:15 +02:00
Discover- f66087c58c Merge pull request #5975 from GyxTom/master
Core/Script: Code style and some rewriting.
2012-04-01 05:08:04 -07:00
Discover- e77f51df5d Merge pull request #5932 from GyxTom/master
Core/Game: Code style.
2012-03-28 22:50:22 -07:00
Discover- 69c3612cfe Merge pull request #5702 from Gyx/master
Core/Script: Clean-Up in Scripts.
2012-03-13 23:21:32 -07:00
Discover- 5ca27f40cc Merge pull request #5654 from thomas33/master
Update forgotten copyright-headers for 2012
2012-03-11 13:02:45 -07:00
Discover- 410a6a080d Merge pull request #5632 from FrozenSouL/tc_helper
Update forgotten copyright-headers for 2012
2012-03-10 12:14:16 -08:00
Discover- 1776b16773 DB/Misc: Fix SQL of c48a1ad17d 2012-03-04 13:19:47 +01:00
Discover- c48a1ad17d Scripts/Misc: Script entrance areatriggers for Area 52. 2012-03-04 02:45:21 +01:00
Discover- c4fd6b89db Core/SAI: SMART_ACTION_MOVE_TO_POS will now have param1 as PointId. This means you can now (properly) use SMART_EVENT_MOVEMENTINFORM when reaching the point you make the NPC move to.
Wiki is updated accordingly.
2012-03-03 23:41:29 +01:00
Discover- 7a518fd3e0 DB/ATs: Add Botanica and Mechanar instance exits.
Closes #3369
2012-02-11 18:03:45 +00:00
Discover- c8a8b9e174 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-02-04 18:31:30 +01:00
Discover- a0d5bded15 DB/Misc: Fix a start-up error introduced in 5462ee44e7 and fix two typo's also made in 5462ee44e7
By @Malcrom
2012-02-04 18:30:19 +01:00
Discover- b67b75c758 DB/Misc: Correct ending lines in last two commits 2012-01-24 21:36:30 +01:00
Discover- 52132770df Merge pull request #4944 from Souler/script_cleanup
Convert some coded scripts to DB
2012-01-24 12:34:52 -08:00
Discover- 126d3c8339 Scripts/Spells: Script spell Refocus 2012-01-24 21:23:05 +01:00
Discover- 14c9478c93 DB/SAI: Add SAI for Windle Sparkshine - he will now light up Dalaran when night starts in-game
Note: requires 1b2c413933
2012-01-23 23:14:21 +01:00
Discover- 93ecf7104c DB/SAI: Fix the last error on this file, sorry guys 2012-01-22 18:42:50 +01:00
Discover- f0dbea1428 DB/SAI: Correct delete statements in previous commit - thanks @Malcrom 2012-01-22 18:23:12 +01:00
Discover- 6d7a64a5aa DB/SAI: Kill some start-up errors 2012-01-22 17:22:17 +01:00
Discover- 014868fa34 Merge pull request #4913 from Vincent-Michael/sai
Core/SmartAI: Fix target type SMART_TARGET_INVOKER_PARTY
2012-01-21 17:02:19 -08:00
Discover cd968a5d4c DB/SAI: Making Sense of It J.D. Collie SAI
Closes #3682
2012-01-19 09:34:11 +01:00
Discover 677ef4da6d DB/SAI: Ledger from Tanaris Wooden Outhouse SAI
Closes #3683
2012-01-19 09:32:45 +01:00
Discover cd16d465bf DB/SAI: The Dormant Shade: Lillith's Dinner Table SAI
Closes #3684
2012-01-19 09:31:14 +01:00
Discover 6383cc251d DB/SAI: Text for This is Going to be Hard
Closes #3687
2012-01-19 09:04:12 +01:00
Discover 0b9ab3293b DB/SAI: Text for The Escape
Closes #3689
2012-01-19 09:01:33 +01:00
Discover b0aa7f38d6 DB/Quest: remove Special Flags for Seers Relic
Closes #3890
2012-01-19 09:00:08 +01:00
Discover 52697dee0c DB/SAI: Mounting Hodir's Helm
Closes #3708
2012-01-19 08:54:37 +01:00
Discover- be871b2e35 Merge pull request #4799 from Valcorb/master
Updating two headers (were 2010)
2012-01-13 08:49:09 -08:00
Discover- 7684340fe2 DB/SAI: Converted all EventAI for Flightmasters to SAI
Not all flightmasters had EAI so this is also some new AI.
2012-01-12 19:47:34 +01:00
Discover- 09b5902e41 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2012-01-06 21:12:49 +01:00
Discover- a7332bf672 DB/Quests: Give Sai'kkal his invisibility aura so the quest will work blizzlike. 2012-01-06 21:02:18 +01:00
Discover- b3ff576e17 Merge pull request #4678 from daniik/master
Command/Account: fixed crash when creating account from console
2012-01-06 09:38:14 -08:00
Discover- 5a6822174e Merge pull request #4657 from nelegalno/last_attempt_13
Creatures with EAI flag set but no EAI script
2012-01-06 04:35:44 -08:00
Discover- 541b040570 Merge pull request #4658 from nelegalno/last_attempt_12
Fix Captain Vimes questrelation
2012-01-06 04:16:36 -08:00
Discover- 3362ac8c3d Merge pull request #4668 from nelegalno/last_attempt_02
Ogre Heaven fix PrevQuestID by shlomi1515
2012-01-06 04:16:01 -08:00
Discover- 33498924be Merge pull request #4662 from nelegalno/last_attempt_08
Fix Quest 11795, 11887
2012-01-06 04:14:36 -08:00
Discover- 2625de44da Merge pull request #4664 from nelegalno/last_attempt_06
Drowned Guardian & Phylactery Guardian summoned NPC should not give XP
2012-01-06 04:10:19 -08:00
Discover- 43f1715c96 Merge pull request #4665 from nelegalno/last_attempt_05
Fix Report to Gryan Stoutmantle creature_questrelation values
2012-01-06 04:09:50 -08:00
Discover- 8e8cb98842 Merge pull request #4666 from nelegalno/last_attempt_04
Tiger Matriarch Credit have SAI flag but no SAI script
2012-01-06 04:08:58 -08:00
Discover- d5e740c6a7 Merge pull request #4643 from Aokromes/master
Fix typos introduced in 65a427a322
2012-01-05 10:33:50 -08:00
Discover- 3176289024 Merge pull request #4254 from wilds/fix_lightwell
Core/Spells: fix Lightwell (in combat consume charges)
2011-12-26 16:56:33 -08:00
Discover- 3eccebd250 DB/Quests: Script quest Hinott's Assistance.
Closes #3676.
2011-12-27 00:49:47 +01:00
Discover- dbe95e584a DB/Quests: Script quest Scarlet Armies Approach.
Closes #3696.
2011-12-27 00:48:14 +01:00
Discover- c78844ede0 DB/Quests: Script quest Did You Lose This?
Closes #3692.
2011-12-27 00:46:02 +01:00
Discover- 07f75c5878 DB/Quests: Script quest The Torch of Retribution.
Closes #3686.
2011-12-27 00:43:40 +01:00
Discover- e4cb7e3b91 DB/Quests: Script quest The Touch of Zanzil.
Closes #3685.
2011-12-27 00:42:36 +01:00
Discover- 9858831167 DB/Quests: Script quest Freed from the Hive.
Closes #3681.
2011-12-27 00:40:31 +01:00
Discover- 3c98f2f391 DB/Quests: Script quest The Summoning.
Closes #3671.
2011-12-27 00:38:54 +01:00
Discover- 5552cc9e3a DB/Quests: Script quests Enchanted Azsharite Fel Weaponry and Expert Blacksmith! 2011-12-27 00:36:22 +01:00
Discover- 4e73a5a996 DB/Quests: Script quest Therylune's Escape.
Closes #3673.
2011-12-27 00:34:03 +01:00
Discover- 9b8d18e7cd Scripts/Quests: Add a double check in summoning for two of my previous scripts, as well as revert changing WDB data. 2011-12-25 17:17:28 +01:00
Discover- dbcccbbb44 Core/Quests: Add script for quest The Thunderspike.
Closes #4458.
2011-12-25 16:44:55 +01:00
Discover- 949093d36d DB/Quests: Script quests Escape Trough Force & Escape Through Stealth 2011-12-25 02:14:28 +01:00