[2.x] Pre-AOS Craft Gump And Tool Framework 01-12-2018

Tool, Tutorial, Craft, Crafting

  1. gametec

    gametec Page

    Joined:
    Jan 22, 2015
    Messages:
    53
    Likes Received:
    15
    gametec submitted a new resource:

    Pre-AOS Craft Gump And Tool Tutorial - Tool, Tutorial, Craft, Crafting

    Read more about this resource...
     
  2. maybeshewill

    maybeshewill Sorceror

    Joined:
    Nov 6, 2010
    Messages:
    409
    Likes Received:
    67
    Thanks this is very cool.

    How to add the resources necessary to craft the item?
     
  3. gametec

    gametec Page

    Joined:
    Jan 22, 2015
    Messages:
    53
    Likes Received:
    15
    You can do a few things with custom crafts and the resources used to create them:

    The gump itself will only list the categories from which you can craft. You can then either make an entirely new gump listing all of the object/items within a selected category for the player to craft, or you can reuse a different copy of this gump and set it up with the items you wish to craft complete with pictures like in the preview above. As for using resources: crafting isn't as difficult as people think, and the way the RunUO Development Team coded its crafting system is a complete mess unless you know what was done to the code and why.

    So when I think about crafting I separate the parts involved in creating an item:
    • You have the item you need to craft:
      • lets say we want to craft a Fancy Plate Armor (with wood inlay - to be complex about it)
        • we'll need 10 iron ingots for each piece with a lost of 2 ingots on failed attempts (keep it simple)
        • we'll need 5 boards with a loss of 1 board on a failed attempt on each piece
      • this is roughly what I would use to craft this armor so we now have our ingredients:
        • find the pieces you listed on this gump or a custom one, click a button to craft it.
          • the system you create should then check for each resource in your pack and consume them.
            • If successful the player gets the item, if failed the player receives notification.
    There are several examples of what I described above on this forum (pretty much any custom crafting system available):

    Drug Harvesting System:
    http://www.runuo.com/community/threads/harvestable-drugs-runuo-2-0-callandor2k-ml-svn.100260/

    Mystic Crafting:
    http://www.runuo.com/community/threads/runuo-2-0-rc1-mystic-crafting.82082/

    Medical Crafting:
    http://www.runuo.com/community/threads/medical-crafting.90063/

    Wax Crafting:
    http://www.runuo.com/community/threads/wax-crafting.67581/

    Wood Crafting:
    http://www.runuo.com/community/threads/runuo-2-0-rc1-woodcrafting.70549/
     
    maybeshewill likes this.

Share This Page