Gimp Posted October 7, 2015 Posted October 7, 2015 (edited) EDIT: I've made my own that works. Edited October 7, 2015 by Gimp
Chris Posted October 7, 2015 Posted October 7, 2015 (edited) private int lootCount; //bla if(condition 1){ lootCount++; //the basics but work with } or lootCount += getInventory.getamount() ///blagh g2d.drawstring.........("Loot gained: "+lootCount+,9,99); So now we have the price of our item but we dont know how many items we have fished, cut, cooked, made. To work this out you would have the following code either in your onMessage() method where by every time the client detects "You cut a log" you add one to the variable ItemsMade or you would add one to the same variable each time you were inside for example the crafting method of your runecrafting script. Either way the code for that is as follows: itemsMade += 1; Source: http://osbot.org/forum/topic/59590-the-full-paint-tutorial-all-aspects-covered-pug-tutorials/ Edited October 7, 2015 by TheObserver
Gimp Posted October 7, 2015 Author Posted October 7, 2015 private int lootCount; //bla if(condition 1){ lootCount++; //the basics but work with } or lootCount += getInventory.getamount() ///blagh g2d.drawstring.........("Loot gained: "+lootCount+,9,99); So now we have the price of our item but we dont know how many items we have fished, cut, cooked, made. To work this out you would have the following code either in your onMessage() method where by every time the client detects "You cut a log" you add one to the variable ItemsMade or you would add one to the same variable each time you were inside for example the crafting method of your runecrafting script. Either way the code for that is as follows: itemsMade += 1; Source: http://osbot.org/forum/topic/59590-the-full-paint-tutorial-all-aspects-covered-pug-tutorials/ You don't get a message when you pick up an item though
Chris Posted October 7, 2015 Posted October 7, 2015 You don't get a message when you pick up an item though just for example for the paint
Gimp Posted October 7, 2015 Author Posted October 7, 2015 just for example for the paint I need it to add a number whenever i pick up something from the loot id list. Like with the dragon scripts, it has Bones Collected
Mysteryy Posted October 7, 2015 Posted October 7, 2015 You will need to make your own inventory listener.