SRL Archive - Outdated Tutorials

[#39] Bank_ consts


Sir R. M8gic1an

2009-09-18 20:46:45


const
Bank_FE = 'feb'; // (Falador East Bank)
Bank_FW = 'fwb'; // (Falador West Bank)
Bank_VE = 'veb'; // (Varrock East Bank)
Bank_VW = 'vwb'; // (Varrock West Bank)
Bank_DR = 'db' ; // (Draynor Bank)
Bank_AK = 'akb'; // (Al-Kharid Bank)
Bank_EV = 'eb' ; // (Edgeville Bank)
Bank_CT = 'ctb'; // (Catherby bank)
Bank_CM = 'clt'; // (Camelot bank)
Bank_NA = 'nab'; // (North Ardougne bank)
Bank_SA = 'sab'; // (South Ardougne bank)
Bank_YN = 'ynb'; // (Yanille bank)
Bank_NG = 'ngb'; // (North gnome bank)
Bank_SG = 'sgb'; // (South gnome bank)
Bank_WG = 'wgb'; // (Warrior guild bank)
Bank_FG = 'fgb'; // (Fishing guild bank)

Added to bank.scar :) Get used to using them ;)

Lots o' Love
SRL Dev Team

Rich

2009-09-18 21:03:24

To be honest, I really don't see the point in these. The "initials" of the bank are never going to change, so why do we need these?

Coh3n

2009-09-18 21:04:45

Sounds good to me. :)

Well I like it cause they look neater, and easier to remember.

ZephyrsFury

2009-09-18 21:07:42

Though there may not be much use in these specific constants. You should start getting used to them. Constants will be used quite a lot in the future.

YoHoJo

2009-09-18 21:25:40

Im lost, example of how these would be used?

Sir R. M8gic1an

2009-09-18 22:23:41

From: Trevor3443

EDIT: unless you are trying to make SRL where if something updates, everyone elses script updates as well? I can understand constants for Gametabs and such…


That is exactly the point of the whole thing, as well as general good practice. While we who are used to it understand it, it is much better practice to use constants for these kinds of things.

~RM

Awkwardsaw

2009-10-13 18:39:40

From: Rasta Magician
That is exactly the point of the whole thing, as well as general good practice. While we who are used to it understand it, it is much better practice to use constants for these kinds of things.

~RM


that, and you know if you typed it wrong, since SCAR will give an error. unlike strings

TRiLeZ

2009-10-13 20:04:05

Constants. :)

Can you bank at the GE yet?

Awkwardsaw

2009-10-13 20:11:46

From: TRiLeZ
Constants. :)

Can you bank at the GE yet?


bankNPC, whith a banker with the same color as the GE bankers? like edgy i think

noidea

2009-10-13 20:14:10

I hate constants >__>

Narcle

2009-10-13 20:19:04

From: noidea
I hate constants >__>


Lol, then you won't like the changes to come. Better get use to 'em.

noidea

2009-10-13 20:24:44

From: Narcle
Lol, then you won't like the changes to come. Better get use to 'em.


I don't do well with change either :<