Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- /*
- SQL:
- UPDATE `creature_template` SET `modelid1` = '24843' WHERE `entry` = '4779';
- UPDATE `creature_template` SET `modelid1` = '24839' WHERE `entry` = '4777';
- UPDATE `creature_template` SET `modelid1` = '18724' WHERE `entry` = '20150';
- UPDATE `creature_template` SET `modelid1` = '29673' WHERE `entry` = '20152';
- UPDATE `creature_template` SET `modelid1` = '28060' WHERE `entry` = '22511';
- UPDATE `creature_template` SET `modelid1` = '28649' WHERE `entry` = '20151';
- UPDATE `creature_template` SET `modelid1` = '11088' WHERE `entry` = '20072';
- UPDATE `creature_template` SET `modelid1` = '28871' WHERE `entry` = '22513';
- UPDATE `creature_template` SET `modelid1` = '25682' WHERE `entry` = '12148';
- UPDATE `creature_template` SET `modelid1` = '25753' WHERE `entry` = '14549';
- UPDATE `creature_template` SET `modelid1` = '19252' WHERE `entry` = '22512';
- UPDATE `creature_template` SET `modelid1` = '21602' WHERE `entry` = '20149';
- UPDATE `creature_template` SET `modelid1` = '29079' WHERE `entry` = '14333';
- UPDATE `creature_template` SET `modelid1` = '19252' WHERE `entry` = '22512';
- UPDATE `creature_template` SET `modelid1` = '28811' WHERE `entry` = '22510';
- UPDATE `creature_template` SET `modelid1` = '29115' WHERE `entry` = '7749';
- UPDATE `creature_template` SET `modelid1` = '31664' WHERE `entry` = '10180';
- UPDATE `creature_template` SET `modelid1` = '8011' WHERE `entry` = '6074';
- UPDATE `creature_template` SET `modelid1` = '17328' WHERE `entry` = '308';
- UPDATE `creature_template` SET `modelid1` = '17166' WHERE `entry` = '358';
- UPDATE `creature_template` SET `modelid1` = '19367' WHERE `entry` = '284';
- UPDATE `creature_template` SET `modelid1` = '20782' WHERE `entry` = '4271';
- UPDATE `creature_template` SET `modelid1` = '21661' WHERE `entry` = '4710';
- UPDATE `creature_template` SET `modelid1` = '20526' WHERE `entry` = '4272';
- UPDATE `creature_template` SET `modelid1` = '26610' WHERE `entry` = '7739';
- UPDATE `creature_template` SET `modelid1` = '19060' WHERE `entry` = '4269';
- UPDATE `creature_template` SET `modelid1` = '2490' WHERE `entry` = '7690';
- UPDATE `creature_template` SET `modelid1` = '10318' WHERE `entry` = '7687';
- UPDATE `creature_template` SET `modelid1` = '17702' WHERE `entry` = '307';
- */
- int32 duration = 10000; // 10 seconds in milliseconds.
- uint32 spellid[] = { 72282, 75620, 6899, 6898, 34899, // mount spell ids
- 34898, 39316, 34897, 34896, 39318,
- 18992, 23249, 39317, 34790, 22718,
- 39317, 39315, 10969, 17454, 8394,
- 470, 580, 458, 6653, 6777, 6654,
- 10873, 6648, 10793, 10789, 472 };
- class Try_Script : public CreatureScript
- {
- public:
- Try_Script() : CreatureScript("Try_Script") { }
- void SetAuraDuration(Player* plr)
- {
- for (uint32 spell : spellid)
- {
- if (!plr->HasAura(spell))
- continue;
- Aura* aura = plr->GetAura(spell);
- aura->SetDuration(duration, false, true);
- plr->GetSession()->SendAreaTriggerMessage("Done, you can now test your mount. Remember that you have only 10 seconds to test it.");
- }
- }
- bool OnGossipHello(Player *player, Creature * creature)
- {
- if (!player->isAlive())
- return false;
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -------- 1875 Arena Points --------", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/spell_deathknight_summondeathcharger:26:26:-22:0|t|r Invincible's Reins", GOSSIP_SENDER_MAIN, 1);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_celestialhorse:26:26:-22:0|t|r Celestial Steed", GOSSIP_SENDER_MAIN, 2);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- 1750 Rating + 1875 Arena Points --", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_bone_08:26:26:-22:0|t|r Centaur-Mammoth", GOSSIP_SENDER_MAIN, 3);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_bone_07:26:26:-22:0|t|r Frozen Centaur-Mammoth", GOSSIP_SENDER_MAIN, 4);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_monsterfang_01:26:26:-22:0|t|r Black Stinger", GOSSIP_SENDER_MAIN, 5);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_blackdirewolf:26:26:-22:0|t|r Skoll", GOSSIP_SENDER_MAIN, 6);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_flyingcarpet:26:26:-22:0|t|r Earth Carpet", GOSSIP_SENDER_MAIN, 7);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_head_tiger_01:26:26:-22:0|t|r Loque'nahak", GOSSIP_SENDER_MAIN, 8);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_orb_05:26:26:-22:0|t|r Mounting Wasp", GOSSIP_SENDER_MAIN, 9);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- 1930 Rating + 2250 Arena Points --", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/Ability_Hunter_Pet_NetherRay:26:26:-22:0|t|r Blue MANTARRAYA", GOSSIP_SENDER_MAIN, 11);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_spectraltiger:26:26:-22:0|t|r Gondria Tiger", GOSSIP_SENDER_MAIN, 12);
- player->ADD_GOSSIP_ITEM(10, "Next page -->", GOSSIP_SENDER_MAIN, 13);
- player->ADD_GOSSIP_ITEM(10, "Bye", GOSSIP_SENDER_MAIN, 100);
- player->PlayerTalkClass->SendGossipMenu(1, creature->GetGUID());
- return true;
- }
- bool OnGossipSelect(Player * player, Creature * creature, uint32 sender, uint32 uiAction)
- {
- player->PlayerTalkClass->ClearMenus();
- if (player->IsMounted())
- {
- player->GetSession()->SendAreaTriggerMessage("|cff87CEFAYou must get down of your mount.|r");
- player->CLOSE_GOSSIP_MENU();
- return false;
- }
- if (sender == GOSSIP_SENDER_MAIN)
- {
- switch (uiAction)
- {
- case 1:
- player->AddAura(72282, player);
- break;
- case 2:
- player->AddAura(75620, player);
- break;
- case 3:
- player->AddAura(6899, player);
- break;
- case 4:
- player->AddAura(6898, player);
- break;
- case 5:
- player->AddAura(34899, player);
- break;
- case 6:
- player->AddAura(34898, player);
- break;
- case 7:
- player->AddAura(39316, player);
- break;
- case 8:
- player->AddAura(34897, player);
- break;
- case 9:
- player->AddAura(34896, player);
- break;
- case 11:
- player->AddAura(65641, player);
- break;
- case 12:
- player->AddAura(39318, player);
- break;
- case 13:
- {
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- 2050 rating + 2625 arena points --|r", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_blackpanther:26:26:-22:0|t|r Jade Tiger", GOSSIP_SENDER_MAIN, 14);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_hunter_pet_bat:26:26:-22:0|t|r Gargoyle", GOSSIP_SENDER_MAIN, 15);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_sandbox_spectraltiger_01:26:26:-22:0|t|r Spectral Toy Tiger", GOSSIP_SENDER_MAIN, 21);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- 2350 rating + 3000 ap --", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_ridingelekk_purple:26:26:-22:0|t|r Pink Elephant", GOSSIP_SENDER_MAIN, 16);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_gem_pearl_05:26:26:-22:0|t|r Pink Stinger", GOSSIP_SENDER_MAIN, 20);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- arena top: 1,2,3 --", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_head_tauren_01:26:26:-22:0|t|r Tauren Boat", GOSSIP_SENDER_MAIN, 17);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/achievement_boss_xt002deconstructor_01:26:26:-22:0|t|r Mechanic Robot", GOSSIP_SENDER_MAIN, 18);
- player->ADD_GOSSIP_ITEM(10, "Next page -->", GOSSIP_SENDER_MAIN, 19);
- player->ADD_GOSSIP_ITEM(10, "<- Prvious Page", GOSSIP_SENDER_MAIN, 101);
- player->ADD_GOSSIP_ITEM(10, "Bye", GOSSIP_SENDER_MAIN, 100);
- player->PlayerTalkClass->SendGossipMenu(1, creature->GetGUID());
- return true;
- break;
- }
- case 14:
- player->AddAura(18992, player);
- break;
- case 15:
- player->AddAura(23249, player);
- break;
- case 16:
- player->AddAura(39317, player);
- break;
- case 17:
- player->AddAura(34790, player);
- break;
- case 18:
- player->AddAura(22718, player);
- break;
- case 19:
- {
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- Zul'Aman Loot --|r", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_gear_01:26:26:-22:0|t|r Bronze Mechano-Tank", GOSSIP_SENDER_MAIN, 22);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_gear_05:26:26:-22:0|t|r White Mechano-Tank", GOSSIP_SENDER_MAIN, 23);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_gyrocoptor:26:26:-22:0|t|r Light Aircraft", GOSSIP_SENDER_MAIN, 24);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- Zul'Aman 5 Tokens --|r", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_ebongryphon:26:26:-22:0|t|r Ghost Bird", GOSSIP_SENDER_MAIN, 25);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_ebonblade:26:26:-22:0|t|r Skeletal Bird", GOSSIP_SENDER_MAIN, 26);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/spell_nature_nullifypoison:26:26:-22:0|t|r Yellow Stinger", GOSSIP_SENDER_MAIN, 27);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- Zul'Aman 5 Tokens + 1800 Rating --|r", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_orb_01:26:26:-22:0|t|r Waterball", GOSSIP_SENDER_MAIN, 28);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_drum_06:26:26:-22:0|t|r L70 ETC Drummer", GOSSIP_SENDER_MAIN, 29);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_ore_ethernium_01:26:26:-22:0|t|r Jellyfishy", GOSSIP_SENDER_MAIN, 30);
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- Zul'Aman 5 Tokens + 2200 Rating --|r", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/spell_nature_naturesblessing:26:26:-22:0|t|r It's a stick!|r", GOSSIP_SENDER_MAIN, 31);
- player->ADD_GOSSIP_ITEM(10, "Next page -->", GOSSIP_SENDER_MAIN, 32);
- player->ADD_GOSSIP_ITEM(10, "<- Prvious Page", GOSSIP_SENDER_MAIN, 13);
- player->ADD_GOSSIP_ITEM(10, "Bye", GOSSIP_SENDER_MAIN, 100);
- player->PlayerTalkClass->SendGossipMenu(1, creature->GetGUID());
- return true;
- break;
- }
- case 20:
- player->AddAura(39317, player);
- break;
- case 21:
- player->AddAura(39315, player);
- break;
- case 22:
- player->AddAura(10969, player);
- break;
- case 23:
- player->AddAura(17454, player);
- break;
- case 24:
- player->AddAura(8394, player);
- break;
- case 25:
- player->AddAura(470, player);
- break;
- case 26:
- player->AddAura(580, player);
- break;
- case 27:
- player->AddAura(458, player);
- break;
- case 28:
- player->AddAura(6653, player);
- break;
- case 29:
- player->AddAura(6777, player);
- break;
- case 30:
- player->AddAura(6654, player);
- break;
- case 31:
- player->AddAura(10873, player);
- break;
- case 32:
- {
- player->ADD_GOSSIP_ITEM(10, "|CFF6a6a6a -- Exclusive Mounts --|r", GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_razorscale:26:26:-22:0|t|r Dark Drake", GOSSIP_SENDER_MAIN, 33);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/inv_misc_toy_08:26:26:-22:0|t|r Gnome Rocket", GOSSIP_SENDER_MAIN, 34);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_rocketmount:26:26:-22:0|t|r Podracer", GOSSIP_SENDER_MAIN, 35);
- player->ADD_GOSSIP_ITEM(10, "|TInterface/icons/ability_mount_goldengryphon:26:26:-22:0|t|r Corrupted Gryphon", GOSSIP_SENDER_MAIN, 36);
- player->ADD_GOSSIP_ITEM(10, "<- Prvious Page", GOSSIP_SENDER_MAIN, 19);
- player->ADD_GOSSIP_ITEM(10, "Bye", GOSSIP_SENDER_MAIN, 100);
- player->PlayerTalkClass->SendGossipMenu(1, creature->GetGUID());
- return true;
- break;
- }
- case 33:
- player->AddAura(6648, player);
- break;
- case 34:
- player->AddAura(10793, player);
- break;
- case 35:
- player->AddAura(10789, player);
- break;
- case 36:
- player->AddAura(472, player);
- break;
- case 100:
- player->CLOSE_GOSSIP_MENU();
- break;
- case 101:
- OnGossipHello(player, creature);
- return true;
- break;
- }
- SetAuraDuration(player);
- player->CLOSE_GOSSIP_MENU();
- }
- return true;
- }
- };
- void AddSC_Try_Script()
- {
- new Try_Script();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement