What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

ProffesionBuddy Mailing

How did you handle the submitting the mail? The only command I know of is just for sending text without using the mailbox UI :<
 
use "/click SendMailMailButton" in a macro

Code:
 Lua.DoString(string.Format("RunMacroText(\"{0}\")", "/click SendMailMailButton"), 0);

This will "click" the Send button
 
So now I only have 2 problems left (I think). I found out how to interact with the mailbox, but how do I switch to the mailing tab and then writing the recipient?
 
Maybe I'm just too newb to do this, but what is wrong with:

Lua.DoString(string.Format("RunMacroText(\"{0}\")", "/run local i=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local n=GetContainerItemLink(b,s) if n then if strfind(n,"52185") and i<12 then _,c=GetContainerItemInfo(b,s) if c==20 then UseContainerItem(b,s) i=i+1 end end end end end"), 0);

It says: Invalid expression term ')'

Kinda lost :<
 
because there are (") in the code and those " " defines the text that should run within the lua.dostring command


Code:
[B][COLOR=#ff0000]"[/COLOR][/B] /run local i=0  for b=0,4 do for s=1,GetContainerNumSlots(b) do local  n=GetContainerItemLink(b,s) if n then if strfind(n,[COLOR=#ff0000][B]"[/B][/COLOR]

ends the first time here

maybe you should break those commands completly down into several /click macros.. thats the only way (?)
 
Last edited:
Code:
Lua.DoString(string.Format("RunMacroText(\"{0}\")", "/run local i=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local n=GetContainerItemLink(b,s) if n then if strfind(n,\"52185\") and i<12 then _,c=GetContainerItemInfo(b,s) if c==20 then UseContainerItem(b,s) i=i+1 end end end end end"), 0);

This did the trick, now I just need to figure out how to switch from the inbox to send mail.
 
You can always get the name of a button or something else by running this macro ingame:
Code:
/run print( GetMouseFocus():GetName() )
Put your mouse over the tab you want to change to, and fire that macro. It will give you a name in the chat, you can then use a /click thatname
 
Code:
Lua.DoString(string.Format("RunMacroText(\"{0}\")", "/run local i=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local n=GetContainerItemLink(b,s) if n then if strfind(n,\"52185\") and i<12 then _,c=GetContainerItemInfo(b,s) if c==20 then UseContainerItem(b,s) i=i+1 end end end end end"), 0);

Now it won't work, no clue what went wrong. Did a test earlier +.+
 
Mate, you seriously rule! Thanks!

+rep is always welcome ;)

Code:
Lua.DoString(string.Format("RunMacroText(\"{0}\")", "/run local i=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local n=GetContainerItemLink(b,s) if n then if strfind(n,\"52185\") and i<12 then _,c=GetContainerItemInfo(b,s) if c==20 then UseContainerItem(b,s) i=i+1 end end end end end"), 0);

Now it won't work, no clue what went wrong. Did a test earlier +.+
Is postal enabled? Sometimes I've seen it fuck up such macros.
Also, you could try doing it like this instead of a /run
Code:
Lua.DoString("local i=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local n=GetContainerItemLink(b,s) if n then if strfind(n,\"52185\") and i<12 then _,c=GetContainerItemInfo(b,s) if c==20 then UseContainerItem(b,s) i=i+1 end end end end end");

Oh and btw - instead of using the /click send button, I can recommend you to use
Code:
Lua.DoString("SendMail(\"MailRecipent\",\"Subject\",\"\")");
This way you can control the subject and the name of the person you want to send to.
 
Last edited:
And all you gotta do for COD is add:

Code:
 codprice=j*(WhiptailPrice/20) SetSendMailCOD(codprice*10000)

Before you send the mail...or something like that
 
And all you gotta do for COD is add:

Code:
 codprice=j*(WhiptailPrice/20) SetSendMailCOD(codprice*10000)

Before you send the mail...or something like that

Far from :) - at least if you want it accurate. Besides from that - it doesn't sound like this guy is looking for COD in any way. So the only reason I can see for you to post it is to annoy me. It's not really working though.
 
Last edited:
I did rep you, afraid it could only be done once :D

As always thanks for the help and I did actually take the send mail approach you mentioned before you wrote it. At least it would seem that direction was a good call :D
 
I'm doing some simple mailing myself right now - this is how I'm doing it.
First, in the profile I define a value for the recipent name (I'm defining the name in lua inside wow, not in HB) like this:
Code:
Lua.DoString("MailRecipent = \"Dummy\"");

Then I go to the mailbox ofc and interact with it, and run this:
Code:
Thread.Sleep(300); Lua.DoString("RunMacroText(\"/click MailFrameTab2\")"); Thread.Sleep(300);
Then I follow up with a macro that puts stuff into the mailbox window:
Code:
Lua.DoString("local i=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local n=GetContainerItemLink(b,s) if n then if strfind(n,\"52478\") and i<12 then UseContainerItem(b,s) i=i+1 end end end end");
And then at last, I send the mail to the mailrecipent defined in the top of the profile:
Code:
Lua.DoString("SendMail(MailRecipent,\"Blues\",\"\")");
I found this a good way to make "settings" for recipent name when you make the mailing in lua. I'm afraid you can't do it with the Settings in PB.
 
What is with the thread sleep thingy?

And also, does PB seem to skip: <WaitAction Condition="false" Timeout="10000" /> sometimes for you as well? My script works perfectly for a while then at some point it just seems to ignore my wait timers.
 
I don't have any problems with the wait action, but yea the sleep should work every single time ^^ although there's no condition on that one, it's always a fixed amount of time.
 
Back
Top