seems simple - passing vars

Third party software discussion goes here.
User avatar
nabbs
Posts: 29

seems simple - passing vars

Post#1 » Sun Oct 25, 2015 8:41 pm

So I am trying to write a simple.. well in theory, macro. The idea is I want to be able to pick up an item and have it search for said item on my other toons that are logged in.

I get the item name and ID just find and can echo it .. no problems there.


Here is where I seem to just be getting my butt kicked.

Passing that ${itemName} to the others via BCAA command always comes back NULL for all the others. It would seem it is looking for that variable name locally rather then parsing it out to what its value is before sending the command.

Does that makes sense? How do you pass vars to other chars?

/varset ItemName ${Cursor}
/noparse /bcaa //bc ${ItemName}


in the Cmd window
Toon 0 "correct name
Rest toons
NULL

Any tips?
Guild <AFK>
Mains are generally Tantrum - SK | Gigglethorpe - Pal

User avatar
Nilbus
Posts: 1258

Re: seems simple - passing vars

Post#2 » Sun Oct 25, 2015 9:52 pm

I do it a slightly different way. I have an event set up in my custom include which I have in all my macros. I can /bca whohas itemname and get responses from who has it.

Code: Select all

#event finditem "#*# whohas #1#

sub event_finditem(junk, itemname)

/if (${FindItem[${itemname}].ID}>0) /bc I have ${itemname}
   
/return
Nodyin-Nilbus-Pockit-Tiah-Rakas- Funeral
Likeatruck-Khaltos-Nilbie-Ziknaf-Prathun-Missus
Elidor
Youme-Yumme-Blazingtide-Sublin-Lissanda-Darmok
Djarik-Ikat-Nerys-Ometi-Tarana-Biln

I know way too much random stuff.

User avatar
nabbs
Posts: 29

Re: seems simple - passing vars

Post#3 » Sun Oct 25, 2015 10:37 pm

I rocked it. Have a mac that's uses a INI to pass vars. Works flawless. Couldn't find an answer anywhere so I created my own!


Ohh that's pretty slick .. thanks for reply

Code: Select all

/noparse /bcaa //bc I have ${FindItemCount[${Ini[find.ini,LookingFor,value1]}]}

is basically what I came up with and now I just run macro pick up item on cursor and it will look through my bags for me on all my logged in toons
Guild <AFK>
Mains are generally Tantrum - SK | Gigglethorpe - Pal

User avatar
nabbs
Posts: 29

Re: seems simple - passing vars

Post#4 » Sun Oct 25, 2015 10:39 pm

chat even so simple.. I love it ..

now I'm a bit upset I didn't think of that myself
Guild <AFK>
Mains are generally Tantrum - SK | Gigglethorpe - Pal

Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 0 guests

cron