summaryrefslogtreecommitdiff
path: root/src/char/int_auction.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-08 12:01:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commit72427289b387df3394eeadf629d3510f60742970 (patch)
tree4de78908d5713a2a32a3b00c76b8abf6bb38ece8 /src/char/int_auction.c
parentf324b507a9c0792abee2d31f6f3607077376619d (diff)
downloadhercules-72427289b387df3394eeadf629d3510f60742970.tar.gz
hercules-72427289b387df3394eeadf629d3510f60742970.tar.bz2
hercules-72427289b387df3394eeadf629d3510f60742970.tar.xz
hercules-72427289b387df3394eeadf629d3510f60742970.zip
Add most functions from int_mail.c to interfaces.
Diffstat (limited to 'src/char/int_auction.c')
-rw-r--r--src/char/int_auction.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/char/int_auction.c b/src/char/int_auction.c
index 4ae4b8bc9..d0b37054d 100644
--- a/src/char/int_auction.c
+++ b/src/char/int_auction.c
@@ -144,12 +144,12 @@ static int inter_auction_end_timer(int tid, int64 tick, int id, intptr_t data) {
{
if( auction->buyer_id )
{
- inter_mail_sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "Thanks, you won the auction!.", 0, &auction->item);
+ inter_mail->sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "Thanks, you won the auction!.", 0, &auction->item);
mapif->auction_message(auction->buyer_id, 6); // You have won the auction
- inter_mail_sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Payment for your auction!.", auction->price, NULL);
+ inter_mail->sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Payment for your auction!.", auction->price, NULL);
}
else
- inter_mail_sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "No buyers have been found for your auction.", 0, &auction->item);
+ inter_mail->sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "No buyers have been found for your auction.", 0, &auction->item);
ShowInfo("Auction End: id %u.\n", auction->auction_id);
@@ -352,7 +352,7 @@ void mapif_parse_auction_cancel(int fd)
return;
}
- inter_mail_sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Auction canceled.", 0, &auction->item);
+ inter_mail->sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Auction canceled.", 0, &auction->item);
inter_auction->delete_(auction);
mapif->auction_cancel(fd, char_id, 0); // The auction has been canceled
@@ -391,9 +391,9 @@ void mapif_parse_auction_close(int fd)
}
// Send Money to Seller
- inter_mail_sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Auction closed.", auction->price, NULL);
+ inter_mail->sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Auction closed.", auction->price, NULL);
// Send Item to Buyer
- inter_mail_sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "Auction winner.", 0, &auction->item);
+ inter_mail->sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "Auction winner.", 0, &auction->item);
mapif->auction_message(auction->buyer_id, 6); // You have won the auction
inter_auction->delete_(auction);
@@ -432,11 +432,11 @@ void mapif_parse_auction_bid(int fd)
{ // Send Money back to the previous Buyer
if( auction->buyer_id != char_id )
{
- inter_mail_sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "Someone has placed a higher bid.", auction->price, NULL);
+ inter_mail->sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "Someone has placed a higher bid.", auction->price, NULL);
mapif->auction_message(auction->buyer_id, 7); // You have failed to win the auction
}
else
- inter_mail_sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "You have placed a higher bid.", auction->price, NULL);
+ inter_mail->sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "You have placed a higher bid.", auction->price, NULL);
}
auction->buyer_id = char_id;
@@ -447,9 +447,9 @@ void mapif_parse_auction_bid(int fd)
{ // Automatic won the auction
mapif->auction_bid(fd, char_id, bid - auction->buynow, 1); // You have successfully bid in the auction
- inter_mail_sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "You have won the auction.", 0, &auction->item);
+ inter_mail->sendmail(0, "Auction Manager", auction->buyer_id, auction->buyer_name, "Auction", "You have won the auction.", 0, &auction->item);
mapif->auction_message(char_id, 6); // You have won the auction
- inter_mail_sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Payment for your auction!.", auction->buynow, NULL);
+ inter_mail->sendmail(0, "Auction Manager", auction->seller_id, auction->seller_name, "Auction", "Payment for your auction!.", auction->buynow, NULL);
inter_auction->delete_(auction);
return;