Log in

View Full Version : DTM item withdrawing Issue



tensix
08-15-2012, 09:24 PM
I am updating my banking method on a script I am making to include DTM's, however I seem to have came across a small problem, when attempting to withdraw a ring of duelling it withdraws an standard emerald ring.

Any suggestions or advice to fix this.
Thanks for your help again :)
:stirthepot:

Tensix

Le Jingle
08-15-2012, 09:28 PM
You could separate the emerald rings and put them in another tab?

Or you could also add uptext checks, so if it mmouse's over it, and see's 'emerald ring' then it will check the next matching dtm.

Alternatively (later down the road) I wonder if OpenGL will be able to id different codes for this.. (Sorry, somewhat off topic, so don't pay attention to this)

tensix
08-15-2012, 09:30 PM
Thanks for the speedy reply, how would I go about checking for the next matching DTM?
Still getting used to pascal :P

Thanks again

the separate tab thing was what I was beginning to think about, although I would like it all able to run in 1 tab for simplicity

Le Jingle
08-15-2012, 10:58 PM
ugh ... spent some time trying to make a func for this.. but then I lurked the includes and found:
function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer; Amount: integer; UpText: string; Tol: TIntegerArray): Boolean;

Ex of use:

{.include SRL\SRL.simba}
var
theDTM, i: Integer;
begin
SetupSRL;
ActivateClient;
theDTM := DTMFromString('mbQAAAHicY2VgYHgNxG+h9DMgfgfE04B4Eh AvAuJZUL5wlxiQZELB/EASHTNiwWAAAN6KCKI=');
WithdrawItemEx(theDTM, 'dtm', i, 10, 'uel', []);
FreeDTM(theDTM);
end.

tensix
08-16-2012, 12:13 AM
I have had a look at this and ran it numerous times on a test account, it seems to be only partially accurate and sometimes withdraws ROD's and sometimes Emerald Rings, and sometimes neither at all. Very strange really. Ahwell thanks for your help. I suppose I will keep it simple for now with this part of my script and use multiple tabs
Thanks again :)

Le Jingle
08-16-2012, 12:24 AM
No problem, and on a side note; the reason it might withdraw either may be due to the uptext.. I was having some uptext issues when making my func, but the dtm method would be second best (in my opinion) in this case since the ring is so small to work with. I'd suggest going over some TPA guides, as they would be my first choice.

tensix
08-16-2012, 01:03 AM
Yeah the log was mentioning that there was alot of uptext issues, I may have a look over them at some point, if I ever decide to release this script. Its a private one atm but its a botch job of small segments of other scripts with features added by myself as I get more confident with the language until I am happy enough to almost fully re-write :)
Thanks again you have been a huge help