Welcome to AC Web.
Results 1 to 4 of 4
  1. #1

    Exclamation Remove Sockets !


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Hi Guys

    How to remove all sockets of the player items?

    I want to reset/remove all socket,gems,metas.. on the item players in the server!

  2. #2
    Teacher of everything

    Join Date
    Sep 2011
    Location
    Wernerland
    Posts
    2,511
    refering to an older thread.. http://www.ac-web.org/forums/showthr...=1#post2298473

    Hope it helped you out. Next time use the search function.

    Cheers.

  3. #3
    @Psykko Thankyou

    How to reset player all spells and skills ?

  4. #4


    Join Date
    Nov 2015
    Location
    Library of Elchea
    Posts
    682

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by Psykko View Post
    refering to an older thread.. http://www.ac-web.org/forums/showthr...=1#post2298473

    Hope it helped you out. Next time use the search function.

    Cheers.
    Note that this will only work if all of your characters are logged out and it will also remove all of the enchantments from the items.

    If you're trying to remove sockets during runtime, you will have to iterate through all of the players items and them one by one with something like this
    Code:
     
    for (uint32 i = SOCK_ENCHANTMENT_SLOT; i < BONUS_ENCHANTMENT_SLOT; i++)
    {
        SpellItemEnchantmentEntry const* enchantmentEntry = sSpellItemEnchantmentStore.LookupEntry(item->GetEnchantmentId(EnchantmentSlot(i)));
        if (!enchantmentEntry)
            continue;
    
        player->_ApplyItemMods(item, item->GetSlot(), false);
        itemTar->SetEnchantment(EnchantmentSlot(i), 0, 0, 0);
        player->_ApplyItemMods(item, item->GetSlot(), true);
    }
    Quote Originally Posted by 4wow View Post
    @Psykko Thankyou

    How to reset player all spells and skills ?
    If you want to do it during runtime check how the .reset spell/talent and skill commands work. If you want to do it while the server is offline you can clear out character_spells and character_skills tables located in your character database.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •