SRL Archive - OSR Help

Withdraw-all from Bank?


makke

2011-12-23 07:31:03

Hello, im trying to find out how i'am supposed to withdraw all from bank.
Im trying to Make it Withdraw all Molten Glass.
Im Kind of new to scripting soo any help is Appreciated.

logical

2011-12-23 08:03:56

Withdraw(col, row, Amount) use "0" if u want to withdraw all :)

makke

2011-12-23 08:06:41

From: logical
Withdraw(col, row, Amount) use "0" if u want to withdraw all :)


You just made my day:D Thank you soo much:)

'Toxin

2011-12-23 08:11:27

Try looking in SRL next time for simple functions like Withdraw man, they're on the left side of Simba, provided you're using SRL which I don't see why you shouldn't be.

logical

2011-12-23 08:18:03

The function descriptions don't mention how to withdraw all…i guess that's what he wanted help with…
Took some time for me to figure that out when i started learning to script :P

'Toxin

2011-12-23 08:20:00

From: logical
The function descriptions don't mention how to withdraw all…i guess that's what he wanted help with…
Took some time for me to figure that out when i started learning to script :P


You don't really need a function description for every single function in SRL. If you're scripting, you should be able to read the code and understand what is going on. Also, it's not rocket science to look at what types of variables the function is taking in to come up with a logical idea as to what you should pass through it.

Flight

2011-12-23 08:31:37

Nice job helping him, Logical. :)

For what it's worth:

if (Amount = 0) then
Result := WaitOptionMulti(['Withdraw-All', 'w-A'], 300)
else
Result := WaitOptionMulti(['Withdraw-' + IntToStr(Amount), 'w-' + IntToStr(Amount)] , 300);
^ In the WithdrawEx function. You're right, sometimes the description doesn't give the full details, but just a simple skim over the code and you're more than likey to find what you're looking for. ;)

Kyle Undefined

2011-12-23 09:06:50

Protip: In Simba "Ctrl + Space" brings up the function list ;)