Jump to content

[Snippet] Tanner


Scripter 3

Recommended Posts

public enum Tanner {

    LEATHER("Cowhide", 324, 148, "Leather"),
    HARD_LEATHER("Cowhide", 324, 149, "Hard leather"),
    GREEN_LEATHER("Green dragonhide", 324, 152, "Green dragon leather"),
    RED_LEATHER("Red dragonhide", 324, 154, "Red dragon leather"),
    BLUE_LEATHER("Blue dragonhide", 324, 153, "Blue dragon leather"),
    BLACK_LEATHER("Black dragonhide", 324, 107, "Black dragon leather");

    private int parent, child; //WidgetParent, WidgetChild
    private String startProduct, endProduct;

    Tanner(String startProduct, int parent, int child, String endProduct) {
        this.startProduct = startProduct;
        this.parent = parent;
        this.child = child;
        this.endProduct = endProduct;
    }

    public int getParent() {
        return parent;
    }

    public int getChild() {
        return child;
    }

    public String getStartProduct() {
        return startProduct;
    }

    public String getEndProduct() {
        return endProduct;
    }

}

refer to http://osbot.org/forum/topic/95545-snippet-a-start-to-an-aio-runecrafter-open-source for an example on usage.

Edited by Scripter 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...