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
Rat
064b3fd2b3
Core/AI: use NullGameObjectAI for gameobjects with ScriptName
...
- use GameObjectAI with Transports too
--HG--
branch : trunk
2010-10-25 18:11:52 +02:00
Rat
b282438198
Core/ConditionMgr: small fix for CONDITION_QUEST_COMPLETE
...
--HG--
branch : trunk
2010-10-25 18:08:50 +02:00
azazel
ff0fdbfbea
Core/Guilds:
...
* on load initialize guild vector with maximum available guild id (to avoid reallocations while loading);
* reserve space for more than one guild when adding guild to guild vector in case when new guild is out of available vector's size (to avoid reallocations for at least 15 next new guilds).
--HG--
branch : trunk
2010-10-25 19:20:39 +06:00
Spp
2e08f94338
Core/Dungeon Finder/Script: Move debug log msg to debug priority
...
--HG--
branch : trunk
2010-10-25 13:00:34 +02:00
Spp
3ac979e624
Core/Dungeon Finder: Fix a crash in UpdateProposal (added in 66a8af8214)
...
Closes issue 4564
--HG--
branch : trunk
2010-10-25 12:21:42 +02:00
Shauren
8ab5a04b7f
Core/Spells: Fixed coefficient of Frostbolt, by A.Metaphysical.Drama
...
Closes issue #4386 .
--HG--
branch : trunk
2010-10-25 12:17:26 +02:00
Spp
ae38b0441b
Core/Opcodes: Change status type of CMSG_UPDATE_PROJECTILE_POSITION Opcode to unhandled
...
--HG--
branch : trunk
2010-10-25 12:00:54 +02:00
Spp
d7bcc25e38
Core/Map: Reenable error msg to find missing graveyards and use a better msg when a zone id is not found
...
--HG--
branch : trunk
2010-10-25 11:47:23 +02:00
Spp
f381e74c10
Core/Map: Add log to find bad zone ids when trying to find a graveyard
...
--HG--
branch : trunk
2010-10-25 11:28:42 +02:00
Spp
b1d759e79f
Core/Dungeon Finder: Fix proposal window now being removed after a proposal success
...
--HG--
branch : trunk
2010-10-25 11:26:22 +02:00
Spp
18de18e7b9
Core/Dungeon Finder: Prevent a crash in Leave by checking Player or Group exist
...
--HG--
branch : trunk
2010-10-25 11:26:01 +02:00
Spp
739f336618
Core: Fix warnings
...
--HG--
branch : trunk
2010-10-25 11:25:42 +02:00
Shauren
4acf6012a8
Scripts/Pit of Saron: Added script for Overlord's Brand aura
...
--HG--
branch : trunk
2010-10-25 11:23:29 +02:00
Shauren
b96a206dc3
Core/Scripts: Moved OnPlayerLogout hook call before removing player, fixes crashes in scripts using this hook
...
--HG--
branch : trunk
2010-10-25 11:17:17 +02:00
Shauren
42065a236e
Core/Scripts: Moved HealReceived from CreatureAI to UnitAI and added HealDone and removed creature-only restriction
...
--HG--
branch : trunk
2010-10-25 11:12:47 +02:00
Shauren
4f5a60c487
Core/Scripts: Moved DamageDealt and DamageTaken down from CreatureAI to UnitAI
...
--HG--
branch : trunk
2010-10-24 22:12:35 +02:00
Spp
6d849ca34c
Core/Dungeon Finder: revert 5f4b58ea4bc5 (Do not allow 1 member groups)
...
- Last member in dungeon not being kicked will be handled in other way
--HG--
branch : trunk
2010-10-25 07:36:26 +02:00
Spp
3fc2d414b1
Core/Dungeon Finder: Use scripts to interact between groups and LFG
...
--HG--
branch : trunk
2010-10-25 07:29:53 +02:00
Spp
4cd2431cd7
Core/Dungeon Finder: Redo Find algorithm to select one proposal (not all and later pick one)
...
--HG--
branch : trunk
2010-10-25 07:16:46 +02:00
linencloth
9b8a457aeb
Core/DBLayer: Optimize creature formation loading
...
--HG--
branch : trunk
2010-10-25 02:32:33 +02:00
linencloth
2d692e9e87
Core/DBLayer: Optimize waypoint script loading
...
--HG--
branch : trunk
2010-10-25 02:31:19 +02:00
linencloth
3742e8ddec
Core/Transport: Prevent creature passengers from teleporting to an invalid grid.
...
--HG--
branch : trunk
2010-10-25 02:30:50 +02:00
click
910264070c
Core/OpenPVP: Fix Outdoor PVP objectives in Eastern Plaguelands - patch by retriman, converted by D_Skywalker
...
--HG--
branch : trunk
2010-10-25 01:51:48 +02:00
click
989f696d1e
Core/Scripts: Fix chest respawn exploit in Hellfire Rampart - origjnal fix by Gyullo (thanks)
...
--HG--
branch : trunk
2010-10-25 01:39:18 +02:00
click
b3f60aee2d
Core/Scripts: Fix non-PCH compile
...
--HG--
branch : trunk
2010-10-25 01:22:00 +02:00
Shauren
ae58481c21
Core/Entities: Remove circular dependencies from GameObject headers, fixes *nix compile
...
--HG--
branch : trunk
extra : rebase_source : bcedd4aed81ad6fb72a13607cf954c11356bbfcc
2010-10-24 22:03:53 +02:00
Rat
5eb8ea2a5d
Core/ConditionMgr: added CONDITION_QUEST_COMPLETE, conditionValue1: questiID, true if player has the quest in the questlog as 'completed'
...
--HG--
branch : trunk
2010-10-24 21:44:58 +02:00
Shauren
88ae092744
Core/Quests: Use honor multiplier as base for calculating honor rewards, not the amount of kills (fix by Nay)
...
--HG--
branch : trunk
2010-10-24 21:32:26 +02:00
Shauren
d03aeab9ad
Scripts/Icecrown Citadel: Added Blood Prince Council script
...
Scripts/Icecrown Citadel: Festergut will not cast Vile Gas on melee targets if there are at least 3 (25 man: 8) ranged targets
Scripts/Icecrown Citadel: Festergut and Rotface gates will close with delay (when Putricide reaches the balcony)
Scripts/Icecrown Citadel: Replaced ASSERT(instance) with code disabling the AI if not inside instance
Core/Spells: Fixed TARGET_DEST_TARGET_RANDOM usage
Core/Scripts: Extended DamageDealt in AI to accept damage type as 3rd parameter
Scripts/Quests: Fixed quest "Unholy Infusion" (24749)
--HG--
branch : trunk
2010-10-24 21:27:02 +02:00
linencloth
07fa1bcbdf
Core/Creature: Implement FarTeleportTo (teleport to an other map)
...
Core/Transport: Cleanup and optimize transport and passenger handling
- Only transports will be active objects
- Reduced cpu and memory usage
- Using FarTeleportTo for creature passengers at transport teleportation
- Creatures won't be recreated on teleport
--HG--
branch : trunk
2010-10-24 02:55:50 +02:00
Supabad
153352aac0
More missing script_texts by Tome
...
- Master Kelerun Bloodmourn
- fix typo in previous commit
- fix typo in script and apply some standards
--HG--
branch : trunk
2010-10-24 00:46:21 +02:00
Rat
62739ed26f
Core/AI: implemented basic class for GameObjectAI
...
--HG--
branch : trunk
2010-10-23 23:31:37 +02:00
Shauren
e484a63622
Core/World: Changed corpse clean timer to 20 minutes (down from 3 hours)
...
--HG--
branch : trunk
2010-10-23 11:25:51 +02:00
click
f16c94701d
Core/World: Remove autobroadcast notifications from console (only showing when viewed in loglevel 3 (debug)) + some codestyle changes
...
--HG--
branch : trunk
2010-10-22 22:56:42 +02:00
Rat
e67f04d362
Core/ConditionMgr: added CONDITION_SOURCE_TYPE_VEHICLE_SPELL, sourceGroup=creatureTemplate.entry, sourceEntry=spellEntry
...
--HG--
branch : trunk
2010-10-22 22:45:11 +02:00
click
dc9708d09f
Core/Guild: And fix a typo... *sigh*
...
--HG--
branch : trunk
2010-10-22 21:51:19 +02:00
click
67d5708bf0
Core/DBLayer: Use DirectPExecute, NOT DirectExecute, since we're actually using parameters in the queries - my bad!
...
--HG--
branch : trunk
2010-10-22 21:38:22 +02:00
click
12289c872e
Core/DBLayer: Use DirectExecute instead of PQuery on some instance-saving queries
...
--HG--
branch : trunk
2010-10-22 21:08:27 +02:00
click
de0a8f9777
Core/Guilds: Adjust size of guildMap by 1 element, not 512 (fix by machiavelli)
...
--HG--
branch : trunk
2010-10-22 21:07:11 +02:00
click
a1319a2020
Core/Unit: Revert r457923c3f3 - combattimer handling from that revision is wrong, as it dictates wether not a creature will actually enter combat or not - with
...
the earlier change this ment that any creature entering combat would not properly continue if target moved.
--HG--
branch : trunk
2010-10-22 03:59:08 +02:00
click
caf8bbbe0a
Core/Grid: Fix infinity-loop in grid loading (patch by SilverIce)
...
--HG--
branch : trunk
2010-10-22 03:39:27 +02:00
click
cfa052d429
Core/Spells: Explicitly set target-effects to hot ONLY owner/caster and his/her pet for Hunter T10 Set bonuses and the Warlock T10 4P bonuses
...
Thanks to tenma for the mini-discussion on the subject.
--HG--
branch : trunk
2010-10-22 01:33:47 +02:00
click
30542a442d
Core/PetHandler: Implement CMSG_PET_STOP_ATTACK - thanks to zergtmn for the original code
...
--HG--
branch : trunk
2010-10-22 01:10:39 +02:00
click
78f506be8a
Scripts/VioletHold: Give Ichiron adds the proper visual model (give them the proper aura) - fix by Gyullo / Manuel
...
Closes issue 3288
--HG--
branch : trunk
2010-10-21 22:17:04 +02:00
click
8ac91ada22
Core/Unit: Fix leave combat timer - original patch by Laise
...
Needs further testing, give feedback if wrong.
--HG--
branch : trunk
2010-10-21 22:09:45 +02:00
click
ea847598d0
Buildsystem: Add initial support for Intel C++ Compiler (patch by Leak)
...
Note: Intel C++ Compiler for Windows is not supported in this change
Closes issue 4361
--HG--
branch : trunk
2010-10-21 22:00:12 +02:00
click
03c6c34a4b
Core/Spells: Fix a small proc-issue with Warlpcl T10 4P bonuses (Devious Minds)
...
Same functionality as for 70728 (Exploit Weakness) - thanks to Svetilo for the heads up
--HG--
branch : trunk
2010-10-21 21:18:19 +02:00
click
e2dbc2e53a
Core/Spells: Fix a small proc-issue with hunter T10 set bonuses (Exploit Weakness)
...
(original fix by Dr.Tenma)
Comment issue #4362
From DBCs TargetA[0] is already set as TARGET_UNIT_PARTY_CASTER, which maps to TARGET_UNIT_CASTER,
so it should be enough to explicitly target the casters pet in this case, ie. just doing
spellInfo->EffectImplicitTargetB[0] = TARGET_UNIT_PET; - feedback on this required.
--HG--
branch : trunk
2010-10-21 21:05:29 +02:00
click
34eed2de3f
Core/Scripts: Fix menu clearing in onGossipSelect()-sections for some scripts (including examples) - patch/fix by Paradox
...
Closes issue 4524
--HG--
branch : trunk
2010-10-21 20:12:33 +02:00
linencloth
168a085723
Core/Guilds: Fix a crash
...
--HG--
branch : trunk
2010-10-21 17:15:13 +02:00
linencloth
d9d1ec3670
Core: optimize string splitting
...
- Mainly affects item loading performance
- Reduces guild loading time a lot
--HG--
branch : trunk
2010-10-21 16:56:51 +02:00
Supabad
f275f8b4b5
More missing script_texts fixed by aokromes
...
--HG--
branch : trunk
2010-10-21 11:02:46 +02:00
click
88f81d80a4
BuildSystem: Add XCode specific compiler handling in the OSX compile-instructions (_BUILD_DIRECTIVE gave error)
...
Update issue #4368
OSX/XCode compilation is not "fixed" as such untill a newew release of G3D is sorted. This is worked on from the G3D developers, and known.
--HG--
branch : trunk
2010-10-20 16:35:17 +02:00
Spp
8996a10f6c
Core/Groups: Move OnGroupChangeLeader so it could be triggered when a leader leaves a group
...
--HG--
branch : trunk
2010-10-19 19:17:36 +02:00