View Full Version : Help with SRL, banking, and such?
zeeky111
01-24-2011, 11:12 PM
I remember that there was a time where I could neatly have a list of all of the SRL commands that SCAR used.. Now that I'm using Simba, where is one that I could find? (And yes, I am using Simba.)
More specifically, I'm trying to create a lobster-cooking script. I've got all of the scripting done for finding lobsters in the inventory, I just need to now tell the script to open up the Al Kharid bank, deposit everything, and then withdraw an inventory of raw lobsters. I used a DTM to find the raw lobsters in the inventory, and I'm thinking of using DTMs to find and interact with the "Deposit Inventory" and the lobsters.
If you can help me out with [A] finding an updated SRL command reference and/or [B] giving me ideas for to work with in the script, let me know.
Also, is the command for to open the bank still OpenBankFast(Bank:string)? Like I've said, a reference guide would do me wonders, since SRL and everything has changed a bit.
Thanks all, and apologies for my spamming of the Help forums with minor problems..
**BANNED The Man
01-24-2011, 11:20 PM
1. There isn't currently a full documentation for Simba or SRL.
2. Are you using colour or reflection?
- Colour you would need to use DTM's with UpText checks etc
- OpenBankBooth('akb'); (AFAIK)
- Reflection you could easily open bank and deposit, withdrawing is a little more difficult but can still be done, look at my AK Cooker's banking.
Hope I helped :)
-Boom
http://oi51.tinypic.com/znpu07.jpg
The area I have selected is where you would type in a function / procedure name and double click on it to go to it in the file.
But you could open the .scar file for what you need, in this case "Bank" in the core of the includes. It isn't too hard to find.
PS: Don't worry about asking questions. We always love to help. Even if you may think you are spamming. You probably aren't. So don't be shy or scared to ask questions.
"A man who does not take risks in life will never progress."
zeeky111
01-24-2011, 11:28 PM
1. There isn't currently a full documentation for Simba or SRL.
2. Are you using colour or reflection?
- Colour you would need to use DTM's with UpText checks etc
- OpenBankBooth('akb'); (AFAIK)
- Reflection you could easily open bank and deposit, withdrawing is a little more difficult but can still be done, look at my AK Cooker's banking.
Hope I helped :)
-Boom
You've been absolutely helpful, actually. :)
One thing.
I'm using neither.. I'm trying to use straight SRL, which is probably my problem.
Can you link me to or suggest a tutorial for me to look up? (I'll Google it, I don't care whichever.) Thanks a lot. :)
The area I have selected is where you would type in a function / procedure name and double click on it to go to it in the file.
But you could open the .scar file for what you need, in this case "Bank" in the core of the includes. It isn't too hard to find.
Thanks. I'll keep that in mind.
And as for the not spamming, that's really good to hear/read. I'm having a bit of difficulty getting back in, but you guys are helping me out quite a bit.
// * function BankScreen: Boolean; // * by SRL Dev Team
// * function DepositScreen: Boolean; // * by Shuttleu
// * function PinScreen: Boolean; // * by NaumanAkhlaq
// * function InPin(Pin: string): Boolean; // * by ZephyrsFury and Nava2
// * function BankIndexToBankPoint(Ind: Integer): TPoint; // * by Wizzup
// * function BankPointToIndex(P: TPoint): Integer; // * by Wizzup
// * function BankIndexToMSBox(Ind: Integer): TBox; // * by Wizzup
// * function MSTPointToBankIndex(P: TPoint): Integer; // * by Wizzup
// * function DepositItemBox: TBox; // * by ZephyrsFury
// * procedure Fixbank // * by lordsaturn & Nava2
// * function FixBankTab: Boolean; // * by Wizzup?
// * function CurrentBankTab: Integer; // * by Narcle
// * function ExistsBankTab(T: Integer): Boolean; // * by Narcle
// * function BankTab(T: Integer): Boolean; // * by Narcle
// * procedure SearchBank(Item: string); // * by ZephyrsFury
// * procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant); // * by PPLSUQBAWLZ / Stupid3ooo
// * function WithdrawEx(Col, Row, Amount: Integer; Uptexts: TStringArray): Boolean; // * by Starblaster100, Town, Wizzup? and Narcle, small fixes by r!ch!e & EvilChicken!
// * procedure Withdraw(Col, Row, Amount: Integer); // * by Starblaster100, Town, Wizzup? and Narcle
// * procedure DepositAll; // * by ZephyrsFury
// * procedure Notes(SwitchOn: Boolean); // * by lordsaturn, idea by R1ch
// * procedure CloseBank; // * by Starblaster100
// * function OpenBankQuiet(WhichBank:string):Boolean; // * by WT-Fakawi
// * function OpenBankGlass(WhichBank:String; ChangeCompass:Boolean): Boolean; // * By Wizzup? & N1ke!
// * function OpenBankFast(Location: String): Boolean; // * by Wizzup?, Nielsie95 & N1ke!
// * function OpenBankNPC: Boolean; // * by Home
// * function OpenBank(WhichBank:String; ChangeCompass:Boolean): Boolean; // * by SRL
// * function FindBank(TheBank: string): Boolean; // * by WT-Fakawi & N1ke!
// * function OpenDepositBox: Boolean; // * by Shuttleu
Straight from the bank.scar include file in the core.
Simba > Includes > SRL > SRL > Core
You've been absolutely helpful, actually. :)
One thing.
I'm using neither.. I'm trying to use straight SRL, which is probably my problem.
Can you link me to or suggest a tutorial for me to look up? (I'll Google it, I don't care whichever.) Thanks a lot. :)
Thanks. I'll keep that in mind.
And as for the not spamming, that's really good to hear/read. I'm having a bit of difficulty getting back in, but you guys are helping me out quite a bit.
**BANNED The Man
01-24-2011, 11:32 PM
Well, are you making the script to be educated or to have a script that will run practically flawlessly?
If the latter check out: This (http://villavu.com/forum/showthread.php?t=59400)
If to be educated check out: This (http://villavu.com/forum/showthread.php?t=49089)
Good luck on your "quest" (see what I did there... :f:)
If you need any help just add me on msn: dynamite-boom@hotmail.co.uk
-Boom
zeeky111
01-24-2011, 11:37 PM
RISK: Thanks, and I added in the
{.include SRL/SRL/core/bank.scar}
and the include works fine, other than an error..
[Error] C:\Simba\Includes\SRL/SRL/core/bank.scar(63:21): Unknown identifier 'MSX1' at line 62
I added in the vars MSX1, MSY1, MSX2, and MSY2 as used in the include file, and it still returned an error.
Dynamite: Thanks a bunch. :D
I'm doing this as both. I saw a necessity for a script, found no such script, and so decided to re-learn to script. :)
You do not need to add that include. All include files in the core folder are automatically included with "{.include SRL/SRL.scar}" / "{$i SRL/SRL.scar}".
So if you simply remove the bank.scar include line you added to your script, it will run perfectly fine.
RISK: Thanks, and I added in the
{.include SRL/SRL/core/bank.scar}
and the include works fine, other than an error..
[Error] C:\Simba\Includes\SRL/SRL/core/bank.scar(63:21): Unknown identifier 'MSX1' at line 62
I added in the vars MSX1, MSY1, MSX2, and MSY2 as used in the include file, and it still returned an error.
Dynamite: Thanks a bunch. :D
I'm doing this as both. I saw a necessity for a script, found no such script, and so decided to re-learn to script. :)
zeeky111
01-24-2011, 11:41 PM
Ah! Thanks! Whoa.
I'm off or something today. :P Thanks, RISK.
You are quite welcome, Zeeky111. If you have any more questions, do not hesitate to make a new thread or PM someone or myself, if you truly wish to.
The forums and I are always willing to help.
Ah! Thanks! Whoa.
I'm off or something today. :P Thanks, RISK.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.