Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *Some info for script borrowed from KingDutkas Teleguy Script and the EnchantmentNPC scripted by vision1000 from mmowned. Credits to them
- *Modifications made for Mangos thus far by Kreegoth
- */
- #include "precompiled.h"
- long long int money;
- int costo;
- bool i_InventoryType(Player * player, uint32 i_slot, uint32 i_type)
- {
- if(!player->GetItemByPos(INVENTORY_SLOT_BAG_0, i_slot))
- return false;
- else if(player->GetItemByPos(INVENTORY_SLOT_BAG_0, i_slot)->GetProto()->InventoryType != i_type)
- return false;
- else
- return true;
- };
- bool IsWeaponType(Player * player, uint32 i_slot, uint32 i_subclass)
- {
- if(!player->GetItemByPos(INVENTORY_SLOT_BAG_0, i_slot))
- return false;
- if(player->GetItemByPos(INVENTORY_SLOT_BAG_0, i_slot)->GetProto()->SubClass != i_subclass)
- return false;
- else
- return true;
- };
- int GetInvenSlot(const char * Code)
- {
- int slot_;
- if( strcmp(Code, "Helm") == 0 || strcmp(Code, "helm") == 0 || strcmp(Code, "Helmet") == 0 || strcmp(Code, "helmet") == 0 || strcmp(Code, "head") == 0 || strcmp(Code, "Head") == 0)
- slot_ = 0;
- else if (strcmp(Code, "Necklace") == 0 || strcmp(Code, "necklace") == 0 || strcmp(Code, "Neck") == 0 || strcmp(Code, "neck") == 0 || strcmp(Code, "Neckpiece") == 0 || strcmp(Code, "neckpiece") == 0)
- slot_ = 1;
- else if (strcmp(Code, "Shoulder") == 0 || strcmp(Code, "shoulder") == 0 || strcmp(Code, "Shoulders") == 0 || strcmp(Code, "shoulders") == 0)
- slot_ = 2;
- else if (strcmp(Code, "Cape") == 0 || strcmp(Code, "cape") == 0 || strcmp(Code, "Cloak") == 0 || strcmp(Code, "cloak") == 0 || strcmp(Code, "Back") == 0 || strcmp(Code, "back") == 0)
- slot_ = 14;
- else if (strcmp(Code, "Chest") == 0 || strcmp(Code, "chest") == 0 || strcmp(Code, "Chestpeice") == 0 || strcmp(Code, "chestpeice") == 0)
- slot_ = 4;
- else if (strcmp(Code, "Shirt") == 0 || strcmp(Code, "shirt") == 0)
- slot_ = 3;
- else if (strcmp(Code, "Tabard") == 0 || strcmp(Code, "tabard") == 0)
- slot_ = 18;
- else if (strcmp(Code, "Bracer") == 0 || strcmp(Code, "bracer") == 0 || strcmp(Code, "Bracers") == 0 || strcmp(Code, "bracers") == 0 || strcmp(Code, "Wrist") == 0 || strcmp(Code, "wrist") == 0 || strcmp(Code, "Wrists") == 0 || strcmp(Code, "wrists") == 0)
- slot_ = 8;
- else if (strcmp(Code, "Glove") == 0 || strcmp(Code, "glove") == 0 || strcmp(Code, "Gloves") == 0 || strcmp(Code, "gloves") == 0 || strcmp(Code, "Hand") == 0 || strcmp(Code, "hand") == 0 || strcmp(Code, "Hands") == 0 || strcmp(Code, "hands") == 0)
- slot_ = 9;
- else if (strcmp(Code, "Belt") == 0 || strcmp(Code, "belt") == 0 || strcmp(Code, "Waist") == 0 || strcmp(Code, "waist") == 0)
- slot_ = 5;
- else if (strcmp(Code, "Leg") == 0 || strcmp(Code, "leg") == 0 || strcmp(Code, "Legs") == 0 || strcmp(Code, "legs") == 0 || strcmp(Code, "Pant") == 0 || strcmp(Code, "pant") == 0 || strcmp(Code, "Pants") == 0 || strcmp(Code, "pants") == 0)
- slot_ = 6;
- else if (strcmp(Code, "Boot") == 0 || strcmp(Code, "boot") == 0 || strcmp(Code, "Boots") == 0 || strcmp(Code, "boots") == 0 || strcmp(Code, "foot") == 0 || strcmp(Code, "Foot") == 0 || strcmp(Code, "Feet") == 0 || strcmp(Code, "feet") == 0)
- slot_ = 7;
- else if (strcmp(Code, "Ring One") == 0 || strcmp(Code, "Ring one") == 0 || strcmp(Code, "ring one") == 0 || strcmp(Code, "ring 1") == 0 || strcmp(Code, "Ring 1") == 0 || strcmp(Code, "First Ring") == 0 || strcmp(Code, "first ring") == 0)
- slot_ = 10;
- else if (strcmp(Code, "Ring Two") == 0 || strcmp(Code, "Ring two") == 0 || strcmp(Code, "ring two") == 0 || strcmp(Code, "ring 2") == 0 || strcmp(Code, "Ring 2") == 0 || strcmp(Code, "Second Ring") == 0 || strcmp(Code, "second ring") == 0)
- slot_ = 11;
- else if (strcmp(Code, "Trinket One") == 0 || strcmp(Code, "Trinket one") == 0 || strcmp(Code, "trinket one") == 0 || strcmp(Code, "Trinket 1") == 0 || strcmp(Code, "trinket 1") == 0 || strcmp(Code, "First Trinket") == 0 || strcmp(Code, "First trinket") == 0 || strcmp(Code, "first trinket") == 0)
- slot_ = 12;
- else if (strcmp(Code, "Trinket Two") == 0 || strcmp(Code, "Trinket two") == 0 || strcmp(Code, "trinket two") == 0 || strcmp(Code, "Trinket 2") == 0 || strcmp(Code, "trinket 2") == 0 || strcmp(Code, "Second Trinket") == 0 || strcmp(Code, "Second trinket") == 0 || strcmp(Code, "second trinket") == 0)
- slot_ = 13;
- else if (strcmp(Code, "Ranged") == 0 || strcmp(Code, "ranged") == 0 || strcmp(Code, "Wand") == 0 || strcmp(Code, "wand") == 0 || strcmp(Code, "Gun") == 0 || strcmp(Code, "gun") == 0 || strcmp(Code, "Bow") == 0 || strcmp(Code, "bow") == 0 || strcmp(Code, "Idol") == 0 || strcmp(Code, "idol") == 0 || strcmp(Code, "Libram") == 0 || strcmp(Code, "libram") == 0 || strcmp(Code, "Sigil") == 0 || strcmp(Code, "sigil") == 0 || strcmp(Code, "Totem") == 0 || strcmp(Code, "totem") == 0)
- slot_ = 17;
- else if (strcmp(Code, "Main hand") == 0 || strcmp(Code, "main hand") == 0 || strcmp(Code, "Mh") == 0 || strcmp(Code, "Mh") == 0 || strcmp(Code, "mh") == 0 || strcmp(Code, "Main Hand") == 0 || strcmp(Code, "mainhand") == 0 || strcmp(Code, "Mainhand") == 0 || strcmp(Code, "weapon") == 0 || strcmp(Code, "Weapon") == 0)
- slot_ = 15;
- else if (strcmp(Code, "Off hand") == 0 || strcmp(Code, "off hand") == 0 || strcmp(Code, "Offhand") == 0 || strcmp(Code, "offhand") == 0 || strcmp(Code, "Oh") == 0 || strcmp(Code, "Oh") == 0 || strcmp(Code, "oh") == 0 || strcmp(Code, "Off Hand") == 0 || strcmp(Code, "off") == 0)
- slot_ = 16;
- else
- slot_ = 20;
- return slot_;
- }
- bool GossipHello_EnchantNPC(Player* player, Creature* _Creature)
- {
- player->ADD_GOSSIP_ITEM( 0, "Helm" , GOSSIP_SENDER_MAIN, 140);
- player->ADD_GOSSIP_ITEM( 0, "Shoulder" , GOSSIP_SENDER_MAIN, 141);
- player->ADD_GOSSIP_ITEM( 0, "Cloak" , GOSSIP_SENDER_MAIN, 142);
- player->ADD_GOSSIP_ITEM( 0, "Chest" , GOSSIP_SENDER_MAIN, 143);
- player->ADD_GOSSIP_ITEM( 0, "Bracer" , GOSSIP_SENDER_MAIN, 144);
- player->ADD_GOSSIP_ITEM( 0, "Gloves" , GOSSIP_SENDER_MAIN, 145);
- player->ADD_GOSSIP_ITEM( 0, "Legs" , GOSSIP_SENDER_MAIN, 146);
- player->ADD_GOSSIP_ITEM( 0, "Boots" , GOSSIP_SENDER_MAIN, 147);
- player->ADD_GOSSIP_ITEM( 0, "Main Hand" , GOSSIP_SENDER_MAIN, 148);
- player->ADD_GOSSIP_ITEM( 0, "Offhand" , GOSSIP_SENDER_MAIN, 149);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- return true;
- }
- void SendDefaultMenu_EnchantNPC(Player* player, Creature* _Creature, uint32 action)
- {
- if (player->IsFlying() || player->isDead() || player->isInCombat())
- {
- player->CLOSE_GOSSIP_MENU();
- _Creature->MonsterSay("You are in combat!", LANG_UNIVERSAL);
- return;
- }
- money = player-> GetMoney();
- costo = 500;
- if (money < costo)
- {
- if (player->getLevel() > 10)
- {
- player->CLOSE_GOSSIP_MENU();
- _Creature->MonsterSay("You haven't enough money", LANG_UNIVERSAL);
- return;
- }
- }
- switch(action)
- {
- case 0: //Titan Guard
- {
- for (int i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; ++i)
- {
- if (pItem->GetItemByPos( INVENTORY_SLOT_BAG_0, i ))
- {
- for(int slot = 0; slot < MAX_ENCHANTMENT_SLOT; ++slot)
- {
- SpellItemEnchantmentEntry const *pEnchant = sSpellItemEnchantmentStore.LookupEntry(3851);
- if (!pEnchant)
- continue;
- ApplyEnchantment(pItem, EnchantmentSlot(slot), true);
- player->ModifyMoney(-10*costo);
- }
- }
- }break;
- case 140: // Helm
- {
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Triumph" , GOSSIP_SENDER_MAIN, 73);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Dominance" , GOSSIP_SENDER_MAIN, 74);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Savage Gladiator" , GOSSIP_SENDER_MAIN, 75);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Blissful mending" , GOSSIP_SENDER_MAIN, 76);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Burning Mysteries" , GOSSIP_SENDER_MAIN, 77);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Torment" , GOSSIP_SENDER_MAIN, 78);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of The Stalward Protector" , GOSSIP_SENDER_MAIN, 79);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Eclipsed Moon" , GOSSIP_SENDER_MAIN, 80);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Flame's Soul" , GOSSIP_SENDER_MAIN, 81);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Fleeing Shadow" , GOSSIP_SENDER_MAIN, 82);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Frosty Soul" , GOSSIP_SENDER_MAIN, 83);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Toxic Warding" , GOSSIP_SENDER_MAIN, 84);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 141: // Shoulder
- {
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Gladiator" , GOSSIP_SENDER_MAIN, 66);
- player->ADD_GOSSIP_ITEM(0, "Inscription of Triumph" , GOSSIP_SENDER_MAIN, 67);
- player->ADD_GOSSIP_ITEM(0, "Inscription of Dominance" , GOSSIP_SENDER_MAIN, 68);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Axe" , GOSSIP_SENDER_MAIN, 69);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Crag" , GOSSIP_SENDER_MAIN, 70);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Pinnacle" , GOSSIP_SENDER_MAIN, 71);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Storm" , GOSSIP_SENDER_MAIN, 72);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 142: // Cloak
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Shadow Armor" , GOSSIP_SENDER_MAIN, 43);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Wisdom" , GOSSIP_SENDER_MAIN, 44);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Titan Weave" , GOSSIP_SENDER_MAIN, 45);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Greater Speed" , GOSSIP_SENDER_MAIN, 46);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Mighty Armor" , GOSSIP_SENDER_MAIN, 47);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Major Agility" , GOSSIP_SENDER_MAIN, 48);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Spell Piercing" , GOSSIP_SENDER_MAIN, 54);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Arcane Resistance" , GOSSIP_SENDER_MAIN, 49);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Fire Resistance" , GOSSIP_SENDER_MAIN, 50);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Frost Resistance" , GOSSIP_SENDER_MAIN, 51);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Nature Resistance" , GOSSIP_SENDER_MAIN, 52);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Shadow Resistance" , GOSSIP_SENDER_MAIN, 53);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 143: // Chest
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Powerful Stats" , GOSSIP_SENDER_MAIN, 31);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Super Health" , GOSSIP_SENDER_MAIN, 32);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Greater Mana Restoration" , GOSSIP_SENDER_MAIN, 33);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Exceptional Resilience" , GOSSIP_SENDER_MAIN, 34);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Greater Defense" , GOSSIP_SENDER_MAIN, 35);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 144: // Bracer
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Major Stamina" , GOSSIP_SENDER_MAIN, 23);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Superior Spellpower" , GOSSIP_SENDER_MAIN, 24);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Greater Assult" , GOSSIP_SENDER_MAIN, 25);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Major Spirit" , GOSSIP_SENDER_MAIN, 26);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Expertise" , GOSSIP_SENDER_MAIN, 27);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Greater Stats" , GOSSIP_SENDER_MAIN, 28);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Exceptional Intellect" , GOSSIP_SENDER_MAIN, 29);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 145: // Gloves
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Greater Blasting" , GOSSIP_SENDER_MAIN, 17);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Armsman" , GOSSIP_SENDER_MAIN, 18);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Crusher" , GOSSIP_SENDER_MAIN, 19);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Agility" , GOSSIP_SENDER_MAIN, 20);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Precision" , GOSSIP_SENDER_MAIN, 21);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Expertise" , GOSSIP_SENDER_MAIN, 22);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Exceptional Spellpower" , GOSSIP_SENDER_MAIN, 130);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 146: // Legs
- {
- player->ADD_GOSSIP_ITEM(0, "Earthen Leg Armor" , GOSSIP_SENDER_MAIN, 61);
- player->ADD_GOSSIP_ITEM(0, "Frosthide Leg Armor" , GOSSIP_SENDER_MAIN, 62);
- player->ADD_GOSSIP_ITEM(0, "Icescale Leg Armor" , GOSSIP_SENDER_MAIN, 63);
- player->ADD_GOSSIP_ITEM(0, "Brilliant Spellthread" , GOSSIP_SENDER_MAIN, 64);
- player->ADD_GOSSIP_ITEM(0, "Sapphire Spellthread" , GOSSIP_SENDER_MAIN, 65);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 147: // Boots
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Assult" , GOSSIP_SENDER_MAIN, 36);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Tuskars Vitality" , GOSSIP_SENDER_MAIN, 37);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Superior Agility" , GOSSIP_SENDER_MAIN, 38);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Spirit" , GOSSIP_SENDER_MAIN, 39);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Vitality" , GOSSIP_SENDER_MAIN, 40);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Icewalker" , GOSSIP_SENDER_MAIN, 41);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Fortitude" , GOSSIP_SENDER_MAIN, 42);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 148: // Mainhand
- {
- if(i_InventoryType(player, EQUIPMENT_SLOT_MAINHAND, INVTYPE_2HWEAPON) == true)
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Titan Guard" , GOSSIP_SENDER_MAIN, 0);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Accuracy" , GOSSIP_SENDER_MAIN, 1);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Berserking" , GOSSIP_SENDER_MAIN, 2);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Black Magic" , GOSSIP_SENDER_MAIN, 3);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mighty Spellpower" , GOSSIP_SENDER_MAIN, 4);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Superior Potency" , GOSSIP_SENDER_MAIN, 5);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Ice Breaker" , GOSSIP_SENDER_MAIN, 6);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Lifeward" , GOSSIP_SENDER_MAIN, 7);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blood Draining" , GOSSIP_SENDER_MAIN, 8);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blade Ward" , GOSSIP_SENDER_MAIN, 9);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Agility" , GOSSIP_SENDER_MAIN, 10);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Spirit" , GOSSIP_SENDER_MAIN, 11);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Executioner" , GOSSIP_SENDER_MAIN, 12);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mongoose" , GOSSIP_SENDER_MAIN, 13);
- player->ADD_GOSSIP_ITEM(0, "Next Page..." , GOSSIP_SENDER_MAIN, 150);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- else if (i_InventoryType(player, EQUIPMENT_SLOT_MAINHAND, INVTYPE_WEAPON) == true || i_InventoryType(player, EQUIPMENT_SLOT_MAINHAND, INVTYPE_WEAPONMAINHAND)== true)
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Titan Guard" , GOSSIP_SENDER_MAIN, 0);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Accuracy" , GOSSIP_SENDER_MAIN, 1);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Berserking" , GOSSIP_SENDER_MAIN, 2);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Black Magic" , GOSSIP_SENDER_MAIN, 3);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mighty Spellpower" , GOSSIP_SENDER_MAIN, 4);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Superior Potency" , GOSSIP_SENDER_MAIN, 5);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Ice Breaker" , GOSSIP_SENDER_MAIN, 6);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Lifeward" , GOSSIP_SENDER_MAIN, 7);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blood Draining" , GOSSIP_SENDER_MAIN, 8);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blade Ward" , GOSSIP_SENDER_MAIN, 9);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Agility" , GOSSIP_SENDER_MAIN, 10);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Spirit" , GOSSIP_SENDER_MAIN, 11);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Executioner" , GOSSIP_SENDER_MAIN, 12);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mongoose" , GOSSIP_SENDER_MAIN, 13);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- else
- {
- _Creature->MonsterSay("You have selected an invalid item", LANG_UNIVERSAL);
- }
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 149: // Offhand
- {
- if(i_InventoryType(player, EQUIPMENT_SLOT_OFFHAND, INVTYPE_2HWEAPON) == true)
- {
- if(player->HasSpell(46917))
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Titan Guard" , GOSSIP_SENDER_MAIN, 109);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Accuracy" , GOSSIP_SENDER_MAIN, 110);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Berserking" , GOSSIP_SENDER_MAIN, 111);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Black Magic" , GOSSIP_SENDER_MAIN, 112);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mighty Spellpower" , GOSSIP_SENDER_MAIN, 113);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Superior Potency" , GOSSIP_SENDER_MAIN, 114);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Ice Breaker" , GOSSIP_SENDER_MAIN, 115);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Lifeward" , GOSSIP_SENDER_MAIN, 116);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blood Draining" , GOSSIP_SENDER_MAIN, 117);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blade Ward" , GOSSIP_SENDER_MAIN, 118);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Agility" , GOSSIP_SENDER_MAIN, 119);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Spirit" , GOSSIP_SENDER_MAIN, 120);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Executioner" , GOSSIP_SENDER_MAIN, 121);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mongoose" , GOSSIP_SENDER_MAIN, 122);
- player->ADD_GOSSIP_ITEM(0, "Next Page..." , GOSSIP_SENDER_MAIN, 151);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- else
- {
- _Creature->MonsterSay("You have selected an invalid item", LANG_UNIVERSAL);
- }
- }
- else if(i_InventoryType(player, EQUIPMENT_SLOT_OFFHAND, INVTYPE_WEAPON) == true || i_InventoryType(player, EQUIPMENT_SLOT_OFFHAND, INVTYPE_WEAPONOFFHAND) == true)
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Titan Guard" , GOSSIP_SENDER_MAIN, 109);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Accuracy" , GOSSIP_SENDER_MAIN, 110);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Berserking" , GOSSIP_SENDER_MAIN, 111);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Black Magic" , GOSSIP_SENDER_MAIN, 112);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mighty Spellpower" , GOSSIP_SENDER_MAIN, 113);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Superior Potency" , GOSSIP_SENDER_MAIN, 114);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Ice Breaker" , GOSSIP_SENDER_MAIN, 115);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Lifeward" , GOSSIP_SENDER_MAIN, 116);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blood Draining" , GOSSIP_SENDER_MAIN, 117);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blade Ward" , GOSSIP_SENDER_MAIN, 118);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Agility" , GOSSIP_SENDER_MAIN, 119);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Spirit" , GOSSIP_SENDER_MAIN, 120);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Executioner" , GOSSIP_SENDER_MAIN, 121);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mongoose" , GOSSIP_SENDER_MAIN, 122);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- else if(i_InventoryType(player, EQUIPMENT_SLOT_OFFHAND, INVTYPE_SHIELD) == true)
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Defense" , GOSSIP_SENDER_MAIN, 55);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Greater Intellect" , GOSSIP_SENDER_MAIN, 56);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Shield Block" , GOSSIP_SENDER_MAIN, 57);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Resilience" , GOSSIP_SENDER_MAIN, 58);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Major Stamina" , GOSSIP_SENDER_MAIN, 59);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Tough Shield" , GOSSIP_SENDER_MAIN, 60);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- else
- {
- _Creature->MonsterSay("You have selected an invalid item", LANG_UNIVERSAL);
- }
- }break;
- case 150: // Long menu for mainhand weapons that may want either 1h or 2h weapon enchants
- {
- if(i_InventoryType(player, EQUIPMENT_SLOT_MAINHAND, INVTYPE_2HWEAPON) == true)
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Massacre" , GOSSIP_SENDER_MAIN, 14);
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Scourgebane" , GOSSIP_SENDER_MAIN, 15);
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Giant Slayer" , GOSSIP_SENDER_MAIN, 16);
- if(IsWeaponType(player, EQUIPMENT_SLOT_MAINHAND, ITEM_SUBCLASS_WEAPON_STAFF))
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Stave - Greater Spellpower" , GOSSIP_SENDER_MAIN, 30);
- }
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- }break;
- case 151: // Long menu for offhand 2h weapons that may want either 1h or 2h weapon enchants
- {
- if(i_InventoryType(player, EQUIPMENT_SLOT_OFFHAND, INVTYPE_2HWEAPON) == true)
- {
- if(player->HasSpell(46917))
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Massacre" , GOSSIP_SENDER_MAIN, 123);
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Scourgebane" , GOSSIP_SENDER_MAIN, 124);
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Giant Slayer" , GOSSIP_SENDER_MAIN, 125);
- if(IsWeaponType(player, EQUIPMENT_SLOT_MAINHAND, ITEM_SUBCLASS_WEAPON_STAFF))
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Stave - Greater Spellpower" , GOSSIP_SENDER_MAIN, 131); // Might as well add it incase :S.
- }
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- else
- {
- _Creature->MonsterSay("You have selected an invalid item", LANG_UNIVERSAL);
- }
- }
- }break;
- case 152: // Prof specific main menu
- {
- player->ADD_GOSSIP_ITEM(0, "First Ring Slot" , GOSSIP_SENDER_MAIN, 153);
- player->ADD_GOSSIP_ITEM(0, "Second Ring Slot" , GOSSIP_SENDER_MAIN, 159);
- player->ADD_GOSSIP_ITEM(0, "Bracer - Fur Lining" , GOSSIP_SENDER_MAIN, 154);
- player->ADD_GOSSIP_ITEM(0, "Cloak - Embroidery" , GOSSIP_SENDER_MAIN, 155);
- player->ADD_GOSSIP_ITEM(0, "Shoulder - Inscription" , GOSSIP_SENDER_MAIN, 156);
- player->ADD_GOSSIP_ITEM(0, "Boots & Gloves - Engineering Gadgets" , GOSSIP_SENDER_MAIN, 157);
- player->ADD_GOSSIP_ITEM(0, "Legs - Improved Leg Armor" , GOSSIP_SENDER_MAIN, 158);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 153: // 1st ring
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Assult" , GOSSIP_SENDER_MAIN, 85);
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Greater Spellpower" , GOSSIP_SENDER_MAIN, 86);
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Stamina" , GOSSIP_SENDER_MAIN, 87);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 154: // fur lining
- {
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Attack Power" , GOSSIP_SENDER_MAIN, 93);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Spellpower" , GOSSIP_SENDER_MAIN, 95);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Stamina" , GOSSIP_SENDER_MAIN, 94);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Arcane Resist" , GOSSIP_SENDER_MAIN, 88);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Fire Resist" , GOSSIP_SENDER_MAIN, 89);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Frost Resist" , GOSSIP_SENDER_MAIN, 90);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Nature Resist" , GOSSIP_SENDER_MAIN, 91);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Shadow Resist" , GOSSIP_SENDER_MAIN, 92);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 155: // cloak embroidery
- {
- player->ADD_GOSSIP_ITEM(0, "Embroid Cloak - Darkglow" , GOSSIP_SENDER_MAIN, 96);
- player->ADD_GOSSIP_ITEM(0, "Embroid Cloak - Lightweave" , GOSSIP_SENDER_MAIN, 97);
- player->ADD_GOSSIP_ITEM(0, "Embroid Cloak - Swordguard" , GOSSIP_SENDER_MAIN, 98);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 156: // inscription enchants
- {
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Axe" , GOSSIP_SENDER_MAIN, 99);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Crag" , GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Pinnacle" , GOSSIP_SENDER_MAIN, 101);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Storm" , GOSSIP_SENDER_MAIN, 102);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 157: // Engineering Gadgets
- {
- player->ADD_GOSSIP_ITEM(0, "Nitro Boots" , GOSSIP_SENDER_MAIN, 103);
- player->ADD_GOSSIP_ITEM(0, "Hand-Mounted Pyro Rocket" , GOSSIP_SENDER_MAIN, 104);
- player->ADD_GOSSIP_ITEM(0, "Handguard Hyperspeed Accelerators" , GOSSIP_SENDER_MAIN, 105);
- player->ADD_GOSSIP_ITEM(0, "Handguard Reticulated Armor Webbing" , GOSSIP_SENDER_MAIN, 106);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 158: // Unreleased lw leg armor (100 ap / 36 crit)
- {
- player->ADD_GOSSIP_ITEM(0, "Dragonscale Leg Armor" , GOSSIP_SENDER_MAIN, 107);
- player->ADD_GOSSIP_ITEM(0, "Wyrmscale Leg Armor" , GOSSIP_SENDER_MAIN, 108);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 159: // 2nd slot ring
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Assult" , GOSSIP_SENDER_MAIN, 127);
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Greater Spellpower" , GOSSIP_SENDER_MAIN, 128);
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Stamina" , GOSSIP_SENDER_MAIN, 129);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- case 161: // helm
- {
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Triumph" , GOSSIP_SENDER_MAIN, 73);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Dominance" , GOSSIP_SENDER_MAIN, 74);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Savage Gladiator" , GOSSIP_SENDER_MAIN, 75);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Blissful mending" , GOSSIP_SENDER_MAIN, 76);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Burning Mysteries" , GOSSIP_SENDER_MAIN, 77);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Torment" , GOSSIP_SENDER_MAIN, 78);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of The Stalward Protector" , GOSSIP_SENDER_MAIN, 79);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Eclipsed Moon" , GOSSIP_SENDER_MAIN, 80);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Flame's Soul" , GOSSIP_SENDER_MAIN, 81);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Fleeing Shadow" , GOSSIP_SENDER_MAIN, 82);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of the Frosty Soul" , GOSSIP_SENDER_MAIN, 83);
- player->ADD_GOSSIP_ITEM(0, "Arcanum of Toxic Warding" , GOSSIP_SENDER_MAIN, 84);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 162: // shoulder
- {
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Gladiator" , GOSSIP_SENDER_MAIN, 66);
- player->ADD_GOSSIP_ITEM(0, "Inscription of Triumph" , GOSSIP_SENDER_MAIN, 67);
- player->ADD_GOSSIP_ITEM(0, "Inscription of Dominance" , GOSSIP_SENDER_MAIN, 68);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Axe" , GOSSIP_SENDER_MAIN, 69);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Crag" , GOSSIP_SENDER_MAIN, 70);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Pinnacle" , GOSSIP_SENDER_MAIN, 71);
- player->ADD_GOSSIP_ITEM(0, "Greater Inscription of the Storm" , GOSSIP_SENDER_MAIN, 72);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Axe" , GOSSIP_SENDER_MAIN, 99);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Crag" , GOSSIP_SENDER_MAIN, 100);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Pinnacle" , GOSSIP_SENDER_MAIN, 101);
- player->ADD_GOSSIP_ITEM(0, "Master's Inscription of the Storm" , GOSSIP_SENDER_MAIN, 102);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 163: // cloak
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Shadow Armor" , GOSSIP_SENDER_MAIN, 43);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Wisdom" , GOSSIP_SENDER_MAIN, 44);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Titan Weave" , GOSSIP_SENDER_MAIN, 45);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Greater Speed" , GOSSIP_SENDER_MAIN, 46);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Mighty Armor" , GOSSIP_SENDER_MAIN, 47);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Major Agility" , GOSSIP_SENDER_MAIN, 48);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Spell Piercing" , GOSSIP_SENDER_MAIN, 54);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Arcane Resistance" , GOSSIP_SENDER_MAIN, 49);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Fire Resistance" , GOSSIP_SENDER_MAIN, 50);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Frost Resistance" , GOSSIP_SENDER_MAIN, 51);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Nature Resistance" , GOSSIP_SENDER_MAIN, 52);
- player->ADD_GOSSIP_ITEM(0, "Enchant Cloak - Superior Shadow Resistance" , GOSSIP_SENDER_MAIN, 53);
- player->ADD_GOSSIP_ITEM(0, "Embroid Cloak - Darkglow" , GOSSIP_SENDER_MAIN, 96);
- player->ADD_GOSSIP_ITEM(0, "Embroid Cloak - Lightweave" , GOSSIP_SENDER_MAIN, 97);
- player->ADD_GOSSIP_ITEM(0, "Embroid Cloak - Swordguard" , GOSSIP_SENDER_MAIN, 98);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 164: // chest
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Powerful Stats" , GOSSIP_SENDER_MAIN, 31);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Super Health" , GOSSIP_SENDER_MAIN, 32);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Greater Mana Restoration" , GOSSIP_SENDER_MAIN, 33);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Exceptional Resilience" , GOSSIP_SENDER_MAIN, 34);
- player->ADD_GOSSIP_ITEM(0, "Enchant Chest - Greater Defense" , GOSSIP_SENDER_MAIN, 35);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 165: // bracer
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Major Stamina" , GOSSIP_SENDER_MAIN, 23);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Superior Spellpower" , GOSSIP_SENDER_MAIN, 24);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Greater Assult" , GOSSIP_SENDER_MAIN, 25);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Major Spirit" , GOSSIP_SENDER_MAIN, 26);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Expertise" , GOSSIP_SENDER_MAIN, 27);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Greater Stats" , GOSSIP_SENDER_MAIN, 28);
- player->ADD_GOSSIP_ITEM(0, "Enchant Bracer - Exceptional Intellect" , GOSSIP_SENDER_MAIN, 29);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Attack Power" , GOSSIP_SENDER_MAIN, 93);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Spellpower" , GOSSIP_SENDER_MAIN, 95);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Stamina" , GOSSIP_SENDER_MAIN, 94);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Arcane Resist" , GOSSIP_SENDER_MAIN, 88);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Fire Resist" , GOSSIP_SENDER_MAIN, 89);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Frost Resist" , GOSSIP_SENDER_MAIN, 90);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Nature Resist" , GOSSIP_SENDER_MAIN, 91);
- player->ADD_GOSSIP_ITEM(0, "Fur Lining - Shadow Resist" , GOSSIP_SENDER_MAIN, 92);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 166: // glove
- {
- player->ADD_GOSSIP_ITEM(0, "Hand-Mounted Pyro Rocket" , GOSSIP_SENDER_MAIN, 104);
- player->ADD_GOSSIP_ITEM(0, "Handguard Hyperspeed Accelerators" , GOSSIP_SENDER_MAIN, 105);
- player->ADD_GOSSIP_ITEM(0, "Handguard Reticulated Armor Webbing" , GOSSIP_SENDER_MAIN, 106);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Greater Blasting" , GOSSIP_SENDER_MAIN, 17);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Armsman" , GOSSIP_SENDER_MAIN, 18);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Crusher" , GOSSIP_SENDER_MAIN, 19);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Agility" , GOSSIP_SENDER_MAIN, 20);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Precision" , GOSSIP_SENDER_MAIN, 21);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Expertise" , GOSSIP_SENDER_MAIN, 22);
- player->ADD_GOSSIP_ITEM(0, "Enchant Gloves - Exceptional Spellpower" , GOSSIP_SENDER_MAIN, 130);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 167: // legs
- {
- player->ADD_GOSSIP_ITEM(0, "Earthen Leg Armor" , GOSSIP_SENDER_MAIN, 61);
- player->ADD_GOSSIP_ITEM(0, "Frosthide Leg Armor" , GOSSIP_SENDER_MAIN, 62);
- player->ADD_GOSSIP_ITEM(0, "Icescale Leg Armor" , GOSSIP_SENDER_MAIN, 63);
- player->ADD_GOSSIP_ITEM(0, "Brilliant Spellthread" , GOSSIP_SENDER_MAIN, 64);
- player->ADD_GOSSIP_ITEM(0, "Sapphire Spellthread" , GOSSIP_SENDER_MAIN, 65);
- player->ADD_GOSSIP_ITEM(0, "Dragonscale Leg Armor" , GOSSIP_SENDER_MAIN, 107);
- player->ADD_GOSSIP_ITEM(0, "Wyrmscale Leg Armor" , GOSSIP_SENDER_MAIN, 108);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 168: // boots
- {
- player->ADD_GOSSIP_ITEM(0, "Nitro Boots" , GOSSIP_SENDER_MAIN, 103);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Assult" , GOSSIP_SENDER_MAIN, 36);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Tuskars Vitality" , GOSSIP_SENDER_MAIN, 37);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Superior Agility" , GOSSIP_SENDER_MAIN, 38);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Spirit" , GOSSIP_SENDER_MAIN, 39);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Vitality" , GOSSIP_SENDER_MAIN, 40);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Icewalker" , GOSSIP_SENDER_MAIN, 41);
- player->ADD_GOSSIP_ITEM(0, "Enchant Boots - Greater Fortitude" , GOSSIP_SENDER_MAIN, 42);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 169: // rings
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Assult" , GOSSIP_SENDER_MAIN, 85);
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Greater Spellpower" , GOSSIP_SENDER_MAIN, 86);
- player->ADD_GOSSIP_ITEM(0, "Enchant Ring - Stamina" , GOSSIP_SENDER_MAIN, 87);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 170: // One handed
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Titan Guard" , GOSSIP_SENDER_MAIN, 0);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Accuracy" , GOSSIP_SENDER_MAIN, 1);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Berserking" , GOSSIP_SENDER_MAIN, 2);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Black Magic" , GOSSIP_SENDER_MAIN, 3);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mighty Spellpower" , GOSSIP_SENDER_MAIN, 4);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Superior Potency" , GOSSIP_SENDER_MAIN, 5);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Ice Breaker" , GOSSIP_SENDER_MAIN, 6);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Lifeward" , GOSSIP_SENDER_MAIN, 7);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blood Draining" , GOSSIP_SENDER_MAIN, 8);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Blade Ward" , GOSSIP_SENDER_MAIN, 9);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Agility" , GOSSIP_SENDER_MAIN, 10);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Exceptional Spirit" , GOSSIP_SENDER_MAIN, 11);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Executioner" , GOSSIP_SENDER_MAIN, 12);
- player->ADD_GOSSIP_ITEM(0, "Enchant Weapon - Mongoose" , GOSSIP_SENDER_MAIN, 13);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 171: // Two handed
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Massacre" , GOSSIP_SENDER_MAIN, 14);
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Scourgebane" , GOSSIP_SENDER_MAIN, 15);
- player->ADD_GOSSIP_ITEM(0, "Enchant 2H Weapon - Giant Slayer" , GOSSIP_SENDER_MAIN, 16);
- player->ADD_GOSSIP_ITEM(0, "Enchant Stave - Greater Spellpower" , GOSSIP_SENDER_MAIN, 30);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }break;
- case 172: // Shield
- {
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Defense" , GOSSIP_SENDER_MAIN, 55);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Greater Intellect" , GOSSIP_SENDER_MAIN, 56);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Shield Block" , GOSSIP_SENDER_MAIN, 57);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Resilience" , GOSSIP_SENDER_MAIN, 58);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Major Stamina" , GOSSIP_SENDER_MAIN, 59);
- player->ADD_GOSSIP_ITEM(0, "Enchant Shield - Tough Shield" , GOSSIP_SENDER_MAIN, 60);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetObjectGuid());
- }
- break;
- }
- }
- }
- bool GossipSelect_EnchantNPC(Player* player, Creature* _Creature, uint32 sender, uint32 action)
- {
- // Main menu
- if (sender == GOSSIP_SENDER_MAIN)
- {
- player->PlayerTalkClass->ClearMenus();
- SendDefaultMenu_EnchantNPC(player, _Creature, action);
- }
- return true;
- }
- void AddSC_EnchantNPC()
- {
- Script* pNewScript;
- pNewScript = new Script;
- pNewScript->Name = "EnchantNPC";
- pNewScript->pGossipHello = &GossipHello_EnchantNPC;
- pNewScript->pGossipSelect = &GossipSelect_EnchantNPC;
- pNewScript->RegisterSelf();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement