PDA

View Full Version : Herb Identifier - Know what herbs you have without identifying them



Noob King
10-05-2014, 07:41 PM
I needed to see what herbs were taking up space in my bank so I made this real quick. Nothing fancy but I figured someone else might find a use for it.

program HerbIdentifier;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SRL-OSR/SRL/Reflection/Reflection.simba}
{$I SRL-OSR/SRL/misc/SmartGraphics.Simba}

function identifyHerb(x: integer): string;
begin
case (x) of
200..201: Result := 'Guam';
202..203: Result := 'Marr';
204..205: Result := 'Tarr';
206..207: Result := 'Harr';
208..209: Result := 'Ran';
210..211: Result := 'Irit';
212..213: Result := 'Avan';
214..215: Result := 'Kwuarm';
216..217: Result := 'Cadan';
218..219: Result := 'Dwarf';
220..221: Result := 'Tors';
2486..2487: Result := 'Lant';
2999..3051: Result := 'Toad';
end;
end;

procedure paintHerbs;
var
herbs: TInventoryItemArray;
i: integer;
inv: Tbox;
begin
herbs := R_GetInventoryItems;
for i := 0 to High(herbs) do
begin
if herbs[i].ID > 0 then
begin
inv := InvBox(herbs[i].Slot);
Smart_DrawTextEx(false, inv.X1, inv.Y1 + 5, 'UpChars07', (identifyHerb(herbs[i].ID)), clwhite);
end;
end;
end;

begin
SetupSRL;
SetupReflection;
AddOnTerminate('Smart_ClearCanvas');
repeat
Smart_ClearCanvas;
paintHerbs;
Wait(2000);
until not Loggedin;
end.

Hoodz
10-05-2014, 07:44 PM
nice!

also support for inBank + trade (1st + 2nd window) support soon? :D

Noob King
10-05-2014, 07:47 PM
nice!

also support for inBank + trade (1st + 2nd window) support soon? :D
I can add that when I get home if anyone cares for it.

Edit: Went hunting after work. I'll try and work on it today.

Booper9
02-01-2015, 06:11 PM
Does the script still work? couse i cant get it to work myself.

-edit:
WORKS! Thanks allot

Booper

cyanogen
02-25-2015, 05:17 AM
It would be nice if you could develop a plugin for OSBuddy (formerly Orion, a well made OSRS client, but not a botting one) they have pretty useful overlays and what not for the legit user like in game maps, zybez integration, skill calcs, monster kill and loot tracking, etc. This would be a nice addition for it.

KeepBotting
02-25-2015, 05:29 AM
It would be nice if you could develop a plugin for OSBuddy (formerly Orion, a well made OSRS client, but not a botting one) they have pretty useful overlays and what not for the legit user like in game maps, zybez integration, skill calcs, monster kill and loot tracking, etc. This would be a nice addition for it.
Correct me if I'm wrong but I believe a herb identifier was suggested over there several months ago.

It was shot down on the basis that Orion is a sanctioned RS client and must abide by Jagex's rules - of which an herb identifier was deemed to give Orion users an unfair advantage.

cyanogen
02-25-2015, 05:39 AM
Correct me if I'm wrong but I believe a herb identifier was suggested over there several months ago.

I wouldn't know. I just got back active on the OSRS scene (I started a little bit when OSRS realeased 2 years ago and I did join this forum that time but I'm back since f2p released)

Harrier
02-25-2015, 07:02 AM
It would be nice if you could develop a plugin for OSBuddy (formerly Orion, a well made OSRS client, but not a botting one) they have pretty useful overlays and what not for the legit user like in game maps, zybez integration, skill calcs, monster kill and loot tracking, etc. This would be a nice addition for it.
Only OSBuddy devs are allowed to make plugins and as keepbotting said, jagex banned that plugin.