From b97b387e789c1f36b07770a34c3be0eaef3bee39 Mon Sep 17 00:00:00 2001 From: "Bogir[rus]" Date: Mon, 3 Jan 2022 23:18:19 +0500 Subject: update mail.md (#671) Additional description about formatted Subject and Body --- docs/mail.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'docs') diff --git a/docs/mail.md b/docs/mail.md index b759e9f..c1d4279 100644 --- a/docs/mail.md +++ b/docs/mail.md @@ -86,10 +86,57 @@ Here is receiver's [character.guid](character#guid). Here is stored mail subject. +If [stationery][3] is 62, subject has formatted data: + +`itemEntry:0:response:lotId:itemCount` + +- **itemEntry**: entry field from item_template table + +- 0: allways 0 + +- **response**: Flag from 0 to 6 + +| Flag | Comment | +| ---- | --------------------------- | +| 0 | AUCTION_OUTBIDDED | +| 1 | AUCTION_WON | +| 2 | AUCTION_SUCCESSFUL | +| 3 | AUCTION_EXPIRED | +| 4 | AUCTION_CANCELLED_TO_BIDDER | +| 5 | AUCTION_CANCELED | +| 6 | AUCTION_SALE_PENDING | + +- **lotId**: id field from auctionhouse table + +- **itemCount**: amount of item at this Lot + + ### body The text contained in the mail. Max length is 8000 characters. +If [stationery][3] is 62, body has formatted data: + +`hexID:bid:buyout:deposit:cut:delay:eta` + +- **hexID**: hex value of itemowner's GUID (guid field from characters table) + +- **bid**: ending bid for this lot + +- **buyout**: buyout price of lot + +- **deposit**: amount of money which will be taken by auctionhouse and returned then auction ends + +- **cut**: Commission fee. Will be taken by auctionhouse then auction ends + +- **delay**: time in seconds to delay mail with money for successfully solded lot + +- **eta**: packed time to next mail whth money which appears in mail heder and body of notification mail + +This formatted data seen only in mail with notification about successful auction or about pending mail with money. + + + ### has_items Default: 0, -- cgit