Everything posted by shaba123
-
How would i go about grabbing the value of items in my inventory?
Yeah i mean its useless to ME not everyone , i know i cant use it properly. Okay thanks
-
How would i go about grabbing the value of items in my inventory?
so i need to use hash.get("Rune full helm") But how do i get the items name from getInventory.getItems and input that where hash.get(i) is . Gahh im so confused. Also my hashmap is in its own void : public static void hashing(String args[]) { HashMap<String, Integer> hash = new HashMap<>(); hash.put("Rune full helm", 20000); hash.put("cat", 2); hash.put("rabbit", 3); log(hash.get("Rune full helm")); } And in that void it wont let me use getInventory. But out of that void it wont let me use hash.get ! So the hashmap is useless to me
-
How would i go about grabbing the value of items in my inventory?
Hi d0zza Iv been looking at hashmaps and come up with this : HashMap<String, Integer> hash = new HashMap<>(); hash.put("Rune full helm", 20000); hash.put("Stamina potion(1)", 500); hash.put("Rune platelegs", 40000); I just cant figure out how to link it all together : for (Item i : getInventory().getItems()) { lootValue += hash.get(i); }
-
How would i go about grabbing the value of items in my inventory?
Thank you d0zza ill look into that now
-
Define itemID to a number
This thread can be deleted, d0zza answered my question in another thread,
-
How would i go about grabbing the value of items in my inventory?
Hi mate thanks for this reply, im trying to put this into practice but really struggling. My list of item values if like this : runeFH = getPrice(1163); runePB = getPrice(1127); runePL = getPrice(1079); runeKS = getPrice(1201); Im grabbing the values from osbuddy which is working fine. How can i assign the prices to their itemId so i can use your example.
-
Define itemID to a number
How can i define an item id to a number? I want to say itemId(991) = 12345; So that i can check to see if my inventory contains itemId(991) and if it does then it will add 12345 to an integer.
-
Client crashes when i tell it to walk
Im using this to walk to an area in the wilderness: if (lootValue < 50000) { Log("Loot value less than 50k") getWalking().walk(teleportArea); } I get the log message then the client doesnt walk it starts freezing up then crashes completely. The logger says thread death. edit: also tried: getWalking().walk(pos1, pos2, pos3); and it just does nothing but doesn't crash. Also tried this: WalkingEvent myEvent = new WalkingEvent(new Position(1, 2, 3)); execute(myEvent); Also does nothing. Im running this onStart. The place i want to walk to is quite close. Is it because im in the wilderness? cant you walk in some areas of the map or something? edit: Managed to do it by creating my own path from a guide Alek wrote, thank you
-
How would i go about grabbing the value of items in my inventory?
edit: i think i have worked it out by resetting the lootValue to 0 before checking inventory. This is what i am using : public void updateInventoryValue() { lootValue = 0; if (getInventory().contains("Dragon 2h sword")) { lootValue = lootValue + drag2H; } log(lootValue); } I run that after looting an item. But it wont work properly because what if i looted two dragon 2h swords. There must be a better way of doing this
-
How would i go about grabbing the value of items in my inventory?
So my script is a bit of a mess right now. On start i grab the prices of around 30 different items from rsbuddy using : item1 = getPrice(1163); item2 = getPrice(1127); item3 = getPrice(1079); item4 = getPrice(1201); item5 = getPrice(1347); I have a list of items to loot like so : String[] itemsToLoot = new String[]{"Bones", "Coins", "Rune longsword", "Rune warhammer"}; So say a monster drops a piece of loot, this time its "Bones" which are looted by item name "Bones" . On my list of prices item1 is the price of Bones. After i loot the bones how do i tell the script it has looted bones and to add the price of bones to an integer. edit: the only way i can think of is using if (getInventory().contains("Bones")) { lootValue = lootValue + item1 } edit: if i use the above example, everytime i check the inventory it will see if it contains bones and add the price on again.
-
How would i go about grabbing the value of items in my inventory?
Im trying to grab the total value of all items in my inventory, is there any tutorials or snippets on this? iv used the search but cant find much. Basically im making a script that kills monsters and loots the items, i need to grab the total loot value to let me know how much money i have made. I have the value of every item the monsters drops and the item name so i do not need to use osbuddy exchange or anything. I just need to tally up the value of the inventory after every kill.
-
How and when to use CASE?
Thank you so much for your help, both of you.
-
How and when to use CASE?
I have this snippet iv just taken from snippet section, could your or someone break it down for me and tell me what it does? id really appreciate it, and thanks for the reply btw private void hoverskill() throws InterruptedException { if (tabs.getOpen() != Tab.SKILLS) { tabs.open(Tab.SKILLS); } switch (attmethod) { case ATTACK: getWidgets().get(320, 1).hover(); break; case STRENGTH: getWidgets().get(320, 2).hover(); break; case DEFENCE: getWidgets().get(320, 3).hover(); break; } sleep(random(4000, 7000)); } private Skill getAttMethod() { switch (getConfigs().get(43)) { case 0: attmethod = Skill.ATTACK; break; case 1: attmethod = Skill.STRENGTH; break; case 3: attmethod = Skill.DEFENCE; break; } return attmethod; }
-
How and when to use CASE?
Can someone explain to me what case is, how and when to use case in a script?
-
Perfect Fighter AIO
Hi can this script bank after looting a certain amount of loot? I know you can set it to stop after looting a certain item but can i set it to go bank after it loots over 200k? I want to use it at revenants. Could it also run below 30 wildy to teleport? Will buy script if so. Thank you.
-
Attack more than one npc?
If there is 5 different npcs in an area with different names how can i attack the closest one?
-
Perfect Fighter AIO
Hi can this script bank after you loot a certain amount? say i loot 100k in items can it bank then? Also can it use teleports to bank faster and to get to the fighting area? Thanks
-
Fruity Barrows (Frost Barrows)
damn this script is amazing thanks for the trail ima buy this
-
Fruity Barrows (Frost Barrows)
Can i get a trial of this please if trials are available? thanks
-
Fruity NMZ
Your settings are incorrect, do you have Re-enter dream option checked in Dream settings?
-
OsBot says SOCKS proxy configuration error
Thanks guys ill just keep trying to restart.
-
OsBot says SOCKS proxy configuration error
Osbot is saying SOCKS proxy configuration error when i try to Add Bot. It was working fine last night, Heres the log : [INFO][04/18 09:03:36 AM]: Loaded 5 RS accounts! [INFO][04/18 09:03:36 AM]: Welcome to OSBot 2.5.5! [INFO][04/18 09:04:05 AM]: Updated injection hooks for client revision : 168! [DEBUG][Bot #1][04/18 09:04:05 AM]: Initializing stealth injection bot... [INFO][Bot #1][04/18 09:04:07 AM]: Downloading latest RS2 old-school client parameters... [INFO][04/18 09:04:28 AM]: Started bot #1 [DEBUG][Bot #2][04/18 09:05:55 AM]: Initializing stealth injection bot... [INFO][Bot #2][04/18 09:05:56 AM]: Downloading latest RS2 old-school client parameters... [INFO][04/18 09:06:17 AM]: Started bot #2 I dont use any proxys btw so i dont know why this is happening, use proxys is unchecked.
-
Fruity NMZ
One thing iv noticed recently. I have it set to do 1 dream and to end dream by idling. When the dream ends it right clicks the overload barrel to withdraw more overloads then where you type how many you want to take out of the barrel then it just sits there till it logs out. I think it should just not do anything after the dream ends as when i do 4 seperate dreams a day and it always goes to the barrel after it looks suspicious. And btw thanks for the constant updates for this script and looking into bugs, much more than other scripts iv bought for osbot
-
Khal Warrior Barrel
Is this script working flawless?
-
osFisher
Anyone managed 1-99 fishing with this?