SRL Archive - OSR Help

Help with Banking


Aegis

2011-11-03 20:49:45

SOLVED


Hey, I finally set a goal for 99 herblore(as well as purchased all supplies), and felt like getting a script to help me out. I decided to be a noob, and simply modify the PPot maker in the herblore section (since I've not really completely learned Simba/PascalScripting yet AND I was told this script is entirely color)

Anyways, I'm having some trouble banking, and would really appreciate some help. When it tries to withdraw items from the bank, I get this error:

** Warning in WithdrawItem: Could not Find dtm in Bank. [Uptext: omin]**
[00.00.05]: Logged out because: Failed to bank

I did some searching, and found THIS thread to be very similar, however it came to no real conclusions. And most of the stuff mentioned, I wasn't really certain on what to do anyways.

Here's my code:
function Bank: Boolean;
begin
FindNormalRandoms;
if OpenBank(Players[0].Strings[0], True, False) then
begin
if not(InvEmpty) then
DepositAll;
if WithdrawItem(DTMs[Clean], 'dtm', 14, 'omin', []) then
if WithdrawItem(DTMs[Vial], 'dtm', 14, 'ater', []) then
Result := True;
end;
if BankScreen then
CloseBank;
FindNormalRandoms;
end;

I'm fairly clueless on what I'm doing wrong. I'm trying to withdraw 14 'Clean tarromin's and 14 'Vial of water's.

Another question I felt inclined to ask, is what exactly is this:
DTMFromString('mbQAAAHicY2VgYHBhYmDwAmJfIHYFYhMgfgIU/wTEz4D4NgOEzxNpASSZUDA/AyZgxILBAAAM4waY');
I've modified the SetDTMName to my correct items, but should that string be editted as well? If so, what exactly is this value? And if it's unique to my item, how do I get it?


Thanks! In the meantime, I'll search the forums for other Withdraw methods, and try them out :P

Coh3n

2011-11-03 21:30:58

That's the DTM. It's what's used to identify the item. Since you didn't know what it was, I'm assuming that's a DTM to identify a vial or something to make potions with. You need to create your own for the items you need to identify which I'm assuming is a Vial of Water and some sort of herb? Here's a good DTM tutorial. It's for SCAR, but it'll still work as it uses the same (or similar DTM editor). In Simba, first go to View > Extensions and enable the DTM Editor extension.

Aegis

2011-11-03 21:53:17

From: Coh3n
That's the DTM. It's what's used to identify the item. Since you didn't know what it was, I'm assuming that's a DTM to identify a vial or something to make potions with. You need to create your own for the items you need to identify which I'm assuming is a Vial of Water and some sort of herb? Here's a good DTM tutorial. It's for SCAR, but it'll still work as it uses the same (or similar DTM editor). In Simba, first go to View > Extensions and enable the DTM Editor extension.


Thanks! Yeah, found it just prior to you replying. I'll follow the tutorial, and hopefully get the script working. Again, thanks. I appreciate it :)