Working on a small addon for vgcraftbot to mail a storage alt the powders / shards etc..when the bags are full...
Starting small and working backwards so to speak...started on the actual mailbox routine...
opens the mailbox
sets the to
Sets the subject
adds the text.
Doesn't add the item as an attachment
Adds 10 copper to the mail
Doesn't send the mail
Not sure where I'm going wrong , used the commands listed in the sticky up above
but cant get it to work...anyone any ideas?
Starting small and working backwards so to speak...started on the actual mailbox routine...
Code:
function main()
{
Pawn[Mailbox]:DoubleClick
VGUI[recipient_name]:SetText[storage]
VGUI[subject_text]:SetText[Work Order storage]
Me.Inventory[Crystal]:AttachToMail
VGUI[_mail_offer_copper]:SetText[10]
Mail:Send
}
sets the to
Sets the subject
adds the text.
Doesn't add the item as an attachment
Adds 10 copper to the mail
Doesn't send the mail
Not sure where I'm going wrong , used the commands listed in the sticky up above
but cant get it to work...anyone any ideas?
Last edited by a moderator: