Discover-
ed4feec276
Core/SAI: Allow dropping a specific amount of aura charges using SMART_ACTION_REMOVEAURASFROMSPELL (action_param2).
2014-11-02 17:30:44 +01:00
Discover-
beaf778a30
Merge pull request #12990 from Discover-/master
...
Core/SAI: Implement a new action type to make a creature (or targets in ...
2014-09-03 20:12:30 +02: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
Discover-
dae3ae0696
Merge pull request #12328 from Rochet2/onfirstlogin
...
Core: Add loginFirst param to OnLogin hook to allow doing things on firs...
2014-06-21 19:11:22 +02:00
Discover-
dbc97c0fd3
Merge pull request #12280 from MitchesD/commands
...
Scripts/Commands: added option to show flags_extra (.npc info)
2014-06-14 23:17:39 +02:00
Discover-
8f42dd3fab
Merge pull request #12111 from MitchesD/commands
...
Scripts/Commands: added option to show InhabitType in .npc info command
2014-05-24 00:45:06 +02:00
Discover-
80daaf8d43
Core/SAI: SMART_EVENT_IC_LOS is now called when movement in LOS was made while the creature was in combat
2014-05-23 17:11:37 +02:00
Discover-
da50b92cdf
Merge pull request #12050 from Trisjdc/u_liek_fish_questionmark
...
Core/Spells: Fix fishing on areas with liquid data but no valid height
2014-05-12 06:34:52 +02:00
Discover-
71795bf977
Core/Trade: It's no longer possible to fake the amount of gold put into the trade window. It's only visual but still an exploit, allowing scamming.
2014-05-09 17:58:04 +02:00
Discover-
6ecbc03955
Merge pull request #12000 from Dehravor/algalon-big-bang
...
Scripts/Ulduar: Fix crash when Algalon's Big Bang is casted by player
2014-05-04 20:50:04 +02:00
Discover-
91c6c8a911
Merge pull request #11945 from Dehravor/trade
...
Core/Trade: Correction of distance checking
2014-04-27 12:32:32 +02:00
Discover-
9c68103c21
Merge pull request #11938 from Dehravor/inspect
...
Core/Handlers: Add inspect distance and target checks
2014-04-25 15:19:41 +02:00
Discover-
30e6b64551
Merge pull request #11917 from warmech/master
...
Fixed spelling typo in gnomeregan.cpp script.
2014-04-21 19:13:58 +02:00
Discover-
8d97a0e906
Merge pull request #11858 from Dimitro/master
...
.cheat god command should also affect on falling damage.
2014-04-08 16:52:56 +02:00
Discover-
17674182c4
Core/SAI: Allow only creature sources to use the event types SMART_EVENT_DISTANCE_CREATURE and SMART_EVENT_DISTANCE_GAMEOBJECT for now.
2014-03-26 13:50:36 +01:00
Discover-
76641bc7dc
Core/SAI: Only allow SMART_EVENT_TARGET_BUFFED to be used from creature sources.
2014-03-26 13:44:36 +01:00
Discover-
6f1005ad94
Core/Misc: Get rid of whitespaces added in 96e0a7d71f
2014-03-10 06:54:24 +01:00
Discover-
30924211a3
Merge pull request #11568 from Rochet2/VendorChecks
...
Core: Add rest of checks from SendListInventory to BuyItemFromVendorSlot
2014-02-05 10:18:02 +01:00
Discover-
72ed06ddfd
Core/Achievements: Use ACE_OS::localtime_r instead of localtime in my previous commit for thread safety.
...
Thanks to @Shauren
2014-02-05 10:15:43 +01:00
Discover-
f29463cf66
Core/Achievements: Implement criteria type ACHIEVEMENT_CRITERIA_TYPE_ON_LOGIN and criteria requirements ACHIEVEMENT_CRITERIA_REQUIRE_NTH_BIRTHDAY and ACHIEVEMENT_CRITERIA_REQUIRE_KNOWN_TITLE. Fixes anniversary achievements.
...
By @Schmoozerd
2014-02-05 09:34:12 +01:00
Discover-
e59f3f7333
Core/Chat: Fix a new issue caused by c0224dd7ca which would trigger false positives for CHAT_MSG_AFK and CHAT_MSG_DND.
2014-02-02 15:13:53 +01:00
Discover-
c0224dd7ca
Core/Chat: Fix an exploit where it was possible to speak in universal language in say/yell/emote by sending CMSG_MESSAGECHAT using cheats.
2014-02-01 13:27:16 +01:00
Discover-
a242662ae6
Core/Spells: Fix DK Ghoul's damage after ad8eb434c0. I misread 'SpellScript::m_damage' for 'SpellScript::damage'.
...
By @joschiwald
2014-01-31 10:37:55 +01:00
Discover-
ad8eb434c0
Core/Misc: Missing changes and get rid of useless method in acd46085d1
2014-01-30 10:28:05 +01:00
Discover-
6b25c2b414
Core/Gameobjects: Fix an exploit where it was possible to use gameobjects from any distance. Fixes for example picking up the WSG flag from any distance using hacking tools.
2014-01-25 16:59:01 +01:00
Discover-
dcc20a7911
Merge pull request #11508 from Dehravor/talent-wipe
...
Core/SkillHandler: Check if player is using proper NPC on talent reset
2014-01-25 05:39:43 -08:00
Discover-
d7f76f2eda
Merge pull request #11396 from natepizzle/master
...
SpellAuraEffects
2014-01-24 02:32:02 -08:00
Discover-
08bc9da22e
Merge pull request #11499 from Dehravor/taxi-node
...
Core/Taxi: Fix exploit related to unexplored nodes
2014-01-24 02:15:14 -08:00
Discover-
7d8b65b3cc
Core/Chat: Disallow sending CMSG_MESSAGECHAT with CHAT_MSG_SAY, CHAT_MSG_EMOTE or CHAT_MSG_YELL while the sender is not alive.
...
Also replaced all WorldSession::_player calls by 'sender'
By @TakenBacon
2014-01-23 20:22:37 +01:00
Discover-
cb1964770e
Core/Loot: Fix an exploit with CMSG_LOOT using non-creature guids which would allow you to loot despawned chests in some cases.
...
By @Kiddie
2014-01-23 20:09:13 +01:00
Discover-
79ca85da87
Core/Battleground: Fix compile after last pull request.
2014-01-22 08:36:09 +01:00
Discover-
77031c59fb
Merge pull request #10888 from zorix/PR4
...
Core/Battleground:
2014-01-21 21:14:49 -08:00
Discover-
bebb581d2e
Core/SAI: I need more sleep...
2014-01-21 20:01:00 +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
Discover-
9d85d0d928
Core/Misc: Fix compile.
...
Forgot to save file
2014-01-21 10:01:32 +01:00
Discover-
32070669f4
Core/Weather: Weather updates are now sent to all players in the zone instead of the first player it finds in the zone and all players nearby.
...
Thanks to @Nawuko, @Magnifikator and @Shauren
Closes #11380
Fixes #11370
2014-01-21 09:44:48 +01:00
Discover-
f79a8813a0
Merge pull request #11459 from Bonitas/master
...
Core/Spells: Fix proc for spells that should trigger on taken hots
2014-01-20 02:03:22 -08:00
Discover-
3102da5263
Misc/SQL: Rename SQL from fa2616fe4e
2014-01-19 17:05:36 +01:00
Discover-
3802cc2904
Core/Creature: Fix compile and logic in previous pull request. Also implemented UNIT_NPC_FLAG_MAILBOX.
...
Thanks @Shauren
2014-01-19 16:51:53 +01:00
Discover-
f6264169d8
Merge pull request #11299 from Carbenium/MailboxCmd
...
Core/Command: Add mailbox command
2014-01-19 07:29:11 -08:00
Discover-
c7b78a2b4e
Core/Commands: Using the '.gm vis off' command now instantly makes the GM invisible to non-GM players, instead of waiting until Player::UpdateObjectVisibility was called from a different method.
...
Ref. #11467
2014-01-19 14:03:09 +01:00
Discover-
e1f1e0cef5
Core/Misc: Split the calculating of the corpse reclaim delay and sending of SMSG_CORPSE_RECLAIM_DELAY in two different methods.
2014-01-19 13:50:30 +01:00
Discover-
55bde59a92
Merge pull request #10386 from Discover-/Health-Funnel
...
Core/Spells: Health Funnel now always damages the warlock, even if it do...
2014-01-19 04:19:58 -08:00
Discover-
18ab91bd1d
Core/Misc: The timer that indicates how long it takes until the player can reclaim their corpse now starts counting down when the player releases its spirit instead of when they die. Fixes an issue where the 'Accept' button in the reclaim corpse window would already be clickable but have no effect (WorldSession::HandleReclaimCorpseOpcode::L754).
2014-01-19 12:36:51 +01:00
Discover-
735cebf7a3
Core/Commands: The .setskill command is now usable even if the player doesn't already have the skill learned.
2014-01-18 01:05:03 +01:00
Discover-
bbd84d211d
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
2014-01-17 18:44:01 +01:00
Discover-
ebfdeb067f
Core/Spells: Rename Spell::EffectSummonDeadPet with Spell::EffectResurrectPet and get rid of two TODO's that are already done.
2014-01-17 17:54:52 +01:00
Discover-
de7a43a157
Merge pull request #11455 from Dekadencee/fix_void_storage
...
[4.3.4] Core/VoidStorage: Fix SMSG_VOID_STORAGE_CONTENTS structure
2014-01-17 04:49:49 -08:00
Discover-
c1a468365b
Core/Misc: When a player changes its faction its only removed from all its arena teams if cross-faction interaction is turned off.
2014-01-17 08:17:09 +01:00
Discover-
45dc95c8dc
Core/Items: Fix an exploit where the player was able to send CMSG_SET_AMMO with items they didn't have in their bags. Only a visual bug (not sure if it gave bonuses too, which iirc do appear in later expansions).
2014-01-16 20:48:37 +01:00
Discover-
61f45283ef
Core/Misc: Fix an exploit where moving while consuming something that would fade when the player stands up would stay if the player started moving and using the effect at the same time. Thanks to @FrozenSoul and @jildor.
...
Fixes #6271
2014-01-16 20:44:03 +01:00
Discover-
42a365af8b
DB/SAI: Fix a typo for all comments of smart_scripts using SMART_ACTION_INC_EVENT_PHASE ( 9ac96fd702). It now properly prints with how much the phase was incremented, instead of always saying it incremented by zero.
2013-12-21 21:03:29 +01:00
Discover-
9ac96fd702
DB/SAI: Convert 28.236 smart_scripts (almost all, like 20 left behind) to proper commenting. Used this tool: https://github.com/Discover-/SAI-Comment-Converter
2013-12-20 14:19:41 +01:00
Discover-
61c5857fc6
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
2013-12-19 10:50:37 +01:00
Discover-
c5788de8a4
Core/SAI: Fix another memory leak, thanks to @Xter
2013-12-19 10:50:16 +01:00
Discover-
e44e932d4d
Core/SAI: Fix two memoryleaks in my previous commits. Thanks to @Xter for the notice.
2013-12-19 10:28:45 +01:00
Discover-
e5f7beecf5
Core/SAI: Using SMART_ACTION_FORCE_DESPAWN now despawns the given target_type instead of always the creature itself.
2013-12-18 10:06:19 +01:00
Discover-
a0f7fee922
Core/SAI: Fix compile
...
Core/SAI: Don't limit SMART_ACTION_SET_INGAME_PHASE_MASK to unit targets only. Thanks to @Shauren for the notice.
2013-12-17 11:38:29 +01:00
Discover-
154ee466eb
Core/SAI: Using the action_type SMART_ACTION_SET_REACT_STATE now sets the react state of the target_type. Won't break any scripts as all current cases of this action_type have target_type 1 (SMART_TARGET_SELF).
2013-12-17 11:10:23 +01:00
Discover-
1f4d585bef
Core/SAI: In all npc flag related action_types we now check if the target is a creature instead of an unit (creature/player).
2013-12-17 11:06:07 +01:00
Discover-
b5e333255b
DB/SAI: Fix two wrong action_types that would make the creature cast the Death Touch spell on no target (SMART_TARGET_NONE) instead of move to given target_x/y/z/o co-ordinates.
...
The person who wrote this script accidently used action_type 11 (SMART_ACTION_CAST) instead of 69 (SMART_ACTION_MOVE_TO_POS), and since the action_param1 field of SMART_ACTION_MOVE_TO_POS is the motion id (point id given back to SMART_EVENT_MOVEMENTINFORM), it was set to 5. Ironically, the first parameter of SMART_ACTION_CAST is the spell id and it was spell id 5 is Death Touch.
However this script would do nothing because I changed it so that SMART_TARGET_NONE no longer functioned as SMART_TARGET_ACTION_INVOKER in this commit: 9653576cb4 . Before this commit, though, it WOULD cast Death Touch. Fun fun fun.
2013-12-17 10:23:31 +01:00
Discover-
20a22662df
Core/SAI: Using SMART_ACTION_SET_FOLLOW with target_type 0 (SMART_TARGET_NONE) will now stop the following completely. Fixes 6 scripts in a clean TDB already using this functionality even though it wasn't implemented.
2013-12-17 10:12:23 +01:00
Discover-
54b7162f1d
Core/SAI: Make SMART_ACTION_SET_INGAME_PHASE_MASK set the phasemask of the target_type instead of always the source calling the action type.
2013-12-17 09:44:06 +01:00
Discover-
e17af3f203
Core/Quests: Fix an issue where auto-completed quests would not be automatically completed if the quest was added through either the SmartAI action_type SMART_ACTION_ADD_QUEST, the spell effect SPELL_EFFECT_QUEST_START or the opcode CMSG_QUEST_CONFIRM_ACCEPT. Also fixes auto-complete quests in the SAI and opcode case not calling the AI hook.
2013-12-14 19:42:31 +01:00
Discover-
ec8e94c6ac
Core/AI: Fix an issue where the OnQuestAccept hooks were not called for auto-completed quests.
...
Fixes #11304
2013-12-14 19:39:47 +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
Discover-
e74b11b5fb
Scripts/Misc: Fix compile after 755283ac8d
2013-12-10 09:24:28 +01:00
Discover-
eacf961e72
Core/Misc: Fix a compile warning.
...
Closes #11229
2013-11-18 11:18:28 +01:00
Discover-
27fe7d1842
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
2013-11-03 10:36:17 +01:00
Discover-
b98cc11a49
Core/Misc: Fix compile after 316da388d5
2013-11-03 10:36:02 +01:00
Discover-
950ac949cb
DB/SAI: Fix scripts using SMART_TARGET_NONE that were 'broken' by 9653576cb4. 'Broken' is quoted because scripts using SMART_TARGET_NONE are most of the time broken by default anyway.
2013-10-24 06:22:00 +02: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
Discover-
1a6157985c
Core/Misc: Get rid of some useless code
2013-10-21 09:15:17 +02:00
Discover-
3633f62137
Merge pull request #11045 from Baeumchen/patch-1
...
Just, because this typo was annoying...
2013-10-15 03:35:49 -07:00
Discover-
54272e4768
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
2013-10-14 16:56:32 +02:00
Discover-
82eda3244a
Core/Misc: Ugh.. Fix recent commit that broke the OnHeal hook 😥
2013-10-14 16:56:09 +02:00
Discover-
db848f2045
Core/Misc: Fix build after 731b3670fe (again..)
2013-10-12 13:41:00 +02:00
Discover-
ca02411eff
Core/SAI: When the castflags are set to both SMARTCAST_AURA_NOT_PRESENT and SMARTCAST_INTERRUPT_PREVIOUS, we only interrupt the spell if there is actually a spell cast.
2013-10-11 16:57:28 +02:00
Discover-
4d654a885c
Core/Misc: Fix compile after recent pull request...
2013-10-04 12:32:09 +02:00
Discover-
36e6407e24
Merge pull request #10981 from Lillecarl/hookz
...
Implement OnDamage and OnHeal hooks
2013-10-04 02:55:23 -07:00
Discover-
11d9a44508
Core/SAI: Properly implement the second parameter of SMART_ACTION_CALL_TIMED_ACTIONLIST to reflect the wiki (which also makes more sense)
2013-10-01 10:08:05 +02:00
Discover-
80ce30ac7d
Core/SAI: Add 'playerOnly' parameters to SMART_TARGET_CLOSEST_ENEMY and SMART_TARGET_CLOSEST_FRIENDLY. Wiki is updated accordingly.
2013-09-30 10:11:02 +02:00
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