Commit Graph
968 Commits
Author SHA1 Message Date
w1sht0l1v3 f46982ee7a Scripts: Fix non pch build 2012-09-03 16:15:18 +03:00
w1sht0l1v3 128d99b29b Core/Scripts: Rewrite Cold Hearted quest.
Closes #1758 .
2012-09-03 15:50:08 +03:00
Nay 40c22de0b7 Merge pull request #7587 from acrathos/master
DB/SAI: Thorim and Lok'lira the Crone
2012-09-02 07:47:57 -07:00
Trista 305b8d2d69 Core/Scripts: Improve Wyrmrest Defender gossip
* Added conditions to only show default gossip, if not on quest 12372
* Else show other gossip text
* Add second gossip text on gossip select
* Remove close gossip - after a lot of videos turns out character close it by moving or clicking "goodbye"

Ref #1861
Closes #7594
2012-08-31 14:20:55 +01:00
Santiago 0af00a8283 DB/SAI: Remove Lol'kira the Krone and Thorim cpp scripts, handled by SAI 2012-08-30 23:32:03 -03:00
w1sht0l1v3 20e629d038 DB/SAI: Taking on All Challengers & Defending Your Title 2012-08-31 04:15:04 +03:00
Nay abbb896cfb Core: Fix many "errors"/warnings and coding style (2)
Scripts; also reverted a change to AuthSocket

Errors were found using Cppcheck, open-source static analysis tool
2012-08-30 22:44:03 +01:00
Vincent-Michael 695e64556f Core: Fix warnings and code style 2012-08-27 17:02:38 +02:00
Kandera 59aeef8278 Scripts/Wintergrasp: fix grab passenger spell. 2012-08-27 11:00:30 -04:00
Nay fc16106823 Scripts/Spells: Fix a typo in spell_q12372_cast_from_gossip_trigger and cleanup whitespace 2012-08-27 14:40:12 +01:00
Nay b8bca936e8 Merge pull request #7524 from Trista/master
[Core/Scripts] Defending Wyrmrest Temple
2012-08-27 05:49:47 -07:00
Stefo e0e636577f Core/Scripts: Fix target error
*Forgot to change targets
2012-08-26 14:22:57 +03:00
thesensei cc416592b9 Core/Scripts: Defending Wyrmrest Temple 2012-08-26 02:55:14 +03:00
Vincent-Michael 2041ff2562 Core/Battlefield:
* Fix correct faction for Wintergrasp
* Remove hack for vehicle faction
* Fix gameobject ai for go_wg_vehicle_teleporter
* Fix some warnings and code style
2012-08-24 20:25:18 +02:00
Kandera b11de3eac0 Scripts/Wintergrasp: enable script and add it to spell_script_names 2012-08-23 13:29:54 -04:00
Kandera f6ab6d3fca Scripts/Wintergrasp: fix defender portal teleporting and clean up vehicle teleporter code 2012-08-23 13:21:27 -04:00
Vincent-Michael 9f8ea0da1e Core/Battlefield:
* Update Logs filter
* Fix typo in worldserver config (thx filo)
* Fix some code style
2012-08-21 19:40:21 +02:00
Stalker-Riddick a84ac50f1c Core/Scripts: Improvements to Trial of the Crusader
*Fixed creature_text errors.
*Icehowl now works properly
*Fixed waypoints so creatures don't enter the arena through the wall,
Lich King now spawns at a proper place, after you start a new fight
corpse of a the previous boss despawns (chest also after you start
valkyries).

