Log in

View Full Version : ObjDTM walking help



loser69
01-22-2012, 02:58 PM
Tried to do ObjDTM walking, read the comprehensive tutorial then looked at the lumbridge to varrok script to get a better understanding of it



procedure walkdown;

var
ladder: TstringArray;

begin;
ladder:= ['59:37:3:0:7:57:34:0:7:33:80:0:7:59:126'] ;
for I := 0 to 0 do
ObjDTM_Walk(ladder[i], 0, 100, 80, True);

end;

however I keep getting this error

Error: Out Of Range at line 1035
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]

then hops to the objdtminclude tab and highlights this

BaseTPA := FindMiniMapObj(MMObjRecords[ObjectsToFind[i]]);

please help

euphemism
01-22-2012, 06:48 PM
You didn't call 'ObjDTM_Setup' at the beginning of your script. Also, since it is only a single Object DTM, you would be better off doing something like:


procedure walkdown;

var
ladder: String;

begin;
ladder:= '59:37:3:0:7:57:34:0:7:33:80:0:7:59:126';

ObjDTM_Walk(ladder, 0, 100, 80, True);

end;