Commit Graph

29 Commits

Author SHA1 Message Date
Nay
9c26ce8da5 Merge branch 'master' into 4.x
Conflicts:
	src/server/game/Achievements/AchievementMgr.cpp
	src/server/game/Achievements/AchievementMgr.h
	src/server/game/Entities/Corpse/Corpse.cpp
	src/server/game/Entities/Unit/Unit.cpp
	src/server/game/Quests/QuestDef.cpp
	src/server/shared/Database/Implementation/CharacterDatabase.cpp
	src/server/shared/Database/Implementation/CharacterDatabase.h
2012-01-07 17:13:42 +00:00
Shauren
01900b5829 Core/Events
* Changed how quests are linked to events (no longer in Quest class)
* Added quest validation when loading game_event_seasonal_questrelation
* Renamed fields in new table to be consistent with game_event* tables
* Corrected db data (some entries had -1 as event id)
2012-01-05 13:27:17 +01:00
kandera
46fb199ee1 Core/Quests: Add implementation of seasonal quest reset. uses a new table much like character_queststatus_weekly. fixed typo where WEEKLY was WEKLY. Attempt 2 2012-01-04 07:59:32 -05:00
kiper
8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
Nay
8cf68fd1ed Core/Quests: Fix a couple of typos in quest DB loading. Thanks Spp. 2011-12-27 15:33:56 +00:00
Nay
770ff57101 Core/Quests: Implement SMSG_QUESTUPDATE_COMPLETE
Quests can now be completed (and it won't crash client)
2011-12-21 23:26:10 +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
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
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
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 <nofantasy@nf.no>
Signed-off-by: Stalker_Riddick <nenad_kuza@hotmail.com>
2011-11-25 13:11:53 +00:00
Rat
dd80a880dc updated all remaining dbc structures 2011-11-23 13:16:45 +01:00
Nay
361b447f62 Core/Quests: Update Quest::IsAutoComplete
(Fixes an issue with "Candy Bucket" quests)
Closes #3554
Closes #3569
2011-10-20 17:53:46 +01:00
Bootz
81c0a3a847 REPO: code-style clean-up
* Fixed pPlayer->player
* Fixed pCreature->creature

~DevNote: codestyle for Player should be (*player), not *plr or *p...
same goes for Creatures (*creature)... more cleaning needed.
We've way too many codestyles happening here.
2011-10-07 11:08:09 -05:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02: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
Machiavelli
957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
Shauren
928443d899 Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG--
branch : trunk
2010-12-23 23:25:44 +01:00
Shauren
88ae092744 Core/Quests: Use honor multiplier as base for calculating honor rewards, not the amount of kills (fix by Nay)
--HG--
branch : trunk
2010-10-24 21:32:26 +02:00
click
f0c4241ea4 Remove the accidental additions of CRLF-crap from the header updates
--HG--
branch : trunk
2010-10-07 15:35:36 +02:00
click
8ea4b32fab Update copyright headers (following the same standard in all files = good)
--HG--
branch : trunk
2010-10-07 12:41:56 +02:00
Machiavelli
3c6dc32030 Core/DBLayer:
- Rewrite Field class to be able to store both binary prepared statement data and data from adhoc query resultsets
- Buffer the data of prepared statements using ResultSet and Field classes and let go of mysql c api structures after PreparedResultSet constructor. Fixes a race condition and thus a possible crash/data corruption (issue pointed out to Derex, basic suggestion by raczman)
- Conform PreparedResultSet and ResultSet to the same design standards, and using Field class as data buffer class for both
* NOTE: This means the fetching methods are uniform again, using ¨Field* fields = result->Fetch();¨ and access to elements trough fields[x].
* NOTE: for access to the correct row in prepared statements, ¨Field* fields = result->Fetch();¨ must ALWAYS be called inside the do { }while(result->NextRow()) loop.
* NOTE: This means that Field::GetString() returns std::string object and Field::GetCString() returns const char* pointer.

Still experimental and all that jazz, not recommended for production servers until feedback is given.

--HG--
branch : trunk
2010-09-24 22:16:21 +02:00
silinoron
8649bee17f Replace World::getConfig with World::getFloatConfig, World::getIntConfig, and World::getBoolConfig.
Also fix a warning from a previous commit.

--HG--
branch : trunk
2010-08-23 19:56:47 -07:00
Liberate
f5e3943e54 Makes Auto-accepted quests show up the way they should. They should work perfectly again now.
--HG--
branch : trunk
2010-07-28 13:47:32 +02:00
Shauren
5ad02b578d Added support for all raid quest types
Added new config option to allow non-raid quest progression when in raid group

code by Vladimir

--HG--
branch : trunk
2010-07-12 14:38:24 +02:00
Rat
75b80d9f5b rearranged core files
--HG--
branch : trunk
2010-06-05 23:40:08 +02:00