Commit Graph
483 Commits
Author SHA1 Message Date
Subv 26c36ba854 Miscellaneous: Unsigned expressions cant be negative 2012-07-06 20:52:54 -05:00
Subv d4390c171a Fixed build 2012-07-06 20:48:49 -05:00
Vincent-Michael 91cd7109e4 Core/Commands: Convert lookup commands in commandscript 2012-07-06 21:38:18 +02:00
Vincent-Michael f8374fac0b Core/Commands: Convert guild commands in commandscript 2012-07-02 21:57:50 +02:00
Subv 16d4cc7e0b Fixed build 2012-07-01 16:18:11 -05:00
Subv 80898c1d0c Merge pull request #6884 from Vincent-Michael/resetCommand
Core/Commands: Convert reset commands in commandscript
2012-07-01 14:02:59 -07:00
Shauren e0997874f5 Core/SpellScripts: Changed OnUnitTargetSelect hook to OnObjectAreaTargetSelect, it will now work with WorldObject instead of only Units and call it even for empty target lists 2012-06-29 21:53:35 +02:00
kandera 9bf7ee3ee9 fix build #2 2012-06-22 16:31:35 -03:00
kandera e50fa50736 fix build 2012-06-22 15:54:11 -03:00
Vincent-Michael 5de44b3632 Core/Commands: Convert reset commands in commandscript 2012-06-21 23:41:03 +02:00
QAston 8907388059 Merge pull request #6867 from Vincent-Michael/listCommand
Core/Commands: Convert list commands in commandscript
2012-06-21 10:25:33 -07:00
Vincent-Michael 3368e888a1 Core/Commands: Fix some codestyle for a312cd4ba1 2012-06-21 18:49:26 +02:00
Vincent-Michael d3bf4626d0 Core/Commands: Convert list commands in commandscript 2012-06-21 17:21:23 +02:00
Nay 874dff2050 Scripts/Commands: No one likes tabs :( 2012-06-21 01:38:55 +01:00
Nay 7e6273315c Scripts/Commands: Fix non pch build (add missing includes) 2012-06-21 00:30:01 +01:00
Xees a312cd4ba1 Scripts/Commands: Convert character and server commands to commandscript
Closes #6856

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-06-21 00:11:11 +01:00
Vincent-Michael c19f13e6fc Core/Commands: Convert cast commands in commandscript 2012-06-19 20:42:11 +02:00
QAston f90f5b6fb7 Merge pull request #6832 from Xees/master
Scripts/Commands: Update TeleDel command to support id, shift click, or name of teleport location.
2012-06-17 19:33:21 -07:00
Abdollah Hasan b3d99e968f Core/Commands: TeleDel command cleanup. 2012-06-18 05:16:00 +03:00
Abdollah Hasan 32d3e33f87 Core/Commands: Update TeleDel command to support id, shift click, or name of teleport location. 2012-06-18 04:54:50 +03:00
Vincent-Michael 0e8889415d Core/Chat: Convert instance commands in commandscript 2012-06-14 17:33:46 +02:00
Vincent-Michael ab77e597b1 Add function for SetObjectScale
Author: NoFantasy
Source: Mangos
2012-05-26 23:14:57 +02:00
Discover- 70739ec9de Scripts/Commands: Fix compile under Linux (d6d45633c8).
Credits go to @PuniCZ
2012-05-10 13:50:22 +02:00
Kandera 0f3db42ffc Core/Commands: fix build error with non-pch builds 2012-05-09 12:14:31 -04:00
Kandera d6d45633c8 Core/Commands: Add level 3 command for setting npc data. used for testing scripts. 2012-05-09 10:29:06 -04:00
Shocker 83e1e17649 Merge pull request #6008 from cookta2012/troy09
Core/Commands: Some porting and organizing

Moving a commands around eliminating a unnecessary file, and porting the "demorph" command
 * moved the "wpgps" command into the cs_debug.cpp because it seems more fitting
 * organized the "modify speed" commands into a table of their own
 * moved the "gps" command into the cs_misc.cpp
2012-04-23 17:21:42 -07:00
Subv f7e0aedaf0 Fixed broken compile 2012-04-15 09:45:51 -05:00
Subv c7eeb0b59c Scripts/Commands: Make the .modify reputation command only modify the specified reputation (ignore spillovers)
Patch by @ogeraisi
2012-04-15 09:30:34 -05:00
Shauren abed18d695 Core/DBLayer: More type fixes 2012-04-09 17:36:10 +02:00
Shauren ae0a6cde21 Core/DBLayer: More type fixes. 2012-04-07 17:27:40 +02:00
cookta2012 7e793575be Moving a commands around eliminating a unnecessary file, and porting the "demorph" command
* moved the "wpgps" command into the cs_debug.cpp because it seems more fitting
* organized the "modify speed" commands into a table of their own
* moved the "gps" command into the cs_misc.cpp
2012-04-05 17:43:06 -05:00
Nay a92820b51c Core/DBLayer: Correct few more wrong read types (No. 1)
DB/World: Some consistency in the ints "length" field (not really a length)

From A to D world tables verified; missing all the others

int(11) -> int32
unsigned int(10) -> uint32
mediumint(8) -> int32
unsigned mediumint(8) -> uint32
smallint(6) -> int16
unsigned smallint(5) -> uint16
tinyint(4) -> int8
unsigned tinyint(3) -> uint8
2012-03-27 00:43:56 +01:00
Subv 56fac5e1af Memory: Get rid of some memory leaks, converted FormationMgr back to singleton 2012-03-25 09:25:28 -05:00
Nay 192d7d735d Core/DBLayer: Few more type corrections
Closes #5871
2012-03-24 23:05:24 +00:00
leak 12e55a04bb Core/DBLayer: Convert PQuery() queries to prepared statements 2012-03-24 01:25:08 +01:00
leak 847b4366f3 Core/DBLayer: Convert PExecute() queries to prepared statements 2012-03-19 16:48:08 +01:00
Gyx bef1b0c402 Core/Script: Code style.
Signed-off-by: Gyx <2359980687@qq.com>
2012-03-16 19:40:57 +08:00
leak 2a5caef4a6 Revert "Core: more more cleanup" - Build test anyone?
This reverts commit 20cd4c71ee.
2012-03-14 18:51:51 +01:00
thomas33 20cd4c71ee Core: more more cleanup 2012-03-14 17:51:11 +01:00
Machiavelli 03a24a84e4 Core/Units:
- Implement UNIT_FIELD_HOVERHEIGHT (requires DB data). This field, sent in update object packet, will determine the height at which a creature hovers if it has movementflag_hover applied. Note that hovering will now update the server-sided z-coordinate by the value of this field, and that all subsequent positional updates to the client will need to send z coordinate MINUS the hover height offset, or the hoverheight will be visually doubled client side.
- Correct our usage of movementflag_flying, movementflag_can_fly, movementflag_hover and movementflag_disable_gravity (previously levitate), and how they relate to InhabitType in the database. This fixes "flying creatures on steroids" bug (wings flapping too fast), and potentially a lot of visual issues in AI scripts. Note that a lot of scripts still set wrong movementflags, these need to be fixed on a case by case basis.
- Send correct packets for SPELL_AURA_FEATHER_FALL, SPELL_AURA_WATER_WALK and SPELL_AURA_HOVER apply/unapply.
- Send correct packet contents for movement update in Unit::SetSpeed.
- Misc. cleanup in affected scripts.
2012-03-12 00:53:45 +01: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
Shauren f85fdbebe7 Core/DBC: Remove store getters (useless since we don't have scripts as external dll) 2012-03-10 20:53:26 +01:00
frozenarmor 609728a17b Update forgotten copyright-headers for 2012.
Signed-off-by: frozenarmor <venom.victorios@gmail.com>
2012-03-11 00:52:06 +05:00
Spp f495e0efe4 Warning fixes and some random cleanup here and there 2012-03-07 14:09:18 +01:00
Shauren e5d23103f3 Core/Maps
* Corrected liquid type extraction in maps - MCLQ chunk must be parsed together with MH2O (they stack)
* Fixed liquid detection in WMO objects
* Implemented LiquidType.dbc use, players will now get proper auras in special liquids
* Turned off slime damage by default (Naxxramas uses periodic damage aura for this purpose)
* Implemented liquid type overrides basing on area/zone
* Renamed final temp_gameobject_models to GameObjectModels.dtree (the temporary one produced by vmap extractor remains unaffected)

Note: Map and Vmap re-extraction is required
2012-03-07 13:09:35 +01:00
click a153e0ca06 Core: Remove some whitespace and tabs 2012-03-07 00:05:34 +01:00
joschiwald 96a05600c4 Core/Commands: add command to reload locales_creature_text 2012-03-05 23:25:32 +01:00
Machiavelli cbee39a4dc Fix a warning. 2012-03-03 16:23:16 +01:00
Machiavelli d1e4eb0512 Core/Commands: Implement .debug moveflags command. With params you can set MoveFlags and MoveFlagsExtra for targeted unit. Without params it will display the current MoveFlags and MoveFlagsExtra. Useful for debugging upcoming changes. 2012-03-03 16:12:28 +01:00
kaelima b939ea5951 Script/Commands: Some safer code in wp modify 2012-03-01 12:16:06 +01:00