mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Mails
* apply table quest_mail_sender to display correct mail source * fixed mails from mailtemplate.dbc for achievement rewards
This commit is contained in:
@@ -63,11 +63,13 @@ class AchievementList extends BaseType
|
||||
{
|
||||
$_curTpl = array_merge($rewards[$_id], $_curTpl);
|
||||
|
||||
$_curTpl['mailTemplate'] = $rewards[$_id]['MailTemplateID'];
|
||||
|
||||
if ($rewards[$_id]['MailTemplateID'])
|
||||
{
|
||||
// using class Loot creates an inifinite loop cirling between Loot, ItemList and SpellList or something
|
||||
// $mailSrc = new Loot();
|
||||
// $mailSrc->getByContainer(LOOT_MAIL, $rewards[$_id]['mailTemplate']);
|
||||
// $mailSrc->getByContainer(LOOT_MAIL, $rewards[$_id]['MailTemplateID']);
|
||||
// foreach ($mailSrc->iterate() as $loot)
|
||||
// $_curTpl['rewards'][] = [TYPE_ITEM, $loot['id']];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user