I made DTM for Potions in Runescape which work perfectly sometimes and fail sometimes, is this normal or I have messed something. I made DTM using YoHoJo Tutorials
I made DTM for Potions in Runescape which work perfectly sometimes and fail sometimes, is this normal or I have messed something. I made DTM using YoHoJo Tutorials
Set the tolerance for the main point (The point that's on the color part of the item) to about 5 ~ 7 when making the DTM, see if that helps you out.
It you made DTMs for items using my tutorials they should work 100% of the time.
Make sure the main point has a tolerance 255 (to work for ALL ores/logs/whatever item) or lower to only work for certain (around 30-50 as a guess).
Make sure all sub points are the BLACK OUTLINE COLOR and nothing else.
Ok now made new DTM using simba DTM Editor , but now its giving me Out of Memory at FinDTM function
Can you show us your script, please?
E: Ninja, YoHoJo.
I feel like I've ninjad you a lot recently... or maybe I just ninja people in general a lot.
program New;
var PrayPot,x,y:integer;
begin
PrayPot := DTMFromString('mlwAAAHicY2dgYOAEYj4gFgFiDgYIYAFibi AWh9JiQCwNpXmhaso2LgCSTFjxfwbcgBEPhgIAPSUDmQ==');
if FindDTM(PrayPot, x, y, 545, 205, 740, 465) then
writeln('Congratz! You have just found your first DTM!')
end.
Change the coords you have to: MIX1, MIY1, MIX2, MIY2. These are the inventory coordinates supplied by the SRL include. Or if you are trying to find the potion on the main screen, you'd use: MSX1, MSY1, MSX2, MSY2.
Also make sure you are freeing the DTM when you are done using it. Probably right after you find it.
Simba Code:FreeDTM(PrayPot);
I'm going to ninja you one day, YoHoJo!
Its giving me Out of Memory Exception at my 'if' function so it wont go ahead to FreeDTM
You have a space in your DTM.
Simba Code:PrayPot := DTMFromString('mlwAAAHicY2dgYOAEYj4gFgFiDgYIYAFibiAWh9JiQCwNpXmhaso2LgCSTFjxfwbcgBEPhgIAPSUDmQ==');
That is the proper one.
^^, Thanks
EDIT: Still Out of Mem Excp
Noticed there is a space in your DTM, not sure if they are suppoed to have spaces so either 1) remove the space located here "i A" OR 2) Remake the DTM again!
Ok, made the DTM again working now, Thank you all for helping
There are currently 1 users browsing this thread. (0 members and 1 guests)