HunterBiden Posted September 29, 2023 Share Posted September 29, 2023 Hey guys, I'm working on my own Dicing script, and I'm wondering how to detect gp in the inventory. Would I just check for the number(i.e "100k") or do I need something more specific. Thanks Quote Link to comment Share on other sites More sharing options...
skillerkidos1 Posted September 29, 2023 Share Posted September 29, 2023 //do we have any coins if(getInventory().contains("Coins")) { //do we have >= 100k coins if (getInventory().getAmount("Coins") >= 100000) { log("we got the $$$"); } } 1 Quote Link to comment Share on other sites More sharing options...
BelethDev Posted September 29, 2023 Share Posted September 29, 2023 I've been wondering the same thing. Now I just need to figure out how to make the trades work and I'll have a dicing bot of my own. Quote Link to comment Share on other sites More sharing options...
memelord123 Posted September 30, 2023 Share Posted September 30, 2023 long coinage = getInventory().getAmount("Coins"); Quote Link to comment Share on other sites More sharing options...