Commit Graph

300 Commits

Author SHA1 Message Date
leak ae3ab32ea5 Core/Arenas: Refactor arena code and db layout 2011-04-05 21:54:28 +02:00
Anubisss 1b0843194f Fix gender exploit.
Now check that character has a valid gender (and not an invalid via packet modifications).
This check works when trying to create a character or when building the character list.
If gender is invalid (neither male nor female): can't create the character and can't see in the characters' list (and also can't login with it via packet modding).

Signed-off-by: Anubisss <anubisss210@gmail.com>
2011-04-01 05:05:13 +02:00
Shauren 3800b1c5c2 Core/Loot: Don't report missing item loot for items dropping only money 2011-03-29 17:35:18 +02:00
VladimirMangos c8ec491cbe Core/Achievements: Load achievements before everything else, this prevents criteria update calls during loading things which have already been awarded 2011-03-28 00:45:06 +02:00
Shocker cc3b845321 Core/Misc: Fix StopCastingBindSight.
Closes #260
2011-03-26 05:12:34 +02:00
laly b9af020e72 Core/Cleanup: Drop some unused code.
Closes #1010, #581, and #248
2011-03-26 03:28:59 +02:00
Shauren 2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren e864b0a611 Core/Players: Fixed naked bug for players, original idea by BThallid 2011-03-19 14:49:15 +01:00
Shauren 31b9951f20 Core/Players: Corrected pending bind logic (prevent attempting to bind (and failing) when player left the instance by areatrigger before timer finished) 2011-03-19 13:59:53 +01:00
Shauren 489e629437 Core/Players: Fixed crash in GetBagByPos 2011-03-18 15:41:39 +01:00
Azazel e49b5b44d6 Core/Cleanup: remove C-style cast to (Bag*):
* add ToBag() methods for Item class;
* add GetBagByPos() method for Player class.
2011-03-18 15:58:08 +06:00
Azazel ca76e17bd6 Core/Cleanup: refactor honor and arena rating modifying methods:
* simplify wierd logic;
* add const modifiers to several getter methods.

(Idea based on commit [11187] by zergtmn for Mangos)
2011-03-17 11:00:41 +06:00
Shauren 12b65aa206 Core/Pets
Fixed infinite cooldown bugging after relogging
Restored pet create health for pets without pet_levelstats data
Corrected health gain from stamina for DK Ghouls
2011-03-15 13:23:52 +01:00
runningnak3d dd2405bd6c Core/Misc: Small code style change (very small) 2011-03-14 08:20:12 -06:00
VladimirMangos 05eda57750 Core/Misc: fix item search by guid in bank item slots. 2011-03-14 17:20:20 +06:00
Azazel 1eed7c53a9 Fix a crash introduced in 6ad4044f05 (I should be more attentive) 2011-03-14 10:01:36 +06:00
Shauren e97d6e3a60 Scripts/Icecrown Citadel
* Implemented heroic limited attempts for wing end bosses
* Added script for Blood Quickening weekly quest
2011-03-13 21:51:42 +01:00
Shauren 39acbddf69 Core/Players: Sanctuary status is now updated on area change, fixes argent tournament and frozen halls sanctuaries 2011-03-13 21:47:42 +01:00
Azazel 6ad4044f05 Core/Mechanics: refactor XP (and in fact, honor/reputation/kill credit) rewarding routine and get rid of copy/pasted code. 2011-03-13 15:28:45 +06:00
Azazel 7200363835 Core/Loading: refactor inventory loading routine and add more informational error logging to it. 2011-03-12 00:54:37 +06:00
Shauren 0aa015d897 Core/Items: Don't allow equipping polearms/staves while offhand is not empty (Titan's Grip) 2011-03-10 23:52:13 +01:00
Shauren 9710c41a40 More warning fixes 2011-03-08 19:11:02 +01:00
Shauren e5347a3bda Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter
C4701: potentially uninitialized local variable
C4389: '!=' : signed/unsigned mismatch
C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
2011-03-08 16:42:00 +01:00
Shauren 4b4d3e7450 Core/Creatures: Implemented UNIT_FLAG_PASSIVE 2011-03-06 12:22:04 +01:00
leak 709c395421 Core/Groups: Forgotten changes from group id recycling reimplementation, also cleanup queries should be sync (and due to their one time execution have no need to be prepared statements) 2011-03-01 01:42:18 +01:00
Azazel 20ab3e4bda CharDB Schema/Cleanup: cleanup account_data and character_account_data tables:
* rename column account to accountId;
* introduce prepared statements for both tables.
2011-02-25 00:44:33 +06:00
leak 09bac61e42 Core/Groups: Move scattered group object deletion to Disband() 2011-02-22 16:52:38 +01:00
Machiavelli e07e20ffca Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf. 2011-02-20 20:16:34 +01:00
Shauren 7ac891717c Core/Vehicles: Send proper GUID in SMSG_BREAK_TARGET packet when an unit enters vehicle 2011-02-19 22:50:09 +01:00
Shauren 0f34df6e1a Scripts/Icecrown Citadel: Added support for weekly quest "Deprogramming" 2011-02-18 19:48:47 +01:00
leak 6a64c79d2a Core/Groups: Group system cleaning sweep. 2011-02-18 18:35:52 +01:00
seirge 8003f75781 Core/Players: Don't remove GCD from category if the respective spell doesn't have GCD-time. Fixes certain exploits related to macro's and wands.
Fixes #10
Fixes #220

Any further issues of the same nature should be reported in different tickets.

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-02-17 21:55:15 +01:00
Azazel 4dc1eaa47c Core/Misc: improve error log messages by adding more info. Specially for Aokromes. 2011-02-17 19:47:08 +06:00
Shauren a24deaf980 Core/Objects: Fixed HasInLine and IsInBetween checks on certain compilers 2011-02-15 17:09:46 +01:00
runningnak3d a8a5734bea Core/Gossip: Revert a change to SendPreparedQuest to allow multiple
quests again.
Thanks Manuel for pointing it out and Nay for testing
2011-02-13 21:23:01 -07:00
runningnak3d 05e075ce0e Core/Gossip: Remove support for npc_gossip table (DEPRECATED). 2011-02-11 13:04:45 -07:00
leak 422cfec07d Core/Battlegrounds: Refactoring some pointless parameters 2011-02-09 16:47:47 +01:00
Shauren 4a55030f38 Core/Creatures: Flag dungeon bosses for quicker lookups for related encounters 2011-02-09 16:28:56 +01:00
Shauren c2b0bcbd6c Core/Instances: Implemented DungeonEncounter.dbc for creating completed encounters mask to use in packets
Core/Dungeon Finder: Implemented new way of giving random dungeon rewards, linked to DungeonEncounter.dbc
2011-02-03 22:20:40 +01:00
TOM_RUS c006f1b904 Core/Quests: Implemented proper calculation of quest honor reward using DBC
Signed-off-by: Shauren <shauren.trinity@gmail.com>
2011-01-31 16:27:23 +01:00
Shauren 82b7f30271 Scripts/Misc: Fixed rogue trainers not teaching dual spec 2011-01-31 15:58:20 +01:00
Shauren c3c2a807f0 Core/Auras: Fixed displaying SPELL_AURA_MOD_DAMAGE_PERCENT_DONE damage bonus in character stats 2011-01-28 20:41:03 +01:00
leak 41d0c5571a Core/Entities: Avoid unique key violations during character inventory saving for newly created items 2011-01-26 17:20:21 +01:00
leak 137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
leak 180b739483 Core/Entities: Avoid unique key violations during character inventory saving
(It only works "<Machiavelli> because I saideth so")
2011-01-25 18:42:17 +01:00
Machiavelli 3d58165dbd Core/Items: Proper money refund fix for 0ad2c90d22. Thanks to Destalker 2011-01-25 13:36:40 +01:00
Machiavelli 17971acddb Core/Players: Implement generic SendClearFocus instead of magic SMSG_BREAK_PACKET randomly in the middle of code. Also preallocate correct size for packed guid. 2011-01-25 08:04:47 +01:00
Machiavelli 0ad2c90d22 Core/Items: Fix money refund amount. Also fix a possible exploit possibility of redeeming both vendor sellprice and money refund price in one go. 2011-01-24 23:10:08 +01:00
Shauren 820f87f365 Core/Instances: Implemented confirmation dialog for players upon entering instance which would permanently bind the player to it, players can now choose to get saved or leave the instance
Also fixes broken build
2011-01-24 11:38:59 +01:00
Shauren 464837077a Core/Instances: Implemented hourly instance limit: players are limited to entering 5 instances per hour (account wide limit) 2011-01-24 11:20:30 +01:00