Giter Site home page Giter Site logo

lb-wallet's Introduction

lb-wallet

Wallet script to create wallets/purses items as stashes.

  • Original Backpack Script by snipe-scripts
  • Deconvolutes Inventory
  • Robbable
  • Only Stores items that weigh 0.0

Add the following items to shared.lua/items.lua

["wallet"]              = {["name"] = "wallet",         ["label"] = "Leather Wallet", 		["weight"] = 2000, 		["type"] = "item", 		["image"] = "wallet.png",           ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Leather Wallet"}, 	
["dswallet"]            = {["name"] = "dswallet",       ["label"] = "Didier Sachs Wallet", 	["weight"] = 2000, 		["type"] = "item", 		["image"] = "dswallet.png",         ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Didier Sachs Wallet"},
["gnocchiwallet"]       = {["name"] = "gnocchiwallet",  ["label"] = "Gnocchi Wallet", 		["weight"] = 2000, 		["type"] = "item", 		["image"] = "gnocchiwallet.png",    ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Gnocchi Wallet"}, 	
["gnocchiclutch"]       = {["name"] = "gnocchiclutch",  ["label"] = "Gnocchi Clutch", 		["weight"] = 2000, 		["type"] = "item", 		["image"] = "gnocchiclutch.png",    ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Gnocchi Clutch"}, 	
["gnocchipurse"]        = {["name"] = "gnocchipurse",   ["label"] = "Gnocchi Purse", 		["weight"] = 2000, 		["type"] = "item", 		["image"] = "gnocchipurse.png",     ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Gnocchi Purse"}, 	
["dsclutch"]            = {["name"] = "dsclutch",       ["label"] = "Didier Sachs Clutch", 	["weight"] = 2000, 		["type"] = "item", 		["image"] = "dsclutch.png",         ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Didier Sachs Clutch"},
["dspurse"]             = {["name"] = "dspurse",        ["label"] = "Didier Sachs Purse", 	["weight"] = 2000, 		["type"] = "item", 		["image"] = "dspurse.png",          ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Didier Sachs Purse"}, 
["perseusclutch"]       = {["name"] = "perseusclutch",  ["label"] = "Perseus Clutch", 	    ["weight"] = 2000, 		["type"] = "item", 		["image"] = "perseusclutch.png",    ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Perseus Clutch"}, 	  
["perseuspurse"]        = {["name"] = "perseuspurse",   ["label"] = "Perseus Purse", 		["weight"] = 2000, 		["type"] = "item", 		["image"] = "perseuspurse.png",     ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Perseus Purse"}, 	
["cacaclutch"]          = {["name"] = "cacaclutch",     ["label"] = "Caca Clutch", 		    ["weight"] = 2000, 		["type"] = "item", 		["image"] = "cacaclutch.png",       ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Caca Clutch"}, 		  
["cacapurse"]           = {["name"] = "cacapurse",      ["label"] = "Caca Purse", 		    ["weight"] = 2000, 		["type"] = "item", 		["image"] = "cacapurse.png",        ["unique"] = true, 	["useable"] = true, 	["shouldClose"] = true,	   	["combinable"] = nil,   ["description"] = "Caca Purse"}, 		  

Make the following changes in inventory/html/app.js to display the backpack id when you hover over the item (optional)

Look for this logic

else if (itemData.name == "labkey") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Lab: " + itemData.info.lab + "</p>");
            
        } 

and add the following lines below it, like this

else if (itemData.name == "labkey") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Lab: " + itemData.info.lab + "</p><p style=\"font-size:11px\"><b>Weight: </b>" + itemData.weight + " | <b>Amount: </b> " + itemData.amount + " | <b>Quality: </b> " + "<a style=\"font-size:11px;color:green\">" + Math.floor(itemData.info.quality) + "</a>");
        } else if (itemData.name == "labkey") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Lab: " + itemData.info.lab + "</p>");
        } else if (itemData.name == "wallet") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Wallet ID: " + itemData.info.walletid + "</p>");
        } else if (itemData.name == "lvwallet") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Louis Vuitton Wallet ID: " + itemData.info.walletid + "</p>");
        } else if (itemData.name == "gucciwallet") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Gucci Wallet ID: " + itemData.info.walletid + "</p>");
        } else if (itemData.name == "spadeclutch") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Kate Spade Clutch ID: " + itemData.info.clutchid + "</p>");
        } else if (itemData.name == "spadepurse") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Kate Spade Purse ID: " + itemData.info.purseid + "</p>");
        } else if (itemData.name == "lvclutch") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Louis Vuitton Clutch ID: " + itemData.info.clutchid + "</p>");
        } else if (itemData.name == "lvpurse") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Louis Vuitton Purse ID: " + itemData.info.purseid + "</p>");
        } else if (itemData.name == "gucciclutch") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Gucci Clutch ID: " + itemData.info.clutchid + "</p>");
        } else if (itemData.name == "guccipurse") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Gucci Purse ID: " + itemData.info.purseid + "</p>");
        } else if (itemData.name == "chanelclutch") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Chanel Clutch ID: " + itemData.info.clutchid + "</p>");
        } else if (itemData.name == "chanelpurse") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>");
            $(".item-info-description").html("<p>Chanel Purse ID: " + itemData.info.purseid + "</p>");
        }

lb-wallet's People

Contributors

gldnrmz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.