March 9, 201510 yr I'm trying to make an easy Wine grabber but I can't get the telekinetic grab or whatever spell to work.Help would be greatly appreciated.
March 9, 201510 yr I'm trying to make an easy Wine grabber but I can't get the telekinetic grab or whatever spell to work. Help would be greatly appreciated. please post your current code which isn't working and then we can fix this issue Precise
March 9, 201510 yr Author Th is is my current code: package wineripper; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.Inventory; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.ui.Spells; import java.awt.*; @ScriptManifest(name = "Winegrabber", author = "Dalukas", version = 1.0, info = "", logo = "") public class Wineripper extends Script { public static final Spells.NormalSpells TELEKINETIC_GRAB = null; public String WINE_NAME = "Wine of zamorak"; @Override public void onStart() { // Code here will execute before the loop is started } @Override public void onExit() { // Code here will execute after the script ends } @Override public int onLoop() throws InterruptedException { Inventory inven = getInventory(); if (!inven.isFull()) { Entity wine = getObjects().closestThatContains(WINE_NAME); magic.castSpellOnEntity(TELEKINETIC_GRAB, wine); } return 100; } @Override public void onPaint(Graphics2D g) { // Paint } } Edited March 9, 201510 yr by dalukas
March 9, 201510 yr Th is is my current code: public static final Spells.NormalSpells TELEKINETIC_GRAB = null;
March 9, 201510 yr Th is is my current code: public static final Spells.NormalSpells TELEKINETIC_GRAB = null; why is that there? You are basicly using a spell which is NULL in the interact method. Just use the MagicSpell in the method instead
March 9, 201510 yr Also, i'm pretty sure the wine is a ground item! GroundItem wine = groundItems.closest(WINE_NAME);
Create an account or sign in to comment