mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-02 16:49:02 +00:00
fixup
This commit is contained in:
Generated
-3
@@ -3,12 +3,9 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="14d0b690-21f2-4a9c-b8cf-803e9cc87ab5" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Fighting.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Fighting.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Fish.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Fish.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/MakeArrowShafts.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/MakeArrowShafts.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Mine.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Mine.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/PickupItems.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/PickupItems.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Thieving.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/ParaScript/strategies/Thieving.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
||||
@@ -33,10 +33,6 @@ public class Fish implements Strategy {
|
||||
if (Inventory.getCount(441) >= 1) Inventory.getItem(441).interact(Items.Option.DROP);
|
||||
}
|
||||
|
||||
for (int item_id: items)
|
||||
if (Inventory.getItem(item_id + 1) != null)
|
||||
Menu.sendAction(431, item_id, Inventory.getItem(item_id + 1).getSlot(), 5064, 3);
|
||||
|
||||
fishingSpot.interact(Variables.fishing_type_selected);
|
||||
Time.sleep(1000);
|
||||
|
||||
@@ -48,10 +44,12 @@ public class Fish implements Strategy {
|
||||
}
|
||||
|
||||
private Npc fishingSpot(){
|
||||
for(Npc spot : Npcs.getNearest(316)){
|
||||
if (spot != null)
|
||||
return spot;
|
||||
}
|
||||
try {
|
||||
for (Npc spot : Npcs.getNearest(316)) {
|
||||
if (spot != null)
|
||||
return spot;
|
||||
}
|
||||
} catch (Exception ಠ_ಠ){}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user