Force COD
hey there lua masters, if i put this
QueueCOD(20) above this SendMail(currConfig.To,currConfig.Subject,"Thank you!") d("|c99FF99AAL:|cFFFFFF Sending 1 mail to "..currConfig.To..", containing 6 CLOTH items") numSlot = 1 zo_callLater(function() BG_OIK:SendMails() end, self.db.delay) if it will add a 20g cod to the in game mail being sent? or am I using this the wrong way? |
According to this filename here:
https://github.com/esoui/esoui/blob/...d_keyboard.lua You need to set the sendMoneyMode to false (true = send money / false = COD) -> See function ZO_MailSend_SetCoDMode at the bottom of this post. and then you could use the function MailSend:AttachMoney to specify which amount of COD to use. See functions below which should help: Lua Code:
But "MailSend" ist not the global variable used ingame so you are not able to use this. It's the "class" and you need to use the created "object" of that class to use the functions. If you check the code where MailSend gets created via :New or :Initialize you'll get the object name. It should be: MAIL_SEND And these functions may be helping as well: Lua Code:
BUT: As there were addons messing around with the send gold feature it might be not possible for addons to specify to send gold or set the COD from addon code. You need to check it. Sending gold will not be possible for sure! |
All times are GMT -6. The time now is 07:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI