Skip to content

codex #dreambot

//The script should:
//1. Log in to the game.
//2. Go to the Zulrah boss.
//3. Kill the boss.
//4. Repeat.

//The script should be able to:
//1. Handle the different phases of the boss.
//2. Handle the different attacks of the boss.
//3. Handle the different attacks of the player.
//4. Handle the different items in the inventory.
//5. Handle the different items on the ground.
//6. Handle the different items in the bank.

//The script should be able to:
//1. Use the correct prayer.
//2. Use the correct potion.
//3. Use the correct food.
//4. Use the correct weapon.
//5. Use the correct attack style.
//6. Use the correct special attack.

//The script should be able to:
//1. Loot the items.
//2. Bank the items.
//3. Sell the items.

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;

import javax.imageio.ImageIO;

import org.dreambot.api.methods.Calculations;
import org.dreambot.api.methods.container.impl.bank.BankLocation;
import org.dreambot.api.methods.container.impl.bank.BankMode;
import org.dreambot.api.methods.container.impl.bank.BankType;
import org.dreambot.api.methods.container.impl.equipment.EquipmentSlot;
import org.dreambot.api.methods.filter.Filter;
import org.dreambot.api.methods.map.Area;
import org.dreambot.api.methods.map.Tile;
import org.dreambot.api.methods.skills.Skill;
import org.dreambot.api.methods.tabs.Tab;
import org.dreambot.api.methods.walking.path.impl.LocalPath;
import org.dreambot.api.methods.walking.path.impl.LocalPath.Step;
import org.dreambot.api.methods.walking.pathfinding.impl.web.node.Node;
import org.dreambot.api.methods.world.World;
import org.dreambot.api.script.AbstractScript;
import org.dreambot.api.script.Category;
import org.dreambot.api.script.ScriptManifest;
import org.dreambot.api.script.listener.MessageListener;
import org.dreambot.api.script.listener.PaintListener;
import org.dreambot.api.utilities.Timer;
import org.dreambot.api.utilities.impl.Condition;
import org.dreambot.api.wrappers.interactive.GameObject;
import org.dreambot.api.wrappers.interactive.NPC;
import org.dreambot.api.wrappers.items.GroundItem;
import org.dreambot.api.wrappers.items.Item;
import org.dreambot.api.wrappers.widgets.WidgetChild;
import org.dreambot.api.wrappers.widgets.message.Message;

@ScriptManifest(author = "Code a Dream", category = Category.COMBAT, name = "Zulrah", version = 1.0)
public class Zulrah extends AbstractScript implements PaintListener, MessageListener {

    private final int[] ZULRAH_IDS = { 2042, 2043, 2044 };
    private final int[] ZULRAH_IDS_2 = { 2042, 2043, 2044, 2045 };
    private final int[] ZULRAH_IDS_3 = { 2042, 2043, 2044, 2045, 2046 };
    private final int[] ZULRAH_IDS_4 = { 2042, 2043, 2044, 2045, 2046, 2047 };

Last update: November 18, 2023
Created: October 12, 2023