- Joined
- Dec 29, 2018
- Messages
- 18
- Thread Author
- #1
I've made the script, it runs thru the rotations and can kill zulrah but theres a few things that need fixed before it can be finalized. I'm using a treebot
If you have any idea how to fix these problems and save me a little headache, i'd appreciate it.
(bot support mage only atm)
******Major problems********
1. Eating shark / drinking potions faster
Currently it eats really slow, like really slow.(at least for bossing) You could get comboed out before eating sometimes. I believe this is due to the querying time involved with creating a inventory item as a spriteitem.
Is there a faster way of querying inventory items? or is there a way i can just click on a individual inventory slot.
like i can tell the problem to click on inventory slot 3 without check whether there is anything in it? i could edit that to work for me. or just anything faster.
currently using
----LeafTask----
@Override
public void execute(){
SpriteItem shark = Inventory.getItems(385).random();
int health = Health.getCurrent();
if(health <= 75 && shark != null){
shark.interact("Eat");
}
}
2. Attacking Zulrah faster
it attacks zulrah slow, i dont know how to fix this. once it starts attacking its somewhat spam clicks, ive tried fixing that
public void execute(){
Npc mageZulrah = Npcs.getLoaded(2044).first();
if(mageZulrah != null) {
if(isAttacking == false) {
mageZulrah.interact("Attack");
}
}
}
******Minor fixs*******
walking onto the fog - i think this is just misclicks when it spam clicks, only way we could fix this is with more accurate clicking but im already using MLP mouse generator so i dont know how to be more accirate
If you have any idea how to fix these problems and save me a little headache, i'd appreciate it.
(bot support mage only atm)
******Major problems********
1. Eating shark / drinking potions faster
Currently it eats really slow, like really slow.(at least for bossing) You could get comboed out before eating sometimes. I believe this is due to the querying time involved with creating a inventory item as a spriteitem.
Is there a faster way of querying inventory items? or is there a way i can just click on a individual inventory slot.
like i can tell the problem to click on inventory slot 3 without check whether there is anything in it? i could edit that to work for me. or just anything faster.
currently using
----LeafTask----
@Override
public void execute(){
SpriteItem shark = Inventory.getItems(385).random();
int health = Health.getCurrent();
if(health <= 75 && shark != null){
shark.interact("Eat");
}
}
2. Attacking Zulrah faster
it attacks zulrah slow, i dont know how to fix this. once it starts attacking its somewhat spam clicks, ive tried fixing that
public void execute(){
Npc mageZulrah = Npcs.getLoaded(2044).first();
if(mageZulrah != null) {
if(isAttacking == false) {
mageZulrah.interact("Attack");
}
}
}
******Minor fixs*******
walking onto the fog - i think this is just misclicks when it spam clicks, only way we could fix this is with more accurate clicking but im already using MLP mouse generator so i dont know how to be more accirate