SRL Archive - RS3 Help

Nooby question


lanadekat

2014-11-18 04:05:59

how can I do something like this?

const
Banker = 'BANK_NPC_BLUE';

If Bankscreen.Open(Banker) Then // banker needs to be the const

The Mayor

2014-11-18 04:12:08

From: lanadekat
how can I do something like this?

const
Banker = 'BANK_NPC_BLUE';

If Bankscreen.Open(Banker) Then // banker needs to be the const


Just make sure the const isn't a string

const
Banker = BANK_NPC_BLUE;

If Bankscreen.Open(Banker) Then // banker needs to be the const

lanadekat

2014-11-18 04:17:02

From: The Mayor
Just make sure the const isn't a string

const
Banker = BANK_NPC_BLUE;

If Bankscreen.Open(Banker) Then // banker needs to be the const


oh thanks!
coding/scripting while being sick isn't a great idea ( I can't think ) but yea there aren't any other moments I got time to script :fiery:

akarigar

2014-11-18 15:32:53

Don't forget, you can also do this.


if bankscreen.open(BANK_NPC_BLUE) then

lanadekat

2014-11-19 04:43:56

From: akarigar
Don't forget, you can also do this.


if bankscreen.open(BANK_NPC_BLUE) then


I know, but then I need to search for that line when I'm trying to run the script at a different bank.
Now I can just change the const to make it compatible with other banks :)
but thanks!

victordono

2014-11-22 00:17:00

I dont mean to hijack this but i feel this as a nooby question, in some scripts where we search for a mouse over text we search for 'vergreen' or 'hop down' why do we always omit the first character

Ian

2014-11-22 00:55:07

From: victordono
I dont mean to hijack this but i feel this as a nooby question, in some scripts where we search for a mouse over text we search for 'vergreen' or 'hop down' why do we always omit the first character

As I understand it, the text recognition doesn't do well when characters merge together, and this happens sometimes with uppercase characters.