SRL Archive - Help

Need some scripting help


weeps

2012-01-28 06:58:41

I want my script to have a option to choose which spot the items are in (in a bank). Idk how i can do this.

For exemple i want it to be like this

Bankspot := number

and then a procedure/function that will withdraw item from that spot.

Any tips?

putonajonny

2012-01-28 07:08:52

From: weeps
I want my script to have a option to choose which spot the items are in (in a bank). Idk how i can do this.

For exemple i want it to be like this

Bankspot := number

and then a procedure/function that will withdraw item from that spot.

Any tips?


What do you mean? Like this?

Const
BankRow = 3;
BankColumn = 4;

//...


WrithdrawItem(BankRow, BankColumn); //This is a made up function

weeps

2012-01-28 07:46:39

From: putonajonny
What do you mean? Like this?

Const
BankRow = 3;
BankColumn = 4;

//...


WrithdrawItem(BankRow, BankColumn); //This is a made up function


When i use that it keep messing, up. Is row 1 and col 1 the first spot in the bank?

I want to have a interger spot in the beginning of the script that alow the user to set up a bank spot for themself.

putonajonny

2012-01-28 07:59:37

From: weeps
When i use that it keep messing, up. Is row 1 and col 1 the first spot in the bank?

I want to have a interger spot in the beginning of the script that alow the user to set up a bank spot for themself.



I am pretty sure 0,0 is the first spot, you are better off adding dtm detection for the item, do you need help on doing this? if so tell me the item

vito107

2012-01-28 08:07:03

can anyone help me? i dont know how to add scripts to the bot and i do cant find a guide.
plz help me

weeps

2012-01-28 08:15:15

From: putonajonny
I am pretty sure 0,0 is the first spot, you are better off adding dtm detection for the item, do you need help on doing this? if so tell me the item


I trying to make a AIO crafting script. So i wont use dtm.

putonajonny

2012-01-28 08:30:04

From: weeps
I trying to make a AIO crafting script. So i wont use dtm.


Use something like this:

Const
ItemBankRow = 2;
ItemBankColumn = 3;

WithdrawEx(ItemBankColumn, ItemBankRow , 28{amount}, ['ard', 'eath', 'her'{uptexts}])