Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] Hello everyone, I have a question regarding "Method Global:SendMail". It says

rektbyfaith
Administrator
0
11-14-2022, 07:57 PM
#1
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?
rektbyfaith
11-14-2022, 07:57 PM #1

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?

rektbyfaith
Administrator
0
11-14-2022, 08:03 PM
#2
Archived author: Honey • Posted: 2022-11-14T20:03:15.946000+00:00
Original source

You can add up to twelve pairs of `entry, amount`
rektbyfaith
11-14-2022, 08:03 PM #2

Archived author: Honey • Posted: 2022-11-14T20:03:15.946000+00:00
Original source

You can add up to twelve pairs of `entry, amount`

rektbyfaith
Administrator
0
11-14-2022, 08:03 PM
#3
Archived author: Honey • Posted: 2022-11-14T20:03:40.340000+00:00
Original source

Or was it 16? Not 100% sure.
rektbyfaith
11-14-2022, 08:03 PM #3

Archived author: Honey • Posted: 2022-11-14T20:03:40.340000+00:00
Original source

Or was it 16? Not 100% sure.

rektbyfaith
Administrator
0
11-14-2022, 08:03 PM
#4
Archived author: Honey • Posted: 2022-11-14T20:03:47.926000+00:00
Original source

A full mail at least
rektbyfaith
11-14-2022, 08:03 PM #4

Archived author: Honey • Posted: 2022-11-14T20:03:47.926000+00:00
Original source

A full mail at least

rektbyfaith
Administrator
0
11-14-2022, 08:51 PM
#5
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!
rektbyfaith
11-14-2022, 08:51 PM #5

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!

rektbyfaith
Administrator
0
11-14-2022, 08:53 PM
#6
Archived author: Honey • Posted: 2022-11-14T20:53:34.562000+00:00
Original source

Right, glad you figured it out!
rektbyfaith
11-14-2022, 08:53 PM #6

Archived author: Honey • Posted: 2022-11-14T20:53:34.562000+00:00
Original source

Right, glad you figured it out!

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)