Info: No script Chess event.
Core: https://github.com/TrinityCore/TrinityCore/commit/174deb131a9321039a4c93d4b541ad069da573f9
TDB: TDB 335.49+
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Comfirmed 85f5a189decfdb3cf8e5fa67ab6a3e30269ec38f
From the other issue: http://www.wowwiki.com/Chess_event
TrinityCore 2.4.3:
https://bitbucket.org/lovelol/tbc/src/64e64b89ea60/Source/src/bindings/scripts/scripts/zone/karazhan/chess_event.cpp
or
https://bitbucket.org/oalfa/tbc/src/64e64b89ea60f0fe84aad58f1d3fd80adc4317b6/Source/src/bindings/scripts/scripts/zone/karazhan/chess_event.cpp?at=default
or
http://pastebin.com/nCc0Rftj
BUMP!
Would be nice if someone could implement this :D
having a bitch of a time trying to convert this. it uses functionality that simply doesn't exist in trinity. mainly a special handle for dummy effects that can parse multiple spells, and a ai event sending feature that reports the object sending the event to the recipient, which is actually needed to make the script work.
all 4 proposed scripts have a lot of function which are not existing in tc :(
bump
no wtf! seeing a push to this ticket since months and then it's only a dumbbumb damn.
sd2 has it "scripted"
As I said, it uses two functionalities that I have no idea how to replicate in trinitycore. one is the event sending and receiving system which is used to instruct the pieces to move from square to square, and the aforementioned dummy effect handler. everything else was pretty easily converted from sd22 to TC, but those are real sticking points.
there is always a solution :)
You can open a PR and people like @jackpoz or @Shauren can point you to the right direction on your dead ends. They eat code for breakfast.
No where near a script but heres some data on this, I do have sniff of this event too even though solo'd it and did not have to do much seems like more script then encounter medivh tried cheating but still suceeded soley by cleaving kingllane when was in square in front of me,
Anyway all gossip menu ids, gossip menu options and spawns of pieces (these are spawned both before and after event just gossip on Medivh changes
Before Event Completed
'To pass beyond my Hall, you must defeat me in a game of skill! Control your king when you are ready to begin...'
After event is completed
'Now that you have bested me, test your skills against each other! Take control of either king to begin play.'
SET @CGUID := xxxxxxxxxx;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+31;
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `MovementType`) VALUES
(@CGUID+0, 21664, 532, 3, 1, -11086.92, -1899.176, 220.7505, 0.7330383, 7200, 0, 0), -- 21664 (Area: 3457) (Auras: )
(@CGUID+1, 21664, 532, 3, 1, -11104.63, -1877.507, 220.7505, 0.6806784, 7200, 0, 0), -- 21664 (Area: 3457) (Auras: )
(@CGUID+2, 17469, 532, 3, 1, -11064.65, -1874.336, 220.7505, 3.839724, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+3, 17211, 532, 3, 1, -11089.7, -1887.114, 220.7505, 0.715585, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+4, 17211, 532, 3, 1, -11093.26, -1882.732, 220.7505, 0.6632251, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+5, 17211, 532, 3, 1, -11096.65, -1878.406, 220.7505, 0.6632251, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+6, 21160, 532, 3, 1, -11083.24, -1903.355, 220.7504, 0.6632251, 7200, 0, 0), -- 21160 (Area: 3457) (Auras: 32226 - 32226)
(@CGUID+7, 17211, 532, 3, 1, -11100.17, -1873.871, 220.7505, 0.6457718, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+8, 17211, 532, 3, 1, -11079.32, -1900.23, 220.7504, 0.6632251, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+9, 17211, 532, 3, 1, -11103.67, -1869.466, 220.7505, 0.6981317, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+10, 17469, 532, 3, 1, -11068.14, -1869.956, 220.7505, 3.892084, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+11, 17211, 532, 3, 1, -11082.71, -1895.736, 220.7505, 0.6632251, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: )
(@CGUID+12, 17469, 532, 3, 1, -11071.65, -1865.527, 220.7505, 3.822271, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+13, 17211, 532, 3, 1, -11086.31, -1891.324, 220.7505, 0.6457718, 7200, 0, 0), -- 17211 (Area: 3457) (Auras: 32226 - 32226)
(@CGUID+14, 17469, 532, 3, 1, -11075.02, -1861.288, 220.7505, 3.735005, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+15, 17469, 532, 3, 1, -11078.52, -1856.995, 220.7505, 3.892084, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: 32226 - 32226)
(@CGUID+16, 21726, 532, 3, 1, -11053.46, -1879.717, 220.7505, 4.014257, 7200, 0, 0), -- 21726 (Area: 3457) (Auras: )
(@CGUID+17, 17469, 532, 3, 1, -11057.62, -1883.089, 220.7505, 3.804818, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+18, 17469, 532, 3, 1, -11082.03, -1852.191, 220.7505, 3.804818, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+19, 21747, 532, 3, 1, -11060.35, -1870.903, 220.7505, 3.804818, 7200, 0, 0), -- 21747 (Area: 3457) (Auras: )
(@CGUID+20, 21748, 532, 3, 1, -11056.89, -1875.286, 220.7505, 3.665191, 7200, 0, 0), -- 21748 (Area: 3457) (Auras: )
(@CGUID+21, 21726, 532, 3, 1, -11077.72, -1848.789, 220.7505, 3.909538, 7200, 0, 0), -- 21726 (Area: 3457) (Auras: )
(@CGUID+22, 17469, 532, 3, 1, -11061.3, -1878.629, 220.7505, 3.909538, 7200, 0, 0), -- 17469 (Area: 3457) (Auras: )
(@CGUID+23, 21747, 532, 3, 1, -11070.86, -1857.749, 220.7505, 3.839724, 7200, 0, 0), -- 21747 (Area: 3457) (Auras: )
(@CGUID+24, 21748, 532, 3, 1, -11074.35, -1853.261, 220.7505, 3.735005, 7200, 0, 0), -- 21748 (Area: 3457) (Auras: )
(@CGUID+25, 21750, 532, 3, 1, -11067.6, -1861.944, 220.7505, 3.839724, 7200, 0, 0), -- 21750 (Area: 3457) (Auras: )
(@CGUID+26, 21752, 532, 3, 1, -11063.64, -1866.364, 220.7505, 3.822271, 7200, 0, 0), -- 21752 (Area: 3457) (Auras: 32226 - 32226)
(@CGUID+27, 21160, 532, 3, 1, -11107.91, -1873.032, 220.7505, 0.715585, 7200, 0, 0), -- 21160 (Area: 3457) (Auras: )
(@CGUID+28, 21682, 532, 3, 1, -11101.01, -1881.932, 220.7505, 0.6632251, 7200, 0, 0), -- 21682 (Area: 3457) (Auras: )
(@CGUID+29, 21683, 532, 3, 1, -11097.45, -1886.197, 220.7505, 0.7853982, 7200, 0, 0), -- 21683 (Area: 3457) (Auras: 32226 - 32226)
(@CGUID+30, 21682, 532, 3, 1, -11090.56, -1894.994, 220.7505, 0.6283185, 7200, 0, 0), -- 21682 (Area: 3457) (Auras: )
(@CGUID+31, 21684, 532, 3, 1, -11093.84, -1890.473, 220.7505, 0.6981317, 7200, 0, 0); -- 21684 (Area: 3457) (Auras: )
DELETE FROM `gossip_menu` WHERE `entry` IN(8404,8368,8354,8355,8366,8362,8367,7413,8345,8346,8347,8349,8348);
INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES
(8404,10506), -- 16816
(8404,10718), -- 16816
(8368,10442), -- 21752
(8354,10425), -- 17469
(8355,10426), -- 21726
(8366,10439), -- 21748
(8362,10434), -- 21747
(8367,10440), -- 21750
(7413,8952), -- 17211
(8345,10413), -- 21160
(8346,10414), -- 21664
(8347,10416), -- 21682
(8349,10418), -- 21684
(8348,10417); -- 21683
DELETE FROM `gossip_menu_option` WHERE `menu_id` IN(8404,8368,8354,8355,8366,8362,8367,7413,8345,8346,8347,8349,8348);
INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `OptionBroadcastTextID`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`, `BoxBroadcastTextID`) VALUES
(8368, 0, 0, 'Control Warchief Blackhand', 19384, 1, 1, 0, 0, 0, 0, NULL, 0),
(8349, 0, 0, 'Control King Llane', 19297, 1, 1, 0, 0, 0, 0, NULL, 0),
(8354, 0, 0, 'Control Orc Grunt', 19320, 1, 1, 0, 0, 0, 0, NULL, 0),
(8355, 0, 0, 'Control Summoned Daemon', 19323, 1, 1, 0, 0, 0, 0, NULL, 0),
(8366, 0, 0, 'Control Orc Wolf', 19375, 1, 1, 0, 0, 0, 0, NULL, 0),
(8362, 0, 0, 'Control Orc Necrolyte', 19367, 1, 1, 0, 0, 0, 0, NULL, 0),
(8367, 0, 0, 'Control Orc Warlock', 19377, 1, 1, 0, 0, 0, 0, NULL, 0),
(7413, 0, 0, 'Control Human Footman', 14008, 1, 1, 0, 0, 0, 0, NULL, 0),
(8345, 0, 0, 'Control Conjured Water Elemental.', 19285, 1, 1, 0, 0, 0, 0, NULL, 0),
(8346, 0, 0, 'Control Human Charger.', 19288, 1, 1, 0, 0, 0, 0, NULL, 0),
(8347, 0, 0, 'Control Human Cleric', 19293, 1, 1, 0, 0, 0, 0, NULL, 0),
(8348, 0, 0, 'Control Human Conjurer', 19295, 1, 1, 0, 0, 0, 0, NULL, 0);
UPDATE `creature_template` SET `gossip_menu_id`=8404 WHERE `entry`=16816;
UPDATE `creature_template` SET `gossip_menu_id`=8368 WHERE `entry`=21752;
UPDATE `creature_template` SET `gossip_menu_id`=8354 WHERE `entry`=17469;
UPDATE `creature_template` SET `gossip_menu_id`=8355 WHERE `entry`=21726;
UPDATE `creature_template` SET `gossip_menu_id`=8366 WHERE `entry`=21748;
UPDATE `creature_template` SET `gossip_menu_id`=8362 WHERE `entry`=21747;
UPDATE `creature_template` SET `gossip_menu_id`=8367 WHERE `entry`=21750;
UPDATE `creature_template` SET `gossip_menu_id`=7413 WHERE `entry`=17211;
UPDATE `creature_template` SET `gossip_menu_id`=8345 WHERE `entry`=21160;
UPDATE `creature_template` SET `gossip_menu_id`=8346 WHERE `entry`=21664;
UPDATE `creature_template` SET `gossip_menu_id`=8347 WHERE `entry`=21682;
UPDATE `creature_template` SET `gossip_menu_id`=8348 WHERE `entry`=21683;
Nothing still works this just deals with spawning of pieces + gossip
I wonder what sort of functions need to be ported for this to work.
With rev: 814c3e7 still don't work!
@ikir83 and where have you seen a commit saying that this was fixed?
Maybe because it still is not scripted?
maybe someone can port this https://github.com/scriptdev2/scriptdev2-cata/commit/8f7573e0f5018961cbcf3586a2af5dc611189a00 :>
A $50 bounty has been posted on Bountysource: https://www.bountysource.com/issues/63839-karazhan-chess-event
Maybe take a look at this one: https://github.com/OregonCore/OregonCore/blob/master/src/scripts/EasternKingdoms/Karazhan/chess_event.cpp OFC its made for oregon, but there was ported a lot from TC, the script was working quite well (at least some years ago)
dont' forget the sql take it from commit https://github.com/OregonCore/OregonCore/commit/c251b9cf4f7d09e5def8cce6f77c8d9b18f9f244#diff-613d6f128017c7809ab42b72971d4bd6 but maybe there where some changes later on...
Still noone up for it?
Looks like $100 is not interesting enough compared to the time you would need to spend working on this.
I am not the original person wrote the script.
This was somehow ported from original mangos, to OregonCore, then to TrinityCore. Whoever ported it to TrinityCore didn't leave a name. I only update the code and database to the current commit#: c0b25c9a83126bfd26da8245a31ea684008d804d(6/24/2019)
The event will run, Medivh will cheat, chess will move and play itself, but "pet" function on which you control a chess is not working. This probably need core support if someone can take over this and complete it.
Here are the diff and required SQL files:
maybe you can create a Pull Request with those changes and see what happens ;)
@ckegg your comment about mangos / oregoncore is not 100% correct.
Oregoncore has added the working script in 2015 to the public repo https://github.com/OregonCore/OregonCore/commits/master/src/scripts/EasternKingdoms/Karazhan/chess_event.cpp
SD2 (mangos / cmangos) has added it in 2017, but not sure if this was even a port from the oregoncore script, it seems to be developed in a different way https://github.com/cmangos/mangos-tbc/commits/26f20ede207d05f559ce8cd11278d788df5d74f0/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/chess_event.cpp
I won't tell anything about who has developed the first script on closed source, but back in time 2015 was no other opensource script available except oregoncore.
How ever, i would love to see this finaly working for TC, so +1 for any pull request
@Desteny to be honest the script had only with file name said OregonCore to TC with date May 2018. I found this in an archive on a file sharing site but again no any other information. I then migrated it to current commit yesterday to test it out. +1 for pull request hopefully to see it eventually to be scripted.
I use @ckegg and a very bit update to compile and build.here is some test report.
I hope somebody can fix this epic fight.+1 for any pull request.
@Faq make sure to redeploy or withdraw your bounty. New TOS of bountysource will "steal" your money if you dont do so.
I won't tell anything about who has developed the first script on closed source, but back in time 2015 was no other opensource script available except oregoncore.
https://github.com/scriptdev2/scriptdev2/commit/f995b945c7f84ba9f1c2f2a953a4e616192ed64d#diff-3a278a6ee652a1822d84f614230eca9f
Most helpful comment
@ikir83 and where have you seen a commit saying that this was fixed?
Maybe because it still is not scripted?