Hey!
I've been planning to recreate JJ's Great Orb Project for SRL6 and RS3 for a long time. I've finally started scripting again and I will post my progress in this thread. I did the same thing for the original version: old development thread.
I will only work on this script in the weekends and during holidays. Expect it somewhere in the first half of 2015..
Code on Github: https://github.com/JJdeGroot/JJs-Great-Orb-Project
Overview
Red: not started
Orange: in progress
Green: finished
Lobby
- Detecting a normal wizard
- Detecting Wizard Acantha
- Detect Wizard Vief
- Detecting the portal to start the game
Altars
For each altar I will need to:
- Extract the minimap
- Determine altar coordinates
- Determine portal coordinates
- Detect altar
- Air
- Mind
- Water
- Earth
- Fire
- Body
Playing the game
- Detecting the current area
- Joining a game
- Going through all portals
- Walking around
- Attracting orbs
- Crafting runes by clicking on the altar
- Kick detection
- Failsafes
Report
21/02/2015
Clean installed Simba.
Read through Simplistic Beginners Guide To RS3 Scripting
Script skeleton created
22/02/2015
Managed to determine my position:
1. Created a map of the earth altar
2. Placed it in /RuneScape_Surface/
3.
Code:
gop_map: TSPSArea;
gop_map.setup('great_orb_project', 'RuneScape_Other\');
gop_map.GetPlayerPos();
Script does now use multiple simba files
25/02/2015
TAltar type created
Code:
type
TAltar = record
name: String;
coords: TBox;
altarColor: TColorData;
end;
Dummy data entered for all altars
Worked on an altar detection function and I wanted to debug the ATPA. This gave me an Access Violation exception that bothered me for a while. Turns out that you need to call smartEnableDrawing := true; before setupSRL(); So that resolved it..
All altar colors have been collected and put in the script.
I've also finished mapping all the altars. I'm missing the GOP lobby though.
26/02/2015
Finished all mapping now. My first map turned out to be inaccurate for the GOP lobby. SPS returned locations in the mind altar, probably because of the larger amount of black space around it. But SPS can now also load bigger maps than 512x512. So I have constructed a 1024x512 map with more spacing and bigger areas.
The map I used for the previous version of the script looks like this.
Colors have changed significantly, mainly due to using OpenGL graphics mode instead of the old Safe mode.
The new map works a lot better, SPS is returning very accurate locations. I have gathered all altar, portal and area coordinates.
Code:
with altars[AIR] do
begin
name := 'Air altar';
area := IntToBox(42, 16, 232, 216);
altar := IntToBox(134, 106,146, 122);
portal := IntToBox(122, 134, 130, 142);
altarColor := [8418940, 5, [2, [0.34, 0.10, 0.00]]];
end;
etc.
27/02/2015
- Read through A lot About Lape..
- Inheritance is now properly used to cover all areas (air, water, mind, earth, fire, body, lobby)
- Current area can be detected and works accurately
- Gathered data in the GOP lobby: wizard colors, acantha colors, vief colors.
01/03/2015
- Wizard detection working fairly well.. very good for Acantha, decent for the Wizards, not so good for Vief. I might need to combine multiple colors for him.
- Chosen wizard can be right clicked, and Join can be selected
- End of my holiday, new progress next weekend
22/05/2015
- Wizard colors have been updated
- Methods to go through Wizard Vief & Wizard Acantha their join-interface
26/12/2015
- Altar colors have been updated
- Positioning code has been expanded
- Detecting the current altar, blindwalking to the altar and clicking the altar works pretty decently.