SRL Archive - General Botting Help

DTMs were not freed


Ender

2013-12-09 21:29:30

:norris:Hello!:norris:

I have been trying to run Bob_Dole's AutoTrader and continually get this result:

You need the item you want to sell in inventory slot #1.
Succesfully freed SMART[2724]
Successfully executed.
The following DTMs were not freed: [2, 3, 4, 5]

I have done a lot of searching. I made sure that my 07 fonts were installed properly. I even found some fonts in the plugins folder which I promptly used to overwrite the previous 07 fonts in my fonts folder.(I have no idea how fonts got into plugins but it was likely do to an oversight on my part)

So now I'm wondering how to free these DTMs. Does the code need some work? Is it my files? Could I have found the answer by looking up how to work DTMs?

Thanks

Abu

2013-12-10 04:21:23

Hmm, went through his script and I must say I'm quite shocked doesn't free his DTMs.

Anyway, put this in the script, before the mainloop:


Procedure FreeDTMz;
begin
FreeDTMs(CoinDTMs);
end;


Then in the mainloop, call this at the start:

AddOnTerminate('FreeDTMz'); //Makes sure the DTMs are freed whenever the script is terminated

That should fix it for ya.

If you need more help with the script you really should post it on the relevant scripts thread so that he knows about these errors and can update his scripts himself.

Kevin

2013-12-10 13:38:12

To clarify, what abu fixes with that only solves the issue you're complaining about (The DTMs not being freed), but will NOT make the script work.

I'm guessing "You need the item you want to sell in inventory slot #1 ." is the error you actually want fixed. Do you have anything in your first inventory slot? is your backpack currently even open when you run the script? If so, has OSR changed its method for where the backpack is and how it is accessed?

Rich

2013-12-10 16:09:46

You might be best off talking to the creator of the script about this if you're still having problems after following all of the instructions. Like Kevin said, the DTMs not being freed, although annoying, is not the reason for the script ending.