Machiavelli
c1445cd475
Fix build with scripts included
2011-02-20 21:07:03 +01:00
Shauren
9c0cd63e93
Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon
2011-01-02 21:33:37 +01:00
Machiavelli
957c69de83
Update copyright note for 2011.
...
Happy new year.
2011-01-01 15:01:13 +01:00
QAston
c8adcc95f9
Core/Unit: Move spell specific code from Unit::CalcAbsorbResist to AuraScripts.
2010-12-30 02:03:46 +01:00
Shauren
79070ca820
Scripts/Serpentshrine Cavern: Fixed "The Lurker Above" achievement and removed hacks for the event
...
--HG--
branch : trunk
2010-12-26 16:35:29 +01:00
linencloth
b150172521
Core/QuestStatus:
...
- Separate rewarded quests from active quests, and store them in a new table to reduce database size
- Drop the no longer needed `rewarded` column from character_queststatus for smaller table size
- Prevent filling the database with dropped quests
- Delete useless records
- Implement queststatus save "queues" instead of states
- Minor optimizations
WARNING: Backup your database!
--HG--
branch : trunk
2010-12-26 04:16:18 +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
82f45966fc
Core/Unit: Renamed addUnitState/hasUnitState/clearUnitState to AddUnitState/HasUnitState/ClearUnitState
...
Core/Vehicles: Allow the vehicle to always damage the passenger (removed unneded dbc hacks from scripts)
--HG--
branch : trunk
2010-12-17 13:43:24 +01:00
Shauren
314376e32c
Scripts: Fixed uninitialized variables, unreferenced parameters and virtual overrides
...
--HG--
branch : trunk
2010-12-14 16:24:59 +01:00
Spp
408fce1de6
Core: Some optimizations
...
- Declare some functions const
- Fix some mem leak
- Fix some resource leak
- Remove unused variables and functions
- Remove duplicate functions
- Reduce the scope of some variables
- Remove unused file
--HG--
branch : trunk
2010-12-06 02:07:53 +01:00
leak
6fe19b5a86
Core/Scripts: Split OnCreatureCreate() and OnGameObjectCreate() into two virtual functions each.
...
Note to scripters: be aware that you will need to hook into the Remove functions if you want to do stuff at GO/creature removal.
Closes issue 5011.
--HG--
branch : trunk
2010-12-05 18:04:10 +01:00
Spp
25ac835507
Core/Groups: Move all function definition from .h to .cpp
...
Core/Groups: Remove Group.h dependency from any .h file
--HG--
branch : trunk
2010-11-29 07:50:31 +01:00
linencloth
8fae0c176d
Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum
...
Also replace some SetVisibility hacks to directly call UpdateObjectVisibility
--HG--
branch : trunk
2010-11-16 01:13:04 +01:00
Shocker
48d90fab32
Misc: Some engrish fixes, thanks to ZxBiohazardZx, closes issue 4740
...
--HG--
branch : trunk
2010-11-14 23:46:34 +02:00
Machiavelli
32ec6b51da
Core/Scripts: Fix Harbinger Skyriss event in Arcatraz.
...
Author: Kuidin1@mail.ru
Fixes issue #4390
--HG--
branch : trunk
2010-11-09 10:51:34 +01: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
8c9501286f
Scripts/Vazruden: Stop the infinite respawning of the lootable chest after the Vazruden fight. (Fix by Leak)
...
Closes issue 4186.
--HG--
branch : trunk
2010-09-27 05:44:50 +02:00
Shauren
e0ffae436c
Core/Quests: Fixed remaining issues with quest crediting (note: previous commits did not introduce issues, only revealed them)
...
Core/DBLayer: Fixed more compile warnings
Core/Spells: Corrected code style from revision 634af79146
Closes issue #3956 .
--HG--
branch : trunk
2010-09-12 19:17:58 +02:00
Shocker
3999444157
Core/Scripts: Use same standard for all GetInstanceScript's, closes issue 3890
...
--HG--
branch : trunk
2010-09-08 11:42:11 +03:00
click
8823a91cdc
BuildSystem/ALL: Remove unused custom code (most are duplicated as in examples)
...
+ remove fileglobbing for scripts (less error-prone)
+ Create proper lists per "scriptsection"
NOTE! This change requires new files (cpp/h) to be MANUALLY ADDED to <type>/CmakeLists.txt
--HG--
branch : trunk
2010-09-05 17:19:41 +02:00
azazel
f500ef201b
Scripts/Texts:
...
* fix script texts in various locations (thanks TerrorBringer for the heads up). Closes issue #2055 . Closes issue #3087 .
* cleanup world_script_texts.sql file (remove spaces, order entries)
Scripts/Misc:
* remove obsolete random seed initialization from scripts
* fix some warnings in scripts
* some cleanup in chat_log.cpp
--HG--
branch : trunk
2010-09-05 02:16:58 +06:00
Shauren
58ce3c77af
Core/Scripts: Revert revision 619ba8b76250 and fix it properly
...
--HG--
branch : trunk
2010-08-31 15:37:29 +02:00
Spp
b5beb1c706
Better way to fix some warnings from rev 621c100eeb.
...
--HG--
branch : trunk
2010-08-31 13:31:38 +02:00
Spp
b9e19572c4
Core: Fix more warnings (very few left under linux 32)
...
--HG--
branch : trunk
2010-08-31 11:39:51 +02:00
Spp
e252b8abe7
Core: Fix more warnings
...
--HG--
branch : trunk
2010-08-30 23:07:14 +02:00
Spp
405f312918
Core: Fix more warnings
...
--HG--
branch : trunk
2010-08-30 15:25:15 +02:00
Liberate
f67441b863
Fixes gossip scripts or points of interests of npc's with a Scriptname assigned to them.
...
This fixes guards in Major cities.
Thanks to Aokromes for testing.
Thanks to click for converting all the scripts to work with this change.
--HG--
branch : trunk
2010-08-29 00:57:51 +02:00
Supabad
6036166716
Core/scripts: core support for escort Mark V is Alive!
...
Thanks to Schmoozerd from sd2
--HG--
branch : trunk
2010-08-26 11:36:26 +02:00
azazel
341e6303ef
Core:
...
* add helping methods for manipulating unit's health and use it where applicable
* fix some conversion warnings and cleanup code (formatting, CRLF, tabs to spaces)
--HG--
branch : trunk
2010-08-26 01:20:57 +06:00
Spp
9e4357c9ad
Core: Fix more warnings
...
--HG--
branch : trunk
2010-08-24 14:44:56 +02:00
azazel
caa3a58213
Core:
...
* add Player::HasEnoughMoney methods to check, whether player has specified amount of money and use new methods where applicable
* fix some signed/unsigned warnings and some typos
--HG--
branch : trunk
2010-08-23 22:58:32 +06:00
azazel
399e35f8f5
Core:
...
* fix "warning C4305: 'initializing' : truncation from 'double' to 'float'" warnings
* fix some other warnings here and there
--HG--
branch : trunk
2010-08-22 23:46:40 +06:00
azazel
2a130e07bf
Scripts:
...
* Fix crash in boss_morogrim_tidewalker script (thanks Toni.Shocker). Close issue #3531
* Small cleanup of code for boss_morogrim_tidewalker (used enum instead of defines, removed warnings and obsolete code)
--HG--
branch : trunk
2010-08-22 13:27:22 +06:00
click
95f0d56077
Core/Scripts: Fix even more scriptbugs from convertion (thanks to Kierkegaard)
...
--HG--
branch : trunk
2010-08-18 20:35:29 +02:00
click
feb71c4b7d
Core/Scripts: Fix some typos in a few scripts - thanks to Kierkegaard
...
Fixes issue 3443
Comment 3446 test if has been sorted now
--HG--
branch : trunk
2010-08-17 10:44:41 +02:00
Machiavelli
075a4525d7
This should be the last of the malfunctioning AI scripts, thanks to click for the list
...
--HG--
branch : trunk
2010-08-14 10:28:45 +02:00
Machiavelli
d5270f9e0d
Globally find & replace InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap) -> InstanceScript* GetInstanceScript(InstanceMap* pMap) const, this makes sure instance scripts get initialized properly and prevents crashes in scripts.
...
NOTE: this either breaks or fixes crlf, have no time to check now.
--HG--
branch : trunk
2010-08-11 21:52:44 +02:00
silinoron
a094d3e281
Properly initialize instance scripts with the appropriate map id to avoid loadup errors.
...
--HG--
branch : trunk
2010-08-09 10:37:28 -07:00
click
abd261b1a1
Replace (CR) character from all converted scripts and replace it with it's proper (LF) counterpart
...
- should fix the "linking scripts" failure (not tested)
--HG--
branch : trunk
2010-08-09 01:52:26 +02:00
Supabad
ebc0821e88
set correct script in class instance the eye,
...
remove line endings in g3dlite\g3d\ray.h
--HG--
branch : trunk
2010-08-08 22:49:20 +02:00
azazel
e5c797cef6
* Fix remaining errors in scripts project
...
* Remove now obsolete ScriptedInstance.h file
--HG--
branch : trunk
2010-08-09 00:56:10 +06:00
click
1f80c7b3c0
Sourcefile sleanups -> tabs to spaces, remove whitespace - also update the cleanupscripts very slightly
...
--HG--
branch : trunk
2010-08-08 19:45:53 +02:00
azazel
590199d8e1
* Rename InstanceData to InstanceScript
...
* Rename *mgr to their new names in scripts project
* Mass convert all the scripts (NEEDS THOROUGH TESTING, because it was done automatically) Please, report bugs on issue tracker.
--HG--
branch : trunk
rename : src/server/game/Instances/InstanceData.cpp => src/server/game/Instances/InstanceScript.cpp
rename : src/server/game/Instances/InstanceData.h => src/server/game/Instances/InstanceScript.h
2010-08-08 22:54:58 +06:00
Supabad
c260b3f778
convert Magtheridons Lair and Shattered Halls to new format
...
--HG--
branch : trunk
2010-08-08 00:49:40 +02:00
Supabad
7ce0a6cf69
convert Blood Furnace to new format
...
--HG--
branch : trunk
2010-08-07 23:17:11 +02:00
Supabad
79b0567a74
convert Hellfire Ramparts to new format
...
--HG--
branch : trunk
2010-08-07 22:45:09 +02:00
Supabad
c787f11de1
convert Botanica to new format
...
--HG--
branch : trunk
2010-08-07 22:06:31 +02:00
Supabad
f8fe880982
convert Tempest Keep The Eye to new format
...
--HG--
branch : trunk
2010-08-07 21:12:35 +02:00
XTZGZoReX
ed4e49a4e7
* OutdoorPvP implementations now reside in the script library.
...
--HG--
branch : trunk
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPEP.cpp => src/server/scripts/OutdoorPvP/OutdoorPvPEP.cpp
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPEP.h => src/server/scripts/OutdoorPvP/OutdoorPvPEP.h
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPHP.cpp => src/server/scripts/OutdoorPvP/OutdoorPvPHP.cpp
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPHP.h => src/server/scripts/OutdoorPvP/OutdoorPvPHP.h
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPNA.cpp => src/server/scripts/OutdoorPvP/OutdoorPvPNA.cpp
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPNA.h => src/server/scripts/OutdoorPvP/OutdoorPvPNA.h
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPSI.cpp => src/server/scripts/OutdoorPvP/OutdoorPvPSI.cpp
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPSI.h => src/server/scripts/OutdoorPvP/OutdoorPvPSI.h
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPTF.cpp => src/server/scripts/OutdoorPvP/OutdoorPvPTF.cpp
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPTF.h => src/server/scripts/OutdoorPvP/OutdoorPvPTF.h
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPZM.cpp => src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp
rename : src/server/game/OutdoorPvP/Zones/OutdoorPvPZM.h => src/server/scripts/OutdoorPvP/OutdoorPvPZM.h
2010-08-07 16:38:22 +02:00
Supabad
31887e6417
convert Arcatraz to new format
...
--HG--
branch : trunk
extra : rebase_source : 9c77e524badeccac0c2adbe68110f741b5a3549b
2010-08-07 14:17:07 +02:00