bud_wis_er_420
2012-01-08 15:28:03
I got most of my DTMs working for the herblore scrip I'm making but for the life of me there are a few items that DTM's just won't work on. I have tried every which way to create a DTM for these items to no avail. I have even tried stuff like, on the chocolate dust, I made a DTM with only 2 points right next to each other. The 2 points where the brown part directly in the center. Trust me I must have tried over 100 different ways to make a DTM on most of the list below. The list below is the items I can't seem to get DTM's working for. What I'm asking of you is to test this for your selves. See if you can make a working DTM for even one of theses items. I don't understand it, like in the chocolate dust one again, I didn't have a problem making a DTM for "ashes", "ground unicorn horn", "silver dust", which all have the same shape just different colors.
Items DTM's don't work for:
Blamish Snail_Slime
Chocolate Dust
Gorak claw_powder
Potato Cactus
Wine_of Zamorak
Phoenix feather
Also having trouble with finding 3 dose potions. Figured this would be easy like the herbs but it's not. I want to use DDTMs but I also tried using string DTMs because I couldn't get the DDTM's working. Also with these I tried many different variations of DTM's to no avail.
Here is the script I'm using to find the items.
Run this script with your bank open and it paints a cross on all 2nd ingredients found that are visible in the top 4 rows of the bank screen.
Items DTM's don't work for:
Blamish Snail_Slime
Chocolate Dust
Gorak claw_powder
Potato Cactus
Wine_of Zamorak
Phoenix feather
Also having trouble with finding 3 dose potions. Figured this would be easy like the herbs but it's not. I want to use DDTMs but I also tried using string DTMs because I couldn't get the DDTM's working. Also with these I tried many different variations of DTM's to no avail.
Here is the script I'm using to find the items.
Run this script with your bank open and it paints a cross on all 2nd ingredients found that are visible in the top 4 rows of the bank screen.
////////////////////Ignore This Part////////////////////////
program New; //
{$DEFINE SMART} //
{$i srl/srl.scar}
{$i SRL/SRL/misc/paintsmart.scar} //
var x,y,next, count :integer;
//
const //
////////////////////////////////////////////////////////////
Select_Task = 1; // 0 = Clean berbs. 1 = Make potions
Tolerance = 15;
AreaSize = 0;
AreaShape = 0;
////////////////////////////////////////////////////////////
///////////////////Begining of Script///////////////////////
////////////////////////////////////////////////////////////
procedure MouseCross(mousex, mousey: Integer);
var
CTPA :integer;
TP:Tpoint;
TPA:TPointArray;
begin
MMouse(mousex, mousey, 0, 0);
GetMousePos(x,y)
TP := Point(x,y);
SetLength(TPA,104)
/////////////////////////////////////////////
/////////////////////////////////////////////
//Draw right
for CTPA:= 0 to 9 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x+1,TP.y);
end;
///////////////////////
TP := Point(x,y-1);
for CTPA:= 10 to 17 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x+1,TP.y);
end;;
///////////////////////
TP := Point(x,y+1);
for CTPA:= 18 to 25 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x+1,TP.y);
end;
/////////////////////////////////////////////
/////////////////////////////////////////////
TP := Point(x,y);
//Draw down
for CTPA:= 26 to 35 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x,TP.y+1);
end;
///////////////////////
TP := Point(x+1,y);
for CTPA:= 36 to 43 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x,TP.y+1);
end;
///////////////////////
TP := Point(x-1,y);
for CTPA:= 44 to 51 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x,TP.y+1);
end;
/////////////////////////////////////////////
/////////////////////////////////////////////
TP := Point(x,y);
//Draw left
for CTPA:= 52 to 61 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x-1,TP.y);
end;
///////////////////////
TP := Point(x,y+1);
for CTPA:= 62 to 69 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x-1,TP.y);
end;
///////////////////////
TP := Point(x,y-1);
for CTPA:= 70 to 77 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x-1,TP.y);
end;
/////////////////////////////////////////////
/////////////////////////////////////////////
TP := Point(x,y);
//Draw up
for CTPA:= 78 to 87 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x,TP.y-1);
end;
///////////////////////
TP := Point(x+1,y);
for CTPA:= 88 to 95 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x,TP.y-1);
end;
///////////////////////
TP := Point(x-1,y);
for CTPA:= 96 to 103 do
begin
TPA[CTPA]:= TP;
TP := point(TP.x,TP.y-1);
end;
Wait(60 + Random(30));
SMART_DrawDotsEx(false,TPA,clRed);
end;
function SetHerbDTM(Hcolor, Gcolor: integer): integer;
var
Sub_Pt: array[0..5] of TDTMPointDef;
Main_Pt: TDTMPointDef;
Herb_TDTM: TDTM;
begin
Main_Pt.x:=52;
Main_Pt.y:=103;
Main_Pt.areasize:=1;
Main_Pt.areashape:=0;
Main_Pt.color:=Hcolor;
Main_Pt.tolerance:=5;
Sub_Pt[0].x:=59;
Sub_Pt[0].y:=109;
Sub_Pt[0].areasize:=1;
Sub_Pt[0].areashape:=0;
Sub_Pt[0].color:=Gcolor; //This color is green or brown for clean or grimy
Sub_Pt[0].tolerance:=5;
Sub_Pt[1].x:=43;
Sub_Pt[1].y:=109;
Sub_Pt[1].areasize:=0;
Sub_Pt[1].areashape:=0;
Sub_Pt[1].color:=131072 ;
Sub_Pt[1].tolerance:=5;
Sub_Pt[2].x:=53;
Sub_Pt[2].y:=115;
Sub_Pt[2].areasize:=0;
Sub_Pt[2].areashape:=0;
Sub_Pt[2].color:=131072 ;
Sub_Pt[2].tolerance:=5;
Sub_Pt[3].x:=60;
Sub_Pt[3].y:=113;
Sub_Pt[3].areasize:=0;
Sub_Pt[3].areashape:=0;
Sub_Pt[3].color:=131072 ;
Sub_Pt[3].tolerance:=5;
Sub_Pt[4].x:=65;
Sub_Pt[4].y:=109;
Sub_Pt[4].areasize:=0;
Sub_Pt[4].areashape:=0;
Sub_Pt[4].color:=131072 ;
Sub_Pt[4].tolerance:=5;
Sub_Pt[5].x:=47;
Sub_Pt[5].y:=112;
Sub_Pt[5].areasize:=0;
Sub_Pt[5].areashape:=0;
Sub_Pt[5].color:=131072 ;
Sub_Pt[5].tolerance:=5;
Herb_TDTM.MainPoint := Main_Pt;
Herb_TDTM.SubPoints := Sub_Pt;
Result := AddDTM(Herb_TDTM);
end;
function SetPotionDTM(Pcolor: integer): integer;
var
Sub_Pt: array[0..5] of TDTMPointDef;
Main_Pt: TDTMPointDef;
Potion_TDTM: TDTM;
begin
Main_Pt.x:=52;
Main_Pt.y:=110;
Main_Pt.areasize:=1;
Main_Pt.areashape:=0;
Main_Pt.color:=Pcolor;
Main_Pt.tolerance:=15;
Sub_Pt[0].x:=278;
Sub_Pt[0].y:=223;
Sub_Pt[0].areasize:=1;
Sub_Pt[0].areashape:=0;
Sub_Pt[0].color:=Pcolor; //This color is green or brown for clean or grimy
Sub_Pt[0].tolerance:=5;
Sub_Pt[1].x:=282;
Sub_Pt[1].y:=232;
Sub_Pt[1].areasize:=0;
Sub_Pt[1].areashape:=0;
Sub_Pt[1].color:=131072 ;
Sub_Pt[1].tolerance:=5;
Sub_Pt[2].x:=279;
Sub_Pt[2].y:=115;
Sub_Pt[2].areasize:=0;
Sub_Pt[2].areashape:=0;
Sub_Pt[2].color:=131072 ;
Sub_Pt[2].tolerance:=5;
Sub_Pt[3].x:=225;
Sub_Pt[3].y:=113;
Sub_Pt[3].areasize:=0;
Sub_Pt[3].areashape:=0;
Sub_Pt[3].color:=131072 ;
Sub_Pt[3].tolerance:=5;
Sub_Pt[4].x:=281;
Sub_Pt[4].y:=231;
Sub_Pt[4].areasize:=0;
Sub_Pt[4].areashape:=0;
Sub_Pt[4].color:=131072 ;
Sub_Pt[4].tolerance:=5;
Sub_Pt[5].x:=282;
Sub_Pt[5].y:=235;
Sub_Pt[5].areasize:=0;
Sub_Pt[5].areashape:=0;
Sub_Pt[5].color:=131072 ;
Sub_Pt[5].tolerance:=5;
Potion_TDTM.MainPoint := Main_Pt;
Potion_TDTM.SubPoints := Sub_Pt;
Result := AddDTM(Potion_TDTM);
end;
procedure Get_Item_Info(Item_Type:string; var Item_Text: TStringArray; var Item_DTM: integer);
begin
{********************************************************
Items list:
valid arguments:
Herbs:
Guam, Marrentill, Tarromin, Harralander, Ranarr, Toadflax,
SpiritWeed, Irit, Wergali, Avantoe, Kwuarm, Snapdragon,
Cadantine, Lantadyme, DwarfWeed, Torstol, Fellstalk
Ingredients:
Ashes, Blamish_snail_slime, Cactus_spine, Chocolate_dust,
Chopped_onion, Cockatrice_egg, Coconut_milk, Crushed_birds_nest,
Eye_of_newt, Frog_spawn, Garlic, Goat_horn_dust,
Gorak_claw_powder, Dragon_scale_dust, Unicorn_horn_dust,
Jangerberries, Kebbit_teeth_dust, Limpwurt_root, Magic_roots,
Mort_myre_fungi, Nail_beast_nails, Nightshade,
Poison_ivy_berries, Potato_cactus, Red_spiders_eggs, Rubium,
Silver_dust, Snape_grass, Star_flower, Swamp_tar, Toads_legs,
White_berries, Wine_of_zamorak, Wimpy_feather, Yew_roots,
Papaya_fruit, Phoenix_feather, Ground_mud_runes,
Wyvern_bonemeal, Grenwall_spikes, Morchella_mushroom
Potions:
Super_restore, Super_energy, Antifire, Super_attack,
Super_strength, Super_defence, Magic, Ranging,
Prayer, Extreme_attack, Extreme_strength, Extreme_defence,
Extreme_magic, Extreme_ranging
****************************************************************}
case Item_Type of
///////////////////////////Beginning of Herb List///////////////////////////////
'Guam' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(604680 , 671496 );
Item_Text := ['Clean gua', 'ean guam', 'an guam'];
end else
begin
Item_DTM := SetHerbDTM(872971, 1848385);
Item_Text := ['Grimy gua', 'imy guam','my guam'];
end;
end;
'Marrentill' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(873996, 1007373);
Item_Text := ['Clean mar', 'ean marr', 'an marre'];
end else
begin
Item_DTM := SetHerbDTM(940812, 1848385);
Item_Text := ['Grimy mar', 'imy marr','my marre'];
end;
end;
'Tarromin' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(2709516, 2973965);
Item_Text := ['Clean tarr', 'ean tarr', 'an tarro'];
end else
begin
Item_DTM := SetHerbDTM(2775820, 1848385);
Item_Text := ['Grimy tarr', 'imy tarr','my tarro'];
end;
end;
'Harralander': begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(810302, 943428);
Item_Text := ['Clean har', 'ean harr', 'an harra'];
end else
begin
Item_DTM := SetHerbDTM(809019, 1848385);
Item_Text := ['Grimy har', 'imy harr','my harra'];
end;
end;
'Ranarr' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(607786, 741423);
Item_Text := ['Clean ran', 'ean rana', 'an ranar'];
end else
begin
Item_DTM := SetHerbDTM(674091, 1848385);
Item_Text := ['Grimy ran', 'imy rana','my ranar'];
end;
end;
'Toadflax' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(597000, 663561);
Item_Text := ['Clean toa', 'ean toad', 'an toadf'];
end else
begin
Item_DTM := SetHerbDTM(597000, 1848385);
Item_Text := ['Grimy toa', 'imy toad','my toadf'];
end;
end;
//////// SpiritWeed looks diff from other herbs need a diff dtm
'SpiritWeed' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA6334636060C863C000FF819811440301A' +
'336909185AE8289811FAA0604183581442E01350640A284801A90' +
'7BCA08A8B10312C504D4B860F317AA1A00E25E09F2');
Item_Text := ['Clean spi', 'ean spir', 'an spiri'];
end else
begin
Item_DTM := DTMFromString('78DA6334636060C863C000FF819811440301A' +
'336909185AE8289811FAA0604183581442E01350640A284801A90' +
'7BCA08A8B10312C504D4B860F317AA1A00E25E09F2');
Item_Text := ['Grimy spi', 'imy spir','my spiri'];
end;
end;
'Irit' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(2579260, 2843457);
Item_Text := ['Clean iri', 'ean iri', 'an irit'];
end else
begin
Item_DTM := SetHerbDTM(2579260, 1848385);
Item_Text := ['Grimy iri', 'imy iri','my irit'];
end;
end;
'Wergali' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(2369364, 2632541);
Item_Text := ['Clean wer', 'ean werg', 'an werga'];
end else
begin
Item_DTM := SetHerbDTM(2435158, 1848385);
Item_Text := ['Grimy wer', 'imy werg','my werga'];
end;
end;
'Avantoe' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(1982227, 2180629);
Item_Text := ['Clean ava', 'ean avan', 'an avant'];
end else
begin
Item_DTM := SetHerbDTM(2048275, 1848385);
Item_Text := ['Grimy ava', 'imy avan','my avant'];
end;
end;
'Kwuarm' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(539701, 607292);
Item_Text := ['Clean kwu', 'ean kwua', 'an kwuar'];
end else
begin
Item_DTM := SetHerbDTM(539701, 1848385);
Item_Text := ['Grimy kwu', 'imy kwua','my kwuar'];
end;
end;
'Snapdragon' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(472877, 539697);
Item_Text := ['Clean sna', 'ean snap', 'an snapd'];
end else
begin
Item_DTM := SetHerbDTM(472877, 1782335);
Item_Text := ['Grimy sna', 'imy snap','my snapd'];
end;
end;
'Cadantine' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(1719348, 1851705);
Item_Text := ['Clean cad', 'ean cada', 'an cadan'];
end else
begin
Item_DTM := SetHerbDTM(1719348, 1848385);
Item_Text := ['Grimy cad', 'imy cada','my cadan'];
end;
end;
'Lantadyme' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(3160584, 3489544);
Item_Text := ['Clean lan', 'ean lant', 'an lanta'];
end else
begin
Item_DTM := SetHerbDTM(3028743, 1848385);
Item_Text := ['Grimy lan', 'imy lant','my lanta'];
end;
end;
'DwarfWeed' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(537607, 604680);
Item_Text := ['Clean dwa', 'ean dwar', 'an dwarf'];
end else
begin
Item_DTM := SetHerbDTM(538375, 1848385);
Item_Text := ['Grimy dwa', 'imy dwar','my dwarf'];
end;
end;
'Torstol' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(738313, 806154);
Item_Text := ['Clean tors', 'ean tors', 'an torst'];
end else
begin
Item_DTM := SetHerbDTM(672009, 1848385);
Item_Text := ['Grimy tors', 'imy tors','my torst'];
end;
end;
'Fellstalk' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetHerbDTM(2369827, 2699048);
Item_Text := ['Clean fell', 'ean fells', 'an fellst'];
end else
begin
Item_DTM := SetHerbDTM(2369827, 1782335);
Item_Text := ['Grimy fell', 'imy fells','my fellst'];
end;
end;
///////////////////////////////End of Herb List/////////////////////////////////
////////////////////////Beginning of Ingredients List///////////////////////////
'Ashes' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA6334646060C8614001F367CC60E007D28' +
'C503EA32E90C84355B372D142543520730A50D56C5BB70E558D09' +
'A69AF52B56A0AA31C7B46BC6C489A86ACC804416031A604255630' +
'5247209A8B1C0740F861A907B0A09A8B1C3740F869B1DF0BBF93F' +
'10000001D5170D');
Item_Text := ['Ashes', 'shes', 'Ash'];
end;
end;
'Blamish_snail_slime': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA634C64606048674001078FED65E007D28' +
'C40FC1F081833808C140634C0C4C00A5503028C9998E66055934F' +
'400DC88C62FC6A006B2F0A8C');
Item_Text := ['Blami', 'snail', 'slime'];
end;
end;
'Cactus_spine': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63EC676060C8664001D5A5AE0CFC409A1' +
'1CA67EC011279A86A9A6ABD50D54C041239A86A5AEABC51D54C00' +
'1299A86A4A0B9C50D54CC654C3C0C084A9269B0835B904D44CC4F' +
'417869A5E205140400D280CF371ABF90F04008AD71383');
Item_Text := ['Cact', 'tus sp', 'spine'];
end;
end;
'Chocolate_dust': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('mbQAAAHicY2VgYNgGxBuBeAcQ7wbig0CcA8R5QFwApbOA2E9XgiFYX5Ih3EiKwUdbnCFAT4KBHyiOjhmxYDAAALYrCQg=');
Item_Text := ['Choco', 'colate', 'ate dust'];
end;
end;
'Chopped_onion': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA637CC2C0C090C98002A6F4F531F003694' +
'6289FF13EA69A999327A3AA790524B250D5F47776A2AAB9092472' +
'51D5CCC8174355731748E4A1B927074DCD3D205188AAA63345045' +
'5CD53205180AAA623194DCD4B4C35D59142A86ADE02897C5435B9' +
'FE02A86ADE63FA2BD3871F337C320884E1574C350C0C4CA86ABE0' +
'0891C026A3E618621869A0F987EC750F31E339C91D5FC070200F6' +
'B327ED');
Item_Text := ['Chopp', 'ped oni', 'ed onio'];
end;
end;
'Cockatrice_egg': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA6314646460C866400147E64530F003694' +
'6289F5118C84A4355736A7134AA1A5E202B0755CDCEA9C1A86AB8' +
'80AC2254359D257E98E694A1AA4977B4425523046415A0AAA9F67' +
'34555230E6465A1AAE98EF04755230964E5A3AAD93F2B0C558D18' +
'A69BD74D4A4255030AC30A543593AA8331ED420B430606265435D' +
'2986188554D2E116A8A08A891C20C670C35A030AC24A04604C8AA' +
'C2ADE63F10000061D81C50');
Item_Text := ['Cockat', 'atrice', 'ice egg'];
end;
end;
'Coconut_milk': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63B4616460C86140015B76EC65E007D28' +
'C503EA32590554C408D2D905586AA66C5DA0DA86A1C81AC525435' +
'7D93A660AAC96440034CA86A9C80AC6C026A5C80AC02026ADC80A' +
'C1222CCA920A0C619BF9AFF400000D21013C1');
Item_Text := ['Cocon', 'nut mil', 't milk'];
end;
end;
'Crushed_birds_nest': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63CC606460C8644001B6D6A60CFC409A1' +
'1CA674C00B27251D5B83A59A3AA4907B20A08A8C905B2F208D855' +
'8C6997918136AA9A22202B8D010D30A1AA2901B23208A829C3B40' +
'BAB9A7C22EC2A24A0A600C82AC6AF060071220DB2');
Item_Text := ['Crush', 'hed bird', 'ushed b'];
end;
end;
'Eye_of_Newt': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633CC0C8C090C1800278797919F881342' +
'394CF7810538D906833AA9A63986A18189830D56411A1268F809A' +
'234056016E35FF81000025950C59')
Item_Text := ['Eye of', 'of new', 'ye of ne'];
end;
end;
'Frog_spawn' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633CC8C8C090CB80029272BC18F881342' +
'394CF781EC82A6240034CA86A8E01595904D41C07B23289509343' +
'40CD29202B1DB79AFF4000008B830CBE');
Item_Text := ['rog s', 'og sp', 'spaw'];
end;
end;
'Garlic' : begin
if(Select_Task = 1)then
begin
Item_DTM:= DTMFromString('78DA633465606098CA8002E6CE9EC6C00FA41' +
'9A17C460320311D55CD99938751D5E8038939A86A8E1FD987AAC6' +
'1853CDE60DAB51D59861AA993F7706AA1A2B203103554D796921A' +
'639686E9E32A90F558D254890010D30A1AAB10512D308A8B1C374' +
'0F5635B389B06B2E01353640621E6E35FF81000018B81CE7');
Item_Text := ['Garlic', 'Garli', 'arlic'];
end;
end;
'Goat_horn_dust': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA8DCA3B0A80301084E18D17F06E3636316' +
'A50083EC871448DE84D750A9B21489CE25F163E558BC82AB4CE96' +
'92E3AAF7572512D88C4EB3A962330F864D8B1C09D3233B1BA30B3' +
'613B2B0F153C3C6C7462463E390ED870909D32167C258E4FA3637' +
'F600651316B5');
Item_Text := ['Goat', 'horn', 'at hor'];
end;
end;
'Gorak_claw_powder': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63EC60606098C580024AF2F319F881342' +
'394CFD80B2466A2AA49898F4755D30F24E6A2AA69ADAF4755D303' +
'2416A0AA99DCDB8B69CE540634C084AA662290984140CD6420318' +
'708357309A89980E9666435FF810000023714C0');
Item_Text := ['Gorak', 'ak claw', 'orak c'];
end;
end;
'Dragon_scale_dust': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63DCCAC0C030830105E83AA430F003694' +
'6289F7113909885AAC6C0251B55CD36203107558D917B21AA9A9D' +
'406236AA1A7DA74C4C3568EED1B08C42557310484C23E0E623986' +
'A18189850D5ECC7F417869A0398EEC150B317D35F186AF660860F' +
'869ADD40622E6E35FF8100005DCF19CF');
Item_Text := ['Drago', 'on scal', 'agon sc'];
end;
end;
'Unicorn_horn_dust': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA637CC4C0C030830105B415D930F003694' +
'6289FF13E90988DAA666E9B1BAA1A90397350D5CC6E4553F30453' +
'CDB406675435CF81C42C54354DF956A86ADE8134A2AA6929B4465' +
'5F301530D030313A6393308A879468439AF80C44C026A5E628621' +
'56BBE6E156F31F0800B6111E96');
Item_Text := ['Unicor', 'corn hor', 'nicorn'];
end;
end;
'Jangerberries': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA631460646098C68002DC9DB818F881342' +
'394CFC80D64CD405593562C88AA4610C89A87AA2634810F558D08' +
'90350B554D743A3FAA1A71206B02AA1A76230E54359240D644026' +
'AA430D5303030A1AA1105B2A612502381E966ACE6CCC3ADE63F10' +
'000045D00EFD');
Item_Text := ['Janger', 'gerberr', 'angerbe'];
end;
end;
'Kebbit_teeth_dust': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63B461646098C180029A6A6B18F881342' +
'394CF680C64CD4655336D423FAA1A4B206B3EAA9ACE96665435B6' +
'986A1AAAAB51D5380359F350D5E46765A1AA71C3744F5C5414AA1' +
'A4F4C7F313030A1AAF1C23407438D379035970835F309A8F100B2' +
'16105003F2D722DC6AFE030100FD4C17EC');
Item_Text := ['Kebbit', 'bit tee', 'teeth'];
end;
end;
'Limpwurt_root': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA634C61646098CE8002AA73D419F881342' +
'394CF180F644D4155539CAA82AA2603C89A81AA263B4E11554D16' +
'90358F80398540D60202E66460BA87818109D3AE6904D46463BA1' +
'9434D0E90359B801A909BE71050538AE92F6435FF8100009B3E14' +
'D8');
Item_Text := ['Limpw', 'pwurt', 'urt roo'];
end;
end;
'Magic_roots': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA639CC8C8C030990105E8EB2B30F003694' +
'6289F713A903509558D95953AAA9AB940D64C5435B6B69AA86A26' +
'03597351D5B8BB1B60AA99C580069850D54CC3340743CD4C4C376' +
'3A8990D644D21A0660E90358D809AF940D60CDC6AFE03010037B7' +
'130D');
Item_Text := ['Magic', 'agic r', 'gic roo'];
end;
end;
'Mort_myre_fungi': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633CC8C8C0309301053435D430F003694' +
'6289FF10090351D55CDD2C5F350D51C07B266A1AA9937A31355CD' +
'29206B06AA9A701D2954352781ACA9A86A82352551D5EC02B2E6A' +
'0AA9934A11BAE860544EF05B2E6E2F6175CCD6C5435AD2DF57035' +
'FF81000057231A77');
Item_Text := ['Mor', 'yre', 'fun'];
end;
end;
'Nail_beast_nails': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633464606038CC8002D435D519F881342' +
'394CFA885A946454D05558D3D903884AA46514911558D1D90384A' +
'C01C63207106558D98B818AA1A274CBB18189850D53862DA85A1C' +
'601481C27A0C61CD33DC86AFE03010057A00F90');
Item_Text := ['Nail', 'beas', 'st nai'];
end;
end;
'Nightshade' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA638C63606038C280023CF2ED19F881342' +
'394CF980C244EA0AA29492F47559309248EA3AAA92F6CC254731A' +
'554D5E5221A65D6751D53497B4A1AA8902124751D504A2BB391A4' +
'8ECC3ADE63F100000DDFC1503');
Item_Text := ['Night', 'ghtsha', 'shade'];
end;
end;
'Poison_ivy_berries': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63EC65606038C4800264BCC4194480342' +
'394CFD80E248EA2AA59D2158BAA0664CE295435B39B2350D54C00' +
'12C750D52CEF8D4355331548EC435563596C8CAA66229038C0800' +
'69850D54C06124708A89982E91EACE69C20A06622A6DF91D5FC07' +
'0200CC921825');
Item_Text := ['Poison', 'son ivy', 'ivy berr'];
end;
end;
'Potato_cactus': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63DCC5C0C0D0C9800202228D18E480342' +
'310FF0702C62340462B031A60626085AA0101B09A76026AF60389' +
'2E22D4F412500372731F7E35005A620CD9');
Item_Text := ['Potat', 'ato cact', 'cactus'];
end;
end;
'Red_spiders_eggs': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA637CC2C0C070980105544B0931F003694' +
'6289FF11EA69A5E395154350F81C40902E6BC0012C750D534C908' +
'A3AA7903240E1150F30E48EC6740034CA86ADE03898344A8394C4' +
'0CD5B207194801A909B8FE356F31F0800CDB918E2');
Item_Text := ['Red sp', 'd spide', 'spider'];
end;
end;
//Need to do a few quest for these skip for now
'Rubium' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA637CCAC0C07084010534C90833F003694' +
'620FE0F048C20350751D5B8F373C1D58000E37D207118554D87AC' +
'08AA9A4740E2246EBBC06A5E028963A86ACA250551D5BCC1744FA' +
'18400AA9A7740623F031A6082AB6105D1EF31DD8CA10664D77102' +
'6A5E61FA0B430D280C4FE05703009FA01AFA');
Item_Text := ['Rubi', 'ubiu', 'bium'];
end;
end;
'Silver_dust': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63E463646038C2800232535218F881342' +
'394CFC805641D4355539C9787AA861FC83A89AAA6BAB414558D20' +
'90751C554D614E0EAA1A2120EB28AA9A94840454355240D621543' +
'5E94949A86A6430D5303030619A7384801A2122CC1125C21C514C' +
'BF63A811C60C436435FF8100003D661684');
Item_Text := ['Silve', 'lver du', 'ver dus'];
end;
end;
'Snape_grass': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63B462646038C880027863AC18F881342' +
'394CF680F641D40552350688FA9E63001351640D67122CC394740' +
'8D0B907584809B416ACE1330C70DC8DAC780069830D51C2042CD6' +
'1026ABC80AC6344A83941408D3B90751AB79AFF4000005A7B1763' +
'');
Item_Text := ['Snape', 'ape gra', 'e grass'];
end;
end;
'Star_flower': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63CC64646038CA80029A668431F003694' +
'6289F310EC83A84AA66E5545354358940D6695435931AF550D564' +
'01596751D5CCEE344455538CE99E057D46A86AB281ACFDA86A36C' +
'EB14055930B641D6040034CA86A8A80ACC304D480DC739C809A02' +
'22D4E462860F56356771ABF90F04000AE51B97');
Item_Text := ['Star', 'ar flow', 'flower'];
end;
end;
'Swamp_tar' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA639CCCC8C070880105A8A9A830F003694' +
'6289FB107C83A40849A63A86AA4A5A450D5F403592750D5E86869' +
'A1AA01B9E714AA1A23030354353381ACE304CC998BE92F7939595' +
'4350B81ACBD0C68800955CD62206B3F116A0E1150B304C83A4C40' +
'CD22CC30C450B300C83A4940CD7CCC304456F31F080041D31B4A');
Item_Text := ['Swamp', 'wamp t', 'mp tar'];
end;
end;
'Toads_legs' : begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633CC8C8C070880105D8A6F033F003694' +
'6289F710F907514558D5D3A9A9AFD40D6095435AE8502A86A4076' +
'9D45556393C487AAE61090B517558D450C2FAA9A5340D67E5435D' +
'60968E69C03B2F631A0012654356780AC0304D49CC20C1F0C3547' +
'30FD8EA1E63090758A0835678950731EB79AFF40000006A21D15');
Item_Text := ['Toad', 's leg', 'legs'];
end;
end;
'White_berries': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633465606078C78002BC0CB819F881342' +
'394CFA80F243EA0AA59B76C19A69A8FA86A664C9C88AA0664D757' +
'5435AB162F4655630224BEA3AA69A9AB43556301243EA1AA993D7' +
'50AA69ACFA86A3A5B9A51D5D8008997A86AD88D38E06AFE030100' +
'761218F4');
Item_Text := ['White', 'ite berr', 'hite be'];
end;
end;
'Wine_of_zamorak': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA634C646060F8C88002723332184480342' +
'394CF980424DEA0AAC94E4B43551385694E674B33AA9A5820F103' +
'554D437535AA9A0420F10B554D694101AA9A1420F113554D664A0' +
'A5CCD7F2000004DBB1478');
Item_Text := ['Wine of', 'of zamo', 'zamor'];
end;
end;
'Wimpy_feather': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63EC646060F8C0800274F55218F881342' +
'394CFD80D24DE33A0012654353D40E22D0135BD40E21501357D40' +
'E20501351381C437026AFA81C47722DCFC03B79AFF40000076C21' +
'13C');
Item_Text := ['Wimpy', 'impy f', 'py feat'];
end;
end;
'Yew_roots': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63DCC6C0C0F086010D3031F0034946288' +
'F7117907881AA4253830D55CD1E20F11A558DA9093BAA9A7D40E2' +
'3DAA1A3F3F6E54350781C44754350EF69CA86A0E0389AFA86AACA' +
'C3850D56C07125F50D5C8CBB3A0AAD90B245E11F0FB7E22C2E700' +
'90784740CD114C7F61A83901243EE356F31F0800C9041BA6');
Item_Text := ['Yew ro', 'ew roo', 'Yew r'];
end;
end;
'Papaya_fruit': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA637CC2C0C0F0960105CCDD28C5C00FA41' +
'9A17CC60740E203AA9A15FB6450D5DC0712DF50D52CD88266CE23' +
'20F11D55CD8C3592A86A9E63AAA9EE164155F30A487C415593902' +
'B80A906CDCD99E582A86ADE0089370C688009550D286CDE13A1E6' +
'0B116ABE1150F31A48FC24A006E4AF5FB8D5FC07020002F725A8');
Item_Text := ['Papay', 'paya f', 'a frui'];
end;
end;
'Phoenix_feather': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA631466646078CB80026674A531F003694' +
'6289F510CC87AC580069850D54801591F8850F319B79AFF400000' +
'353709EA');
Item_Text := ['Phoen', 'oenix', 'nix fea'];
end;
end;
'Ground_mud_runes': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63B467646078C38002DC5D5C18F881342' +
'394CFE80564BD6540034CA86A3C81AC0F04D43801599F08A8B101' +
'B2BEA1AA8889884055E308647DC76DCE7F2000007A290D85');
Item_Text := ['Groun', 'nd mud', 'mud rune'];
end;
end;
'Wyvern_bonemeal': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA63CC606460F8C080022A43CD18F881342' +
'394CF980064BD4355D3126B8DA9E633AA9AEE243B54352940D62F' +
'02E6640259BF51D514FA1BA1AA2900B27EA2AA09B551435553086' +
'47D21A0A600D35F318E9AA86A8A81ACD70C688009554D0990F596' +
'809A5220EB23116ABE12A1E62701354540D61F026AF281AC7FB8D' +
'5FC070200E65F2165');
Item_Text := ['Bonem', 'onemea', 'nemeal'];
end;
end;
'Grenwall_spikes': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA639CCAC8C0F09E010598EA8A33F003694' +
'6289F710290F515558D83990CAA1A90393F50D5581949A1AA9945' +
'849AF940D65B5435461AEC98E6BC25E0E669986A30EC5A0064BD6' +
'140034CA86AE601591F08A8990B647D22A0660E66186255F31DB7' +
'9AFF400000859A1AE1');
Item_Text := ['Grenwa', 'wall spi', 'spike'];
end;
end;
'Morchella_mushroom': begin
if(Select_Task = 1)then
begin
Item_DTM := DTMFromString('78DA633CC0C8C0F091010568CB8A30680069A' +
'00CC37F206004A9F98AAA6676AE1B033F540D0880D57C4755B3BF' +
'3D0C53CD2F54358F17A4A1AAD90F64FD465573755A3CAA9A4398E' +
'6AC2CF741557304D31C06062654358781AC9F44A8F94640CD5120' +
'EB0B0135C780AC4F04D41C07B2DE11A1E62D116ADE10E19E5744A' +
'87949849AE74484CF33026A40F1F514BF1A00FDB32E59');
Item_Text := ['Morch', 'ella mu', 'mushro'];
end;
end;
////////////////////////////End of Ingredients List/////////////////////////////
///////////////////////////Beginning of Potions List////////////////////////////
'Super_restore': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(6176913);
Item_Text := ['Super rest', 'uper rest', 'per restor'];
end;
end;
'Super_energy ': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(8275612);
Item_Text := ['Super ener', 'uper ener', 'per energ'];
end;
end;
'Antifire' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(7737432);
Item_Text := ['Antifi', 'ntifir', 'tifire'];
end;
end;
'Super_attack' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(12664636);
Item_Text := ['Super att', 'uper att', 'per attac'];
end;
end;
'Super_strength': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(11382454);
Item_Text := ['Super str', 'uper str', 'per stren'];
end;
end;
'Super_defence': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(3709112);
Item_Text := ['Super def', 'uper def', 'per defen'];
end;
end;
'Magic' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(10189381);
Item_Text := ['Magic po', 'agic pot', 'gic poti'];
end;
end;
'Ranging' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(12359482);
Item_Text := ['anging pot', 'nging poti', 'anging potio'];
end;
end;
'Prayer' : begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(9289018);
Item_Text := ['Prayer pot', 'rayer pot', 'ayer poti'];
end;
end;
'Extreme_attack': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(11052400);
Item_Text := ['xtreme att', 'treme att', 'reme atta'];
end;
end;
'Extreme_strength': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(11842748);
Item_Text := ['xtreme str', 'treme str', 'reme stre'];
end;
end;
'Extreme_defence': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(2083032);
Item_Text := ['xtreme def', 'treme def', 'reme defe'];
end;
end;
'Extreme_magic': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(12893757);
Item_Text := ['xtreme mag', 'treme mag', 'reme magi'];
end;
end;
'Extreme_ranging': begin
if(Select_Task = 1)then
begin
Item_DTM := SetPotionDTM(3119241);
Item_Text := ['xtreme ran', 'treme ran', 'xtreme rang'];
end;
end;
///////////////////////////////End of Potions List//////////////////////////////
end;
end;
{function Store_Item(item: string,
begin
end; }
function Find_Item(var x, y: integer; item: string): Boolean;
var
rightcount, downcount, Slotx, Sloty, DTM: integer;
text: TStringArray;
begin
Slotx := 31;
Sloty := 85;
rightcount := 0;
downcount := 0;
Get_Item_Info(item, text, DTM);
// repeat
//repeat
//SMART_DrawBoxEx(True, IntToBox(Slotx, Sloty, Slotx + 44, Sloty + 44), clRed);
// count := 0;
//repeat
//sleep(10+random(2))
//count := count +1;
//until(FindDTM(DTM, x, y, Slotx, Sloty, Slotx + 50, Sloty + 50))or
//(count >9)
//if(FindDTM(DTM, x, y, Slotx, Sloty, Slotx + 50, Sloty + 50))then
if(FindDTM(DTM, x, y, 24, 82, 480, 291))then
begin
MMouse(x - 5, y - 5, 10, 10);
//getmousepos(x,y);
MouseCross(x,y);
sleep(1000+random(500));
if not(IsUpTextMultiCustom(text))then
begin
writeln('Could not find uptext' + text[0]);
end;
//writeln('found ' + item + ' with text = ' + text[next]);
end;
Slotx := Slotx + 44;
rightcount := rightcount + 1;
//sleep(10);
//until(IsUpTextMultiCustom(text))or(rightcount >= 10)
//rightcount := 0;
//Sloty := Sloty + 44;
// Slotx := 31;
// downcount := downcount + 1;
//sleep(10);
//until(IsUpTextMultiCustom(text))or(downcount >= 4)
if(IsUpTextMultiCustom(text))then Result:= true;
//ClearRSCanvas(SMART_Canvas.canvas);
end;
procedure Get_Item(item: string);
var
DTM,i: integer;
text: TStringArray;
begin
if(Find_Item(x,y,item))then
begin
//Store_Item(x,y,item)
//Mouse(x, y, 0, 0, false);
//sleep(500+random(500));
//Mouse(330, 381, 50, 40, true);
{if(OptionsExist(['draw-14', '14'], false))then
//(WaitOption('14', 2000 + random(500)))then
begin
//Writeln('Option Withdraw-14 found');
ChooseOption('Cancel');
//ChooseOption('14');
sleep(500);
end else
begin
Mouse(x, y, 0, 0, false);
//Writeln('Option Withdraw-14 not found');
if(OptionsExist(['draw-X', 'X'], true))then
begin
//Writeln('Option Withdraw-X found');
//ChooseOption('X');
sleep(1000+random(1000));
//TypeSend('14');
end else
begin
//Writeln('Option Withdraw-X not found');
end;
end; }
end else writeln('Could not find ' + item);
end;
{********************************************************
Items list:
valid arguments:
Herbs:
Guam, Marrentill, Tarromin, Harralander, Ranarr, Toadflax,
SpiritWeed, Irit, Wergali, Avantoe, Kwuarm, Snapdragon,
Cadantine, Lantadyme, DwarfWeed, Torstol, Fellstalk
Ingredients:
Ashes, Blamish_Snail_Slime, Cactus_spine, Chocolate_Dust,
Chopped_onion, Cockatrice_egg, Coconut_milk, Crushed_birds_nest,
Eye_of_Newt, Frog_spawn, Garlic, Goat_horn_dust,
Gorak_claw_powder, Dragon_scale_dust, Unicorn_horn_dust,
Jangerberries, Kebbit_teeth_dust, Limpwurt_root, Magic_roots,
Mort_myre_fungi, Nail_beast_nails, Nightshade,
Poison_ivy_berries, Potato_Cactus, Red_spiders_eggs, Rubium,
Silver_dust, Snape_grass, Star_flower, Swamp_tar, Toads_legs,
White_berries, Wine_of_Zamorak, Wimpy_feather, Yew_roots,
Papaya_fruit, Phoenix_feather, Ground_mud_runes,
Wyvern_bonemeal, Grenwall_spikes, Morchella_mushroom
Potions:
Super_Restore, Super_Energy, Antifire, Super_Attack,
Super_Strength, Super_Defence, Magic_Potion, Ranging_Potion,
Prayer, Extreme_Attack, Extreme_Strength, Extreme_Defence,
Extreme_Magic, Extreme_Ranging
****************************************************************}
begin
ClearDebug();
Smart_Server := 44;
SetupSRL();
Get_Item('Ashes');
Get_Item('Blamish_Snail_Slime');
Get_Item('Cactus_spine');
Get_Item('Chocolate_Dust');
Get_Item('Chopped_onion');
Get_Item('Cockatrice_egg');
Get_Item('Coconut_milk');
Get_Item('Crushed_birds_nest');
Get_Item('Eye_of_Newt');
Get_Item('Frog_spawn');
Get_Item('Garlic');
Get_Item('Goat_horn_dust');
Get_Item('Gorak_claw_powder');
Get_Item('Dragon_scale_dust');
Get_Item('Unicorn_horn_dust');
Get_Item('Jangerberries');
Get_Item('Kebbit_teeth_dust');
Get_Item('Limpwurt_root');
Get_Item('Magic_roots');
Get_Item('Mort_myre_fungi');
Get_Item('Nail_beast_nails');
Get_Item('Nightshade');
Get_Item('Poison_ivy_berries');
Get_Item('Potato_Cactus');
Get_Item('Red_spiders_eggs');
Get_Item('Silver_dust');
Get_Item('Snape_grass');
Get_Item('Star_flower');
Get_Item('Swamp_tar');
Get_Item('Toads_legs');
Get_Item('White_berries');
Get_Item('Wine_of_Zamorak');
Get_Item('Wimpy_feather');
Get_Item('Yew_roots');
Get_Item('Papaya_fruit');
Get_Item(' Phoenix_feather');
Get_Item('Ground_mud_runes');
Get_Item('Wyvern_bonemeal');
Get_Item('Grenwall_spikes');
Get_Item('Morchella_mushroom');
ClearRSCanvas(SMART_Canvas.canvas);
end.