SRL Archive - Help

Abyss obstacle finding


anoobis

2015-04-17 22:58:13

Hey guys,

I started working on a Lape/AL/Reflection script for Abyss Runecrafting but have been having trouble finding the interactable obstacles in the outer ring.

What it looks like is that each object location has kind of a dummy ID, which rolls which of the obstacles will appear there. The obstacles reroll every time they are used but the location ID stays is constant. I can find the location object but trying to retrieve information that I would expect to be there like name or actions returns null.

I found a post on another forum that explains it better:

Here's some information that may be helpful. I'd verify it's still accurate before using it (I haven't tried it out).The object id is listed first, followed by information about the local objects that are shown depending on a particular variable's value. Use that value to figure out what object you're dealing with.

7142:
-- name: "Blockage" or "Rock" or "Tendrils" or "Boil" or "Eyes" or "Gap" or "Passage" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7156, 7158, 7161, 7165, 7168, 7164, 7154, 7164, 7168, 7165, 7161, 7158, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Blockage, Rock, Tendrils, Boil, Eyes, Gap, Passage, Gap, Eyes, Boil, Tendrils, Rock, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7143:
-- name: "Rock" or "Blockage" or "Tendrils" or "Boil" or "Eyes" or "Passage" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7158, 7156, 7158, 7161, 7165, 7168, 7158, 7154, 7158, 7168, 7165, 7161, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Rock, Blockage, Rock, Tendrils, Boil, Eyes, Rock, Passage, Rock, Eyes, Boil, Tendrils, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7144:
-- name: "Tendrils" or "Rock" or "Blockage" or "Boil" or "Passage" or "Broken rock" or "Chopped tendrils" or "Eyes"
-- 21 local(s): [7161, 7158, 7156, 7158, 7161, 7165, 7161, 7158, 7154, 7158, 7161, 7165, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Tendrils, Rock, Blockage, Rock, Tendrils, Boil, Tendrils, Rock, Passage, Rock, Tendrils, Boil, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7145:
-- name: "Boil" or "Tendrils" or "Rock" or "Blockage" or "Passage" or "Broken rock" or "Chopped tendrils" or "Eyes"
-- 21 local(s): [7165, 7161, 7158, 7156, 7158, 7161, 7165, 7161, 7158, 7154, 7158, 7161, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Boil, Tendrils, Rock, Blockage, Rock, Tendrils, Boil, Tendrils, Rock, Passage, Rock, Tendrils, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7146:
-- name: "Eyes" or "Boil" or "Tendrils" or "Rock" or "Blockage" or "Passage" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7168, 7165, 7161, 7158, 7156, 7158, 7168, 7165, 7161, 7158, 7154, 7158, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Eyes, Boil, Tendrils, Rock, Blockage, Rock, Eyes, Boil, Tendrils, Rock, Passage, Rock, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7147:
-- name: "Gap" or "Eyes" or "Boil" or "Tendrils" or "Rock" or "Blockage" or "Passage" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7164, 7168, 7165, 7161, 7158, 7156, 7164, 7168, 7165, 7161, 7158, 7154, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Gap, Eyes, Boil, Tendrils, Rock, Blockage, Gap, Eyes, Boil, Tendrils, Rock, Passage, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7148:
-- name: "Passage" or "Gap" or "Eyes" or "Boil" or "Tendrils" or "Rock" or "Blockage" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7154, 7164, 7168, 7165, 7161, 7158, 7156, 7164, 7168, 7165, 7161, 7158, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Passage, Gap, Eyes, Boil, Tendrils, Rock, Blockage, Gap, Eyes, Boil, Tendrils, Rock, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7149:
-- name: "Gap" or "Passage" or "Eyes" or "Boil" or "Tendrils" or "Blockage" or "Rock" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7164, 7154, 7164, 7168, 7165, 7161, 7164, 7156, 7164, 7168, 7165, 7161, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Gap, Passage, Gap, Eyes, Boil, Tendrils, Gap, Blockage, Gap, Eyes, Boil, Tendrils, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7150:
-- name: "Eyes" or "Gap" or "Passage" or "Boil" or "Blockage" or "Rock" or "Broken rock" or "Tendrils" or "Chopped tendrils"
-- 21 local(s): [7168, 7164, 7154, 7164, 7168, 7165, 7168, 7164, 7156, 7164, 7168, 7165, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Eyes, Gap, Passage, Gap, Eyes, Boil, Eyes, Gap, Blockage, Gap, Eyes, Boil, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7152:
-- name: "Tendrils" or "Boil" or "Eyes" or "Gap" or "Passage" or "Blockage" or "Rock" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7161, 7165, 7168, 7164, 7154, 7164, 7161, 7165, 7168, 7164, 7156, 7164, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Tendrils, Boil, Eyes, Gap, Passage, Gap, Tendrils, Boil, Eyes, Gap, Blockage, Gap, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

7153:
-- name: "Rock" or "Tendrils" or "Boil" or "Eyes" or "Gap" or "Passage" or "Blockage" or "Broken rock" or "Chopped tendrils"
-- 21 local(s): [7158, 7161, 7165, 7168, 7164, 7154, 7158, 7161, 7165, 7168, 7164, 7156, 7159, 7160, 7162, 7163, 7166, 7167, 7169, 7170, -1]
--- [Rock, Tendrils, Boil, Eyes, Gap, Passage, Rock, Tendrils, Boil, Eyes, Gap, Blockage, Rock, Broken rock, Tendrils, Chopped tendrils, Boil, Boil, Eyes, Eyes, null]
-- vbid: 625
--- vb: bits 18 to 29 of setting [491]
-- sid: -1

So the information is there but I can't really figrue out how I'd go about accessing it. I'm not even sure which class/fields I'd use to isolate the "real" object from the location. If anyone could leave me some breadcrumbs or share how they think it works I'd really appreciate it.
Thanks,
anoobis

Flight

2015-04-18 09:33:30

Welcome to one of the aspects that makes this a difficult script. I'm quite sure the java bots look for composite or model IDs rather than the object's base ID. Or you could do like Wetish, Home, Icefire and myself and just search for color (Eyes or Rocks stand out the most).

anoobis

2015-04-18 10:06:58

Thanks for the reply, I thought I was missing something more obvious. Kind of nice to know it isn't so simple for once; leaves room for a bit of ingenuity that I haven't used in a while with such developed includes nowadays ^_^

tls

2015-04-18 15:39:20

This has to do with incomplete implementation of npc ids.