[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]
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);
/run print( GetMouseFocus():GetName() )
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);
Mate, you seriously rule! Thanks!
Is postal enabled? Sometimes I've seen it fuck up such macros.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 +.+
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");
Lua.DoString("SendMail(\"MailRecipent\",\"Subject\",\"\")");
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
Lua.DoString("MailRecipent = \"Dummy\"");
Thread.Sleep(300); Lua.DoString("RunMacroText(\"/click MailFrameTab2\")"); Thread.Sleep(300);
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");
Lua.DoString("SendMail(MailRecipent,\"Blues\",\"\")");