Hi I have been working on this for quiet a while, did have it working on an older version of Trinitycore, I have written the below SQL to fix quest chaining/conditions for dailies, yes when Ive posted before I got some of the conditions screwed up but have since yesterday got my own test server up and can confirm this time everything works except I am having problems with NegativeConditions for Valiant of Stormwind, Valiant of Ironforge, Valiant of Gnomeregan, Valiant of the Exodar, Valiant of Darnassus, Valiant of Ogrimmar, Valiant of Sen’jin, Valiant of Thunderbluff, Valiant of Silvermoon and Valiant of Undercity so that if a player has a version of this for another city in quest log they cant take another, once player turns this quest in have conditions for eligibility marker which work with rest of chain disallowing another to be taken until they become champion of the faction they picked.
– Conditions to ensure player cannot take another valiant of … quest while has one in log, conditions for tournament eligibility marker take care of rest of chain once these are turned in but player does not get flag until quest is turned in
DELETE FROMconditions
WHERESourceTypeOrReferenceId
=19 ANDConditionTypeOrReference
=9 ANDSourceEntry
IN (13593,13703,13704,13705,13706,13707,13708,13709,13710,13711);
DELETE FROM conditions
WHERE SourceTypeOrReferenceId
=20 AND ConditionTypeOrReference
=9 AND SourceEntry
IN (13593,13703,13704,13705,13706,13707,13708,13709,13710,13711);
INSERT INTO conditions
(SourceTypeOrReferenceId
,SourceGroup
,SourceEntry
,SourceId
,ElseGroup
,ConditionTypeOrReference
,ConditionTarget
,ConditionValue1
,ConditionValue2
,ConditionValue3
,NegativeCondition
,ErrorTextId
,ScriptName
,Comment
) VALUES
(19,0,13593,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(20,0,13593,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(19,0,13593,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(20,0,13593,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(19,0,13593,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(20,0,13593,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(19,0,13593,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(20,0,13593,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of stormwind only if player does not have any valliant of … quest in quest log’),
(19,0,13706,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(20,0,13706,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(19,0,13706,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(20,0,13706,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(19,0,13706,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(20,0,13706,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(19,0,13706,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(20,0,13706,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of Darnassus only if player does not have any valliant of … quest in quest log’),
(19,0,13704,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(20,0,13704,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(19,0,13704,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(20,0,13704,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(19,0,13704,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(20,0,13704,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(19,0,13704,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(20,0,13704,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of Gnomeregan only if player does not have any valliant of … quest in quest log’),
(19,0,13703,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(20,0,13703,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(19,0,13703,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(20,0,13703,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(19,0,13703,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(20,0,13703,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(19,0,13703,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(20,0,13703,0,0,9,0,13705,0,0,1,0,‘’,‘Show valiant of Ironforge only if player does not have any valliant of … quest in quest log’),
(19,0,13705,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(20,0,13705,0,0,9,0,13593,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(19,0,13705,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(20,0,13705,0,0,9,0,13706,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(19,0,13705,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(20,0,13705,0,0,9,0,13704,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(19,0,13705,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(20,0,13705,0,0,9,0,13703,0,0,1,0,‘’,‘Show valiant of the exodar only if player does not have any valliant of … quest in quest log’),
(19,0,13707,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(20,0,13707,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(19,0,13707,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(20,0,13707,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(19,0,13707,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(20,0,13707,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(19,0,13707,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(20,0,13707,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of orgrimmar only if player does not have any valliant of … quest in quest log’),
(19,0,13708,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(20,0,13708,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(19,0,13708,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(20,0,13708,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(19,0,13708,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(20,0,13708,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(19,0,13708,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(20,0,13708,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of senjin only if player does not have any valliant of … quest in quest log’),
(19,0,13711,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(20,0,13711,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(19,0,13711,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(20,0,13711,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(19,0,13711,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(20,0,13711,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(19,0,13711,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(20,0,13711,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of silvermoon only if player does not have any valliant of … quest in quest log’),
(19,0,13709,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(20,0,13709,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(19,0,13709,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(20,0,13709,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(19,0,13709,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(20,0,13709,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(19,0,13709,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(20,0,13709,0,0,9,0,13710,0,0,1,0,‘’,‘Show valiant of thunderbluff only if player does not have any valliant of … quest in quest log’),
(19,0,13710,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(20,0,13710,0,0,9,0,13707,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(19,0,13710,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(20,0,13710,0,0,9,0,13708,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(19,0,13710,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(20,0,13710,0,0,9,0,13711,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(19,0,13710,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’),
(20,0,13710,0,0,9,0,13709,0,0,1,0,‘’,‘Show valiant of undercity only if player does not have any valliant of … quest in quest log’);
These are the conditions I wrote for this but dont seem to be working and I have no idea why,
On older version of Trinitycore (without negative conditions) was using this: -
UPDATE
quest_template
SETMethod
=0 WHEREentry
IN (13593,13703,13704,13705,13706,13707,13708,13709,13710,13711);
which did do the job as it made quest instant turn in so as soon as turned in got eligibility flag and could not take another until they lost the flag by becoming valiant of faction they had taken quest for
Heres the complete SQL (now tested and everything working on freshly compiled trinitycore (Yesterday)
[CODE] Arent Tournament Quest Chaining and Conditions - Pastebin.com
but above is only problem now
[/CODE]