-
Posts
171 -
Joined
-
Last visited
-
Feedback
100%
Posts posted by Tyluur
-
-
Shoutouts to the first 100 members.
-
-
make it run on another thread bitch!
This is just a snippet, do whatever you want with it bitch!
-
Since the API doesn't have inventory listening as of July 14th, 2014, I created my own.
package com.tyluur.utility.listener; import org.osbot.rs07.api.model.Item; /** * @author Tyluur <itstyluur@gmail.com> * @since Jul 9, 2014 */ public interface InventoryItemListener { public void handle(Item item); }
package com.tyluur.utility.listener; import java.util.ArrayList; import java.util.List; import org.osbot.rs07.api.model.Item; import org.osbot.rs07.script.Script; /** * @author Tyluur <itstyluur@gmail.com> * @since Jul 9, 2014 */ @SuppressWarnings("deprecation") public class InventoryListener { public InventoryListener(Script script) { this.script = script; updateItems(); } /** * The main tick event */ public void process(InventoryItemListener event) { List<Item> ourItems = currentInventory; List<Item> newItems = getNewInventory(); for (int i = 0; i < ourItems.size(); i++) { Item ourItem = ourItems.get(i); Item newItem = newItems.get(i); if (ourItem.getId() != newItem.getId() || ourItem.getAmount() != newItem.getAmount()) { event.handle(newItem); } } updateItems(); } private List<Item> getNewInventory() { List<Item> newList = new ArrayList<>(28); for (int i = 0; i < script.inventory.getItems().length; i++) { Item item = script.inventory.getItems()[i]; if (item == null) item = new Item(-1, -1); newList.add(item); } return newList; } /** * Updates our inventory item list with all the items in our inventory, and * clearing the list first of all contents */ private void updateItems() { currentInventory.clear(); if (script.inventory != null && script.inventory.getItems() != null) for (int i = 0; i < script.inventory.getItems().length; i++) { Item item = script.inventory.getItems()[i]; if (item == null) item = new Item(-1, -1); currentInventory.add(item); } } /** * The script this being ran on */ private final Script script; /** * The list of the items in our inventory, updated every time the * {@link #process()} method is called */ private final List<Item> currentInventory = new ArrayList<>(28); }
-
When will world hopping be fixed, or am i the only oe havng problems with it? It just keeps selecting new worlds over and over again
I'm having this issue too.
-
Yeah now you're saying that after the edit lol
No harm done.
-
Probably because he is the owner and founder of the site
I meant it as a challenge.
-
Someone beat me
-
You do realize you can write most of these yourself?
-
Why's this allowed but my advertisement wasn't?
-
client.getInventory().interactWithSlot(0, "Use");
animator.interact("Use", client.getInventory().getItems()[0].getName() + " -> " + animator.getName(), true, 2, false, false);This is how I did it for warriors guild.
-
Since someone released a half-assed price checker, I figured I'd release a proper one.
- 1
-
Good shit homie.
-
I'm already developing one.
-
So what exactly did you do? Anyone can download a deob rsps client
Lmfao you're a dumbass for real.
- 1
-
Tyluur, explain so I can improve .
I will make the next part today!
Control + shift + F on eclipse.3
-
this relogs and stuff then picks up skeleton/mask?
LOL'd
- 1
-
Would be better to use an enum for this.
-
Your conventions annoy me.
-
array[0]?...
what u mean by first available item.
-
Never mind, created my own system to do this.
-
bot.getUsername is exactly what I was looking for. Thanks
-
I'm requesting a list of a number of people that have purchased your script to be available.
-
Could always add if the bot is idling to restart whatever
I don't even think it loops during this idle time.
Matrix Dev Team [$500/WK] [2 WEEKS ONLY]
in Requests
Posted · Edited by Tyluur
I'm looking to put together a team of developers that can operate with a base like matrix
Examples:
1. https://github.com/CSS-Lletya/open727
2. https://github.com/Tyluur/redrune666-server/tree/main/src/org/redrune
3. https://github.com/Tyluur/lotica-server
This would be paid of course.
I need developers for client, cache, and server work.
Contact me over discord me if you're interested in applying - we can take it to pms.
Tyluur#1337
[B]Hiring for the next 2 weeks.[/B]