Closes #7415
2012-08-21 15:19:42 +01:00
Vincent-Michael d11e71b098 Fix more non PCH build and code style 2012-08-20 23:37:33 +02:00
Vincent-Michael 9df6c4dd70 Fix more non PCH build 2012-08-20 23:12:31 +02:00
Kandera b9f60fe56c Core/Wintergrasp: finish implementation for battlefields. this is highly experimental enable at you're own risk. will almost definatly cause issues with the wintergrasp patch floating around 2012-08-20 16:23:24 -04:00
Kandera e4bf9d5cd4 cleanup merge and some unneeded selects in functions 2012-08-20 13:58:58 -04:00
Kandera 87c50a4ec3 Core/Battlefield: specify correct npc for vehicle teleportations. 2012-08-20 13:52:04 -04:00
Kandera d6de7dec34 Core/Battlefield: few more updates to wintergrasp vehicle stuff. 2012-08-20 13:52:02 -04:00
Kandera 483f0a6a4e Core/Battlefield: attempt to fix vehicle counter when vehicle is killed. finish correcting alliance/horde siege engine 2012-08-20 13:52:00 -04:00
Kandera 81ba249c79 Core/Battlefield: correct siege vehicle faction types. attempt to fix vehicle creation cast time. 2012-08-20 13:52:00 -04:00
Kandera aa0ff294d2 Core/Battlefield: Correct previous commit 2012-08-20 13:51:58 -04:00
Kandera 9dd3789719 Core/Battlefield: correct wintergrasp faction for horde (thx kirkita), added grab passenger spell as per sniffs. 2012-08-20 13:51:58 -04:00
Kandera 17e2c3a800 Core/Battlefield: cleanup a magic number 2012-08-20 13:50:51 -04:00
Warpten 094f98d3a9 Battlefield/Wintergrasp:
* Use correct spells on losing and winning factions
* Enums renaming, lowerCamelCase wherever applicable
* Rename some methods and class attributes for them to sound more English and less Engrish or even Frenglish (\o/)
* Use correct spells when trying to build mechanical units at the Workshops.
2012-08-20 13:50:49 -04:00
Kandera d31902d858 Core/Battlefield: Fix issue with previous commit. codestyle cleanup and attempt to fix vehicle issues with worldstates. 2012-08-20 13:49:22 -04:00
Kandera 9c5b1b2bb6 Core/Battlefield: Correctly cast the teleport spell (data from sniffs). codestyle cleanup 2012-08-20 13:49:21 -04:00
Kandera b700f545c5 Core/Battlefield: fix issues with vehicles. return correct vehicle data when using getdata. small cleanups. codestyle 2012-08-20 13:49:19 -04:00
thomas33 7988edda1c Core/Battlefield: Cleanup 2012-08-20 13:49:17 -04:00
thomas33 c44a723ca0 Core/Battlefield: more cleanup 2012-08-20 13:49:17 -04:00
thomas33 7b0a7ef4f3 Core/Battlefield: cleanup 2012-08-20 13:49:16 -04:00
thomas33 2a4b976e41 Core/Battlefield: pPlayer -> player 2012-08-20 13:49:15 -04:00
Manuel Carrasco d7a7a9800b Battlefield: Make sBattlefieldMgr a pointer. By Subv. 2012-08-20 13:48:47 -04:00
Kandera 4c3692cc36 Battlefield/Wintergrasp/Scripts: removed a few unneeded casts. 2012-08-20 13:36:09 -04:00
Kandera 16f2c3a48e merge master into wintergrasp and fix build errors. yay me! 2012-08-20 13:34:04 -04:00
Shocker ff85ebe632 Fix Didn't Stand a Chance achievement 2012-08-20 13:29:52 -04:00
Nay afd9c28d8e - Rename scriptnames to keep naming consistent;
- Template updates and spells to WG vehicles;
- Cleanup SQL files a bit.
2012-08-20 13:29:22 -04:00
Vincent-Michael 302051da3d Core/Scripts: Fixed more uninitialized variables 2012-08-14 23:46:42 +02:00
Vincent-Michael c9f4866648 Scripts/Trial Of The Crusader:
* Fix typo
* Fix creature_text group id for King Varian Wrynn / Garrosh Hellscream
2012-08-14 00:01:39 +02:00
Vincent-Michael d1071d6e81 Scripts/Trial of the Crusader: Convert script_texts in creature_text 2012-08-13 22:15:22 +02:00
Shauren d1ed95faa5 Scripts: Fixed more uninitialized variables 2012-08-13 13:47:51 +02:00
kaelima f92946e128 Core/Misc: Fix some mem-leaks and uninitialized variables. 2012-08-12 20:06:12 +02:00
Shauren 666602e1aa Scripts: Fixed some unitialized variables 2012-08-12 13:56:43 +02:00
kaelima a3adf6a2b9 Scripts/Grizzly Hills: Fix uninitialized variable in npc_venture_co_straggler. minor cleanup 2012-08-11 16:54:08 +02:00
Spp 55ce180f28 Core/Logging: Add Asyncronous logging with Loggers ("What to log") and Appenders ("Where to log") system. Will allow to select to full log some parts of core while others are not even logged.
- Logging System is asyncronous to improve performance.
- Each msg and Logger has a Log Type and Log Level assigned. Each msg is assigned the Logger of same Log Type or "root" Logger is selected if there is no Logger configured for the given Log Type
- Loggers have a list of Appenders to send the msg to. The Msg in the Logger is not sent to Appenders if the msg LogLevel is lower than Logger LogLevel.
- There are three (at the moment) types of Appenders: Console, File or DB (this is WIP, not working ATM). Msg is not written to the resource if msg LogLevel is lower than Appender LogLevel.
- Appender and Console Log levels can be changed while server is active with command '.set loglevel (a/l) name level'

Explanation of use with Sample config:

Appender.Console.Type=1       (1 = Console)
Appender.Console.Level=2      (2 = Debug)

Appender.Server.Type=2        (2 = File)
Appender.Server.Level=3       (3 = Info)
Appender.Server.File=Server.log

Appender.SQL.Type=2           (2 = File)
Appender.SQL.Level=1          (1 = Trace)
Appender.SQL.File=sql.log

Appenders=Console Server      (NOTE: SQL has not been included here... that will make core ignore the config for "SQL" as it's not in this list)

Logger.root.Type=0            (0 = Default - if it's not created by config, server will create it with LogLevel = DISABLED)
Logger.root.Level=5           (5 = Error)
Logger.root.Appenders=Console

Logger.SQL.Type=26            (26 = SQL)
Logger.SQL.Level=3            (2 = Debug)
Logger.SQL.Appenders=Console Server SQL

Logger.SomeRandomName.Type=24 (24 = Guild)
Logger.SomeRandomName.Level=5 (5 = Error)
Loggers=root SQL SomeRandomName

* At loading Appender SQL will be ignored, as it's not present on "Appenders"

* sLog->outDebug(LOG_FILTER_GUILD, "Some log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomName is found but it's LogLevel = 5 and Msg LogLevel=2... Msg is not logged

* sLog->outError(LOG_FILTER_GUILD, "Some error log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomeName is found with proper LogLevel but Logger does not have any Appenders assigned to that logger... Msg is not logged

* sLog->outDebug(LOG_FILTER_SQL, "Some msg related to SQLs")
  - Msg is sent to Logger SQL (matches type), as it matches LogLevel the msg is sent to Appenders Console, Server and SQL
    - Appender Console has lower Log Level: Msg is logged to Console
    - Appender Server has higher Log Level: Msg is not logged to file
    - Appender SQL has lower Log Level: Msg is logged to file sql.log

* sLog->outDebug(LOG_FILTER_BATTLEGROUND, "Some msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). As Logger has higher LogLevel msg is not sent to any appender

* sLog->outError(LOG_FILTER_BATTLEGROUND, "Some error msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). Msg has lower LogLevel and is sent to Appender Console
    - Appender Console has lower LogLevel: Msg is logged to Console
2012-08-03 14:20:18 +02:00