Template NPC

Greetings all.

I’m trying to create something like Easy Start (One click, and u have EQUIP, sockets, enchants and glyphs]

I have successfuly to create function for Equip and Enchants - With one click i get it.

But my functions for Glyphs and Sockets not work …

void ApplyGlyph(Player* player, uint8 slot, uint32 glyphID) { if (GlyphPropertiesEntry const* gp = sGlyphPropertiesStore.LookupEntry(glyphID)) { if (uint32 oldGlyph = player->GetGlyph(slot)) player->RemoveAurasDueToSpell(sGlyphPropertiesStore.LookupEntry(oldGlyph)->SpellId); player->CastSpell(player, gp->SpellId, true); player->SetGlyph(slot, glyphID); player->SendTalentsInfoData(false); } }

This one is for glyphs, it seems to be bugged or something, because i addded ApplyGlyph(player, slot, 43827);
and i don’t get any glyph This is define for slot uint8 slot = 0;

[CODE]

void Enchant(Player* player, Item* item, uint32 enchantid)
{
    if (!item)
    {
        player->GetSession()->SendNotification("You must first equip the item you are trying to enchant in order to enchant it!");
        return;
    }


    player->ApplyEnchantment(item, PERM_ENCHANTMENT_SLOT, false);
    item->SetEnchantment(PERM_ENCHANTMENT_SLOT, enchantid, 0, 0);
    player->ApplyEnchantment(item, PERM_ENCHANTMENT_SLOT, true);
    
}[/CODE]

[CODE]

void SocketSlot1(Player* player, Item* item, uint32 gemid)
{
    if (!item)
    {
        player->GetSession()->SendNotification("You must first equip the item you are trying to enchant in order to enchant it!");
        return;
    }


    player->ApplyEnchantment(item, SOCK_ENCHANTMENT_SLOT, false);
    item->SetEnchantment(SOCK_ENCHANTMENT_SLOT, gemid, 0, 0);
    player->ApplyEnchantment(item, SOCK_ENCHANTMENT_SLOT, true);
    
}[/CODE]

and this is how you add the glyphs:

             //Minor
             AddGlyph(player, 1, MINOR_WARRIOR_GLYPH_OF_BATTLE);
             //Minor
             AddGlyph(player, 2, MINOR_WARRIOR_GLYPH_OF_BLOODRAGE);
             //Minor
             AddGlyph(player, 4, MINOR_WARRIOR_GLYPH_OF_COMMAND);
             //Major
             AddGlyph(player, 3, MAJOR_WARRIOR_GLYPH_OF_RENDING);
             //Major
             AddGlyph(player, 5, MAJOR_WARRIOR_GLYPH_OF_WHIRLWIND);
             //Major
             AddGlyph(player, 0, MAJOR_WARRIOR_GLYPH_OF_HEROIC_STRIKE);

GLYPH work thanks need Socket please

already posted sockets above

Give me please your Skype

I was wondering how can I make it so when a player clicks the gossip option he gets the items UNEQUIPED IN THE BAGS not deleted /emoticons/default_wink.png

How do I call the meta gem function because it doesn’t seem to work the way I’m doing it

AddMetaTemplate(player, player->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_HEAD), 41398);

Use SocketSlot1 function … Meta gem in headslot is always socket1

please give me fully script