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:
Code:
** 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:
Simba 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:
Simba Code:
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