Welcome to AC Web.
Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31


    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 chyssler View Post
    hm i did what u said.. still i cant use any commands xD... damn

    (cant do .reload better / .reload_better) etc
    The commands don't have to be added to the command table. Did you add the loading function to the custom_script_loader.cpp and re-run cmake after that?
    Which source are you working with?

  2. #32
    Quote Originally Posted by Loud21 View Post
    Not tested on latest revision, but none of the functions changed and it worked on .63 so it should be good.
    I did however compile it on latest rev and added all of the missing headers.

    Hello!
    This code is inspired by Kaevs better item_template reload module for Azeroth core.

    It allows for fast-pace item creation and editing since it removes the need to delete the cache after every minor change, due to the fact that it updates the players cache with the new values during client run time.
    However you will not be able to override the following values, as they are stored in the Item.dbc file:

    1. ItemClass
    2. ItemSubClass
    3. sound_override_subclassid
    4. MaterialID
    5. ItemDisplayInfo
    6. InventorySlotID
    7. SheathID

    This system also come with built in full item_template and creature_template reload commands, which can be disabled in the code, by changing
    Code:
    bool creatureTemplateReloadEnabled = true;
    bool itemTemplateReloadEnabled = true;
    The speed at which the items are reloaded highly increases if CacheDataQueries is disabled in the config file.
    However, it will also work even with them enabled, but it will heavily slow the whole system down.

    Code:
    #   CacheDataQueries
    #        Description: Server caches data queries at startup. 
    #                     Can be disabled if not enough memory is available.
    #        Default:     1 - (Enabled)
    #                     0 - (Disabled)
    #
    #
    CacheDataQueries = 0
    The commands are
    Code:
    .reload_item_template
    .reload_full_creature_template
    .reload_better (You can list as many id's as you want in one row it will reload them all, for example .reload better 12 52 13)
    Here is a short video prev
    https://i.imgur.com/l9kvysU.mp4

    Add to custom_script_loader
    Code:
    void AddSC_custom_reload_commands()

    Code - Gist (Click Me)
    https://pastebin.com/t5h58sSX

    alot of classes like : "Class", "SoundOverrideSubclass" is not a member of "ItemEntry"
    What can I do about that? Using latest TDB, 335.21031

    also didnt really find any other "reload scripts" for newer than this xd
    Last edited by chyssler; 04-09-2021 at 09:36 AM.

  3. #33

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by chyssler View Post
    https://pastebin.com/t5h58sSX

    alot of classes like : "Class", "SoundOverrideSubclass" is not a member of "ItemEntry"
    What can I do about that? Using latest TDB, 335.21031

    also didnt really find any other "reload scripts" for newer than this xd
    Add my Discord, Dandi#2828. After we resolve your issue in private I'll copy-paste the update and post it here so everyone may enjoy this script.
    Just to confirm, you are running the latest TrinityCore version, correct?

 

 

Posting Permissions

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