Commit Graph
268 Commits
Author SHA1 Message Date
Nay ed4a74690e Fix compile and a typo
Self reference: in C++ a number prefixed with a zero is treated as an octal number
2011-12-21 21:12:52 +00:00
Nay 968e50c0b1 Core/Quests: Update SMSG_QUESTGIVER_QUEST_DETAILS
Should fix client crash when accepting quest and display the proper npc visual in certain quests (new feature 4.x)
TODO:
- Test
- Update SMSG_QUESTUPDATE_COMPLETE (similar change)
2011-12-21 20:16:27 +00:00
Nay c5ce824ab5 Core&DB/Quest: Add new fields to locales_quest 2011-12-21 18:08:51 +00:00
Nay 9f635ca906 Merge branch 'master' into 4.x 2011-12-18 15:10:54 +00:00
Spp d59c5e627f Fix warnings 2011-12-15 11:12:15 +01:00
Machiavelli d237134d90 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x 2011-12-13 14:05:17 +01:00
kaelima ef519bd313 Copy/paste error in f8cb2f528b 2011-12-13 13:58:52 +01:00
Vinolentus 599a24df24 Core/ObjectMgr: Fix possible SQL injection for game_tele 2011-12-13 13:58:49 +01:00
kaelima 17771b20c1 Copy/paste error in f8cb2f528b 2011-12-12 21:05:51 +01:00
Vinolentus f8cb2f528b Core/ObjectMgr: Fix possible SQL injection for game_tele 2011-12-12 20:36:46 +01:00
Machiavelli b1c8226d58 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x 2011-12-10 15:21:55 +01:00
LaserJet 9c65d26e46 Core/Loading: Fix some copy&paste mistakes in creature_(template_)addon 2011-12-07 22:05:57 +01:00
megamage 6a648c01a4 Some clean up of grid system. 2011-12-07 13:02:44 -05:00
Machiavelli fe69bd654a Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x
Conflicts:
	src/server/game/Entities/Creature/GossipDef.cpp
	src/server/game/Globals/ObjectMgr.cpp
	src/server/game/Quests/QuestDef.cpp
2011-12-06 12:01:51 +01:00
Nay 15c24a4e97 Core/Quest: Consistency, god damn..
(RequiredSourceItemIdCount -> RequiredSourceItemCount; quest_template did not change)
2011-12-06 10:56:37 +00:00
Nay a0226ec5d1 Core/Quests: Fix some variable renaming fails in quest related code
Closes #4183
2011-12-03 21:30:30 +00:00
megamage 529af3cd09 Delete obj if it is not successfully added to grid. More to fix. 2011-11-28 14:05:25 -05:00
Nay 1a1cf8d263 Core/GOs: Update gameobject_template and SMSG_GAMEOBJECT_QUERY_RESPONSE 2011-11-28 17:22:21 +00:00
Nay 007fed581d Core/Unit: Update creature_template table and SMSG_CREATURE_QUERY_RESPONSE 2011-11-27 00:51:23 +00:00
Shauren bbf9703b73 Core/Items: Added more checks determining item disenchanting loot
DB/Loot: Added all disenchant templates
2011-11-26 16:36:01 +01:00
Nay 711858c43b Core/Quests: Update quest_template and SMSG_QUEST_QUERY_RESPONSE
TODO:
- Validate SkillId and reward it
- Validate Currency, add it to the requires and reward it (after being able to read currency dbc)
- Update other quest related opcodes
2011-11-26 14:49:15 +00:00
Nay 846870bf6c Merge branch 'master' into 4.x
Conflicts:
	src/server/shared/Database/Implementation/CharacterDatabase.cpp
2011-11-26 03:19:37 +00:00
Nay 5a4636c145 Core|DB/Quests: Rename and re-order fields in quest_template table, for the sake of consistency
Order should match SMSG_QUEST_QUERY_RESPONSE
2011-11-26 03:00:06 +00:00
Shauren e8c3a3ac9c Core/Items
* Updated ItemTemplate structure to 4.x
* Calculate armor, damage and disenchant loot from dbc files

TODO: Use dbc disenchant ids in disenchant_loot_template
2011-11-25 23:24:40 +01:00
kaelima ec54bb4895 Core/Misc:
Clearing compile errors since UpdateFields were changed:
- Completely remove ammo (Cataclysm change)
- Revert some changes with power/maxpower and only store the 5 needed powers in db (the rest is useless)
- Remove GuildId from corpse
- Move PLAYER_GUILDID to character db (removed updatefield)

Note: Compile is still not working as we need to change currency handling
2011-11-25 18:54:59 +01:00
Machiavelli ec3880a1d0 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x 2011-11-25 15:14:38 +01:00
Stalker_Riddick d8ffeed476 Core/Quests: Add new field RequiredClasses for quest_template Credits to
NoFantasy.

* SkillOrClass is converted to RequiredSkill (and then field can contain skill id only)
* Field ZoneOrSort has no longer a function in quest requirement, and RequiredClasses must be used instead where class limits are expected.

To restrict a quest to one class or more, use bitmask of class in RequiredClasses. RequiredSkill works like before.

Signed-off-by: NoFantasy <[email protected]>
Signed-off-by: Stalker_Riddick <[email protected]>
2011-11-25 13:11:53 +00:00
Rat 5d39e09d89 Merge branch 'master' of github.com:TrinityCore/TrinityCore 2011-11-23 20:23:26 +01:00
Rat 47d0a7f3af Merge branch 'master' of github.com:TrinityCore/TrinityCore
Conflicts:
	src/server/game/DataStores/DBCStores.cpp
	src/server/game/DataStores/DBCfmt.h
	src/server/game/Server/Protocol/Opcodes.cpp
2011-11-23 20:23:04 +01: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
megamage 5a0ffefecc Remove unnecessary const_cast<Map*>. 2011-11-23 12:51:20 -05:00
Rat 34f0792f75 fixed startup crash while loading instance_encounters 2011-11-22 16:50:00 +01:00
Rat a12df963b9 -updated all DBC formats, except spell* ones
-added dbc.zip (all 4.2.2 files + 3.3.5 spells)
-hardcoded map 0's entry for mapdifficulty (dbc has no data for it)
2011-11-22 13:32:11 +01:00
Rat d1affc4340 Initial Commit for client version change to 4.2.2 (14545)
- added known opcodes (handlers are commented till not updated)
- added bitstream support to bytebuffer
- updated realm auth for 14545
- updated world auth
- fixed char_enum,create,delete handlers
- added DB2 reader
- added opcode logging to debuglogmask (ignores loglevel)
- fixed compile in win64, others not yet tested
- using db2 values for item models at char_enum to prevent client crash

Lots of Thanks to All SingularityCore Members
2011-11-20 18:28:18 +01:00
Bootz d1334624da Core: Codestyle clean-up
"pl"->"player"

 Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
megamage ffdfd9252b More clean up of grid system. 2011-10-18 11:51:30 -04: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
megamage 3ba22d0d06 Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management. 2011-10-10 17:39:34 -04: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 af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Spp- 45af1238cf Conditions/DisableMgr: converted from singleton to namespace with free functions. 2011-09-09 14:27:23 +02:00
Spp- c4c9165428 Core/ArenaTeam: Use full captain guid instead of low guid on team creation and some code cleanup 2011-09-09 13:05:51 +02:00
Nay fd3bd4c49d Core/Quests: Implement quests that require PlayerSlain. Closes #169 2011-09-05 15:20:02 +01:00
Nay dca0e737de Core/Quests: Fix quests with RepObjective2 set. Closes #2901.
Misc: Correct a file name, move a spell error to error log and a small typo in trinity_string
2011-09-04 23:44:01 +01:00
Nay 548f8ba095 Core/Player: Teleport the player to a default graveyard (Crossroads/Wesfall) when a zone has no info about graveyards 2011-08-06 17:23:33 +01:00
Spp d0de7976dc Core/ObjectMgr: Some minor changes in LocaleString functions 2011-08-04 15:14:15 +02:00
Spp 7e53a73059 Core/Vehicles: Remove Vehicle.h dependency from other header files 2011-08-03 12:28:42 +02:00
Spp- acd0fc79f6 Core: Pass by const reference for simple objects replaced with pass by value 2011-08-01 14:23:27 +02:00
Spp- 0b5c03f66b Core/Scripts: ScriptRegistry is no longer the part of ScriptMgr public interface, it is not required by caller side. Also remove extra function call to GetScriptId in scripts 2011-07-27 14:52:59 +02:00