PDA

View Full Version : Very Simple Script / Macro Question that's driving me insane



ogbar
12-14-2009, 07:37 PM
my goal would be to make a macro (CTRL G) that would help me pick somethign up and automatically place it in my backpack.

I remember a looooong time ago being able to do this but i forget how. I have this but it doesn't work.. I know I'm missing the symbol that waits for me to enter what i want to pick up.

get@\rput @ in my backp\r

Silique
12-14-2009, 07:39 PM
@ = ?

Xaerve
12-14-2009, 07:41 PM
%1

Sylvan Dreams
12-14-2009, 07:45 PM
For that macro to work you need to remove the last \r as that is making an incomplete command being entered. Without the return at the end, it will input all that text into the command line and place your cursor at the @ where you will need to type in the item noun then hit enter.

You can also use:

get \?\rput \? in my backpack\r

this will give you a pop up box in which you type in the noun and hit enter.

If you use STOW then of course you adjust the command accordingly.

Drew
12-14-2009, 10:30 PM
personally I just use a little script I named .p

put get %1
put put my %1 in my %user0


Or if you use a shield:

put stow my %shield
waitfor You
put get %1
put put my %1 in my %user0
waitfor You
put get my %shield



I'm totally used to just .p chest or .p diamond now. If I had to use the console without my script it would be weird.

ogbar
12-15-2009, 12:44 AM
Thats it... Thats it!

TheThirdEye
06-10-2010, 02:07 AM
my goal would be to make a macro (CTRL G) that would help me pick somethign up and automatically place it in my backpack.

I remember a looooong time ago being able to do this but i forget how. I have this but it doesn't work.. I know I'm missing the symbol that waits for me to enter what i want to pick up.

get@\rput @ in my backp\r

I know I am 6 months late responding to this but I figured I would share the script I wrote to expedite picking stuff up after a kill or after picking boxes:


#Usage .<script name> <container> <item 1> <item 2> ect

SETVARIABLE container %1
SHIFT

PUT store shield
PUT open my %container
MATCH Get You open
MATCH WrongCont What were you referring to?
MATCHWAIT

WrongCont:
ECHO
ECHO ***You made a typo or not currently wearing the specified container***
ECHO *****Please restart the script with a different container variable******
ECHO
Endit

Get:
IF_1 GOTO Grabloot
GOTO Endit

Grabloot:
PUT get %1
MATCH Stash You pick up
MATCH Stash You already have that.
MATCH Stash You remove
MATCH Notfound I could not find what
MATCH Notfound Get what?
MATCH Handfull You need a free hand
MATCHWAIT

Notfound:
ECHO
ECHO You made a typo or the item you are trying to pick up is gone. Continuing to next item...
ECHO
SHIFT
GOTO Get

Handfull:
ECHO
ECHO Empty one of your hands to pick up the item!
ECHO
MATCH Grabloot You put
MATCH Grabloot You drop
MATCHWAIT

Stash:
PUT put %1 in my %container
WAITFOR You put
SHIFT
GOTO Get

Endit:
PUT ready shield
PUT close my %container
EXIT

Of course if you only have one container on your character where you put everything then you would remove;

SETVARIABLE container %1
SHIFT

and then only enter the script name and the items you want it to pick up. If you don't wear a shield you can also remove;

PUT store shield

and

PUT ready shield

These can also be modified if you are a two weapon user.

Asha
06-10-2010, 07:31 AM
For that macro to work you need to remove the last \r as that is making an incomplete command being entered. Without the return at the end, it will input all that text into the command line and place your cursor at the @ where you will need to type in the item noun then hit enter.

You can also use:

get \?\rput \? in my backpack\r

this will give you a pop up box in which you type in the noun and hit enter.

If you use STOW then of course you adjust the command accordingly.

omg the pain in the ass that is not leaving a space between the 'r' and 'put' ..