Commit Graph

215 Commits

Author SHA1 Message Date
QAston
c7ea952a47 Core/Entities: Rename UNIT_FLAG_OOC_NOT_ATTACKABLE and UNIT_FLAG_PASSIVE to UNIT_FLAG_IMMUNE_TO_PC and UNIT_FLAG_IMMUNE_TO_NPC respectively. New names tell much more about what those flags do. 2012-02-03 18:46:05 +01:00
Shocker
08be716ef8 Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_* 2012-02-03 19:02:17 +02:00
Bootz
6c3bdb1f70 Scripts/EasternKingdoms: MoltenCore
* Fixed Enums in defines.
2012-01-26 02:55:23 -06:00
Bootz
74441b12ec Scripts/EasternKingdoms: ScarletMonastery
* Removed trailing white spaces
2012-01-26 02:49:10 -06:00
Bootz
c0cd16e51d Scripts/EasternKingdoms: ScarletMonastery
* Fixed a few derps i missed on last patch
2012-01-26 02:40:15 -06:00
Bootz
2db052b109 Scripts/EasternKingdoms: ScareltMonastery
* Script Standardizations done,
- Removed SD2 Hieroglyphics.
- Removed Hungarian Notations.
- Fixed Enums in Defines.
2012-01-26 02:21:15 -06:00
Bootz
e0930b1a37 Scripts/EasternKingdoms: Blackwing Lair
* Adjusted copyright headers back to '09 these need updated b4 can use 2012
2012-01-25 01:13:07 -06:00
Bootz
79c2390f81 Scripts/EasterKingdoms: Blackwing Lair
* code-style cleanup
* Fixed copyright header
* Fixed defines in enums

todo: make the necessary changes for script_text-> Creature_texts.
2012-01-25 00:39:37 -06:00
Discover
c1cf2db17f DB/SAI: The Missing Diplomat
closes #3700
2012-01-16 12:36:52 +01:00
kaelima
f10e41ee41 Scripts/Trial of the Crusader: Fix crash in MovementInform for Frost Sphere in Anub'arak encounter.
Thanks Vincent-Michael!
Fixes #4834
2012-01-15 20:37:25 +01:00
Machiavelli
dbbac0bdaa Core/Movement: Implement spline movement subsystem.
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc).
Proper implementation of effects such as charge, jump, cyclic movement will rely on it.
However, need improve our states system before.

Technical changes:

* Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation.
* Precission increased. There are no more position desync issues since client's position calculation formulas used.
* Now possible to move by paths with multiple points, send whole path to client.

--
Original author of research and implementation: SilverIce. Massive kudos.
Original port for Trinity (ref #4629) Chaplain and Venugh
With the following incremental fixes during my review:

- Restore flightmaster end grid pre-loading
- Fix uninitialized Creature::m_path_id
- Add missing trinity_string entries for .movegens command
- Fix a bug in WaypointMovementGenerator that would trigger unexpected pausing at waypoints for various amounts of time

Known issues:
- Errors like WaypointMovementGenerator::LoadPath creature XXX (Entry: YYYYY GUID: ZZZZZZ) doesn't have waypoint path id: 0.
This is caused by bad DB data. This commit didn't "break" it.

Do not forget to re-run CMake before compiling.
2012-01-14 15:36:07 +01:00
svannon
b878e68f8a Core/Script: remove unused script 2012-01-13 22:13:10 +01:00
malcrom
03a7f12916 Core/Script: update creature_text for Twilight Corruptor from sniffs
closes #4697
2012-01-08 14:20:11 +01:00
malcrom
57e1972b86 Core/Script: update creature_text for the Paladin Trial Quests in Eversong from sniffs
closes #4699
2012-01-08 13:34:49 +01:00
malcrom
7b86761045 Core/Script: update creature_text for Phizzlethorpe from sniffs
closes #4698
2012-01-08 13:23:54 +01:00
ZxBiohazardZx
b556ac564b Core/Build: fix build 2012-01-08 12:50:15 +01:00
malcrom
ae4d221b3c Core/Script: update creature_text for Vanndar from sniffs
closes #4696
2012-01-08 12:07:12 +01:00
malcrom
4112b2a7d4 Core/Script: update creature_text for Drekthar from sniffs
closes #4693
2012-01-08 11:58:19 +01:00
malcrom
2ba7cfacca Core/Script: update creature_text for Galvangar from sniffs
closes #4694
2012-01-08 11:47:41 +01:00
malcrom
b6f9caff6b Core/Script: update creature_text for Balinda from sniffs
closes #4692
2012-01-08 11:43:35 +01:00
ZxBiohazardZx
c65dec07f8 Core/Scripts: remove call to unexisting class related to b52f381c3e 2012-01-08 11:13:03 +01:00
malcrom
b52f381c3e DB/SAI: convert Blood Knight Dawnstar script to DB
closes #4701
2012-01-08 09:55:34 +01:00
kiper
8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
Spp
3792b470e0 Core/Scripts: Replace rand with urand in most cases (using regexp)
Used: perl -pi -e 's/([0-9]+) \+ rand\(\)\%([0-9]+)/"urand(".$1.", ".($1+$2).")"/ge'
2011-12-28 10:51:16 +01:00
Spp
4fb634f9a5 Fix missing changes from previous merge 2011-12-28 09:16:06 +01:00
Aokromes
559dfe5139 rand() to urand #5 2011-12-28 04:35:51 +01:00
Aokromes
0e18d49f15 rand() to urand #4 2011-12-28 04:33:18 +01:00
Aokromes
b24dfc10cb rand to urand #3 2011-12-28 04:26:30 +01:00
Aokromes
611f9ad419 rand #2 2011-12-28 04:25:25 +01:00
Aokromes
2e8de8cd2b rand() to urand #1 2011-12-28 04:24:31 +01:00
Discover-
f2ad757acd Core/Scripts: Fix quest Heroes of Old.
Closes #3703
2011-12-25 00:43:26 +01:00
Machiavelli
6c03bf9535 Core/Misc: Some random meaningless Engrish to English conversion in a method name because Discovered is too lazy to do it himself. 2011-12-19 22:06:29 +01:00
w1sht0l1v3
b8a0d04acc Scripts/Brd: Fix learning of Dark Iron Smelting. 2011-11-28 16:36:43 +02:00
Shauren
358b33239a Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of the same name in outer scope. from previous commit 2011-11-23 19:17:33 +01:00
Shauren
638693e78f Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.) 2011-11-23 17:55:16 +01:00
Shauren
44693cfa99 Core: Fixed a few warnings and silly typos in scripts 2011-11-23 16:57:08 +01:00
Discover-
5a12fb9964 DB/SAI: Convert quest The Dwarven Spy from scripts to SAI
Closes #2923
Closes #3109
2011-10-23 12:04:33 +01:00
kaelima
be0b2fcf97 Core/Grid:
- Simplified CellArea calculation (Original author: SilverIce)

- Removed unused code in Cell class (Original author: SilverIce)

- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
megamage
c29ff41001 Rename some classes in grid system.
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
Fredi Machado
97142102e0 Core/Misc: Added 'f' after float values 2011-10-17 07:38:27 -03:00
megamage
dc2bdb8e13 Merge pull request #3445 from Bootz/master
Scriptwork/Clean-up (Av,Brd,Brs)
2011-10-12 12:01:05 -07:00
Bootz
99e10e16c5 Scripts/EasternKingdom: Cleanup AV,BRD,BRS
* Fixed codestyle "*c" -> "*creature"
* Removed SD2 Hieroglyphics
* Removed some hungarian notations
* Adjusted Some Alignments (cosmetic)
* Added spaces for "*"->" * " where needed (cosmetic)
* Fixed couple variableNames
DevNote: im sure VN's can be picked at and more found, but this was just a clean-up nothing more.

ToDo:
Alterac Valley -
Core/db: needs spawns in side the final bosses dens fixed and agro ranges corrected.. not blizzlike.

BRD -
Tomb of seven - Learning Smelt Dark Iron if tribute quest rewarded. Missing event.
blackrock_depths.cpp -
Need to rewrite the Jail Break support
Need to remove: npc_dughal_stormwing/npc_marshal_windsor/npc_marshal_reginald_windsor/npc_tobias_seecher if they are handled elsewhere, or get tehm fixed to uncomment them ;)
2011-10-10 16:13:11 -05:00
megamage
d156e066cf Rename "SetPosition" to "UpdatePosition".
Replace CreatureRelocation in scripts with new Creature::SetPosition.
2011-10-10 17:08:01 -04:00
Bootz
5b4c7783c2 REPO: Code-style clean-ups
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go

~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
Shocker
7f89678bcd Merge pull request #3278 from lost-illusion/master
CleanUp
2011-10-07 09:28:10 -07:00
Bootz
96d7a1e970 REPO: code-style clean-up
* Fixed pGuild->guild
* Fixed pGroup->group
* Fixed pOwner->owner
2011-10-07 10:54:53 -05:00
Bootz
f1ccb83dc0 REPO: Code-style change
* Fixed pUnit-unit
2011-10-07 10:48:56 -05:00
unknown
8acf07dbab Random minor code cleanup 2011-09-29 22:35:00 +04:00
Spp
b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
9e517c963b Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*" 2011-09-29 09:32:55 +02:00