[DiscordArchive] Hello everyone, I have a question regarding "Method Global:SendMail". It says
[DiscordArchive] Hello everyone, I have a question regarding "Method Global:SendMail". It says
Archived author: jintao41 • Posted: 2022-11-14T19:57:36.379000+00:00
Original source
Hello everyone, I have a question regarding "Method Global:SendMail". It says
"SendMail( subject, text, receiverGUIDLow, senderGUIDLow, stationary, delay, money, cod, entry, amount )"
"number entry (0) Entry of an Item to send with mail." The wording "an item" suggests only one item with amount x, correct? Is it even possible to send e.g. one helmet and two healing potions in the same mail with eluna?
Archived author: Honey • Posted: 2022-11-14T20:03:15.946000+00:00
Original source
You can add up to twelve pairs of `entry, amount`
Archived author: Honey • Posted: 2022-11-14T20:03:40.340000+00:00
Original source
Or was it 16? Not 100% sure.
Archived author: Honey • Posted: 2022-11-14T20:03:47.926000+00:00
Original source
A full mail at least
Archived author: jintao41 • Posted: 2022-11-14T20:51:18.627000+00:00
Original source
Missing the obvious again, my bad, had a long day.
"There can be **several item entry-amount pairs at the end of the function**. There can be maximum of 12 different items."
This worked for me:
```lua
SendMail( "test", player:GetGUIDLow(), 10, 64, 0, 0, 0, 18945, 1, 13446, 2)
```
18945 with amount 1 and 13446 with amount 2 and so on.
Thank you!
Archived author: Honey • Posted: 2022-11-14T20:53:34.562000+00:00
Original source
Right, glad you figured it out!