diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-06-29 04:09:00 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-06-29 04:09:00 +0800 |
commit | 8cb423b19748f2094fb8837d3c4e0de4ad11fcf8 (patch) | |
tree | 249d42842f0779c26a30ce33896723208a7fe155 | |
parent | be453a9b540e585229e7472ebaac112a4d41a393 (diff) | |
download | pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.tar pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.tar.gz pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.tar.bz2 pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.tar.lz pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.tar.xz pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.tar.zst pttbbs-8cb423b19748f2094fb8837d3c4e0de4ad11fcf8.zip |
fpg money 674:1
git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.fpg@2095 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/merge.c | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/mbbsd/merge.c b/mbbsd/merge.c index 6a75328c..8507a219 100644 --- a/mbbsd/merge.c +++ b/mbbsd/merge.c @@ -72,22 +72,41 @@ m_fpg() move(12,0); clrtobot(); #ifdef MERGEMONEY + int price[10] = {74, 21, 29, 48, 67, 11, 9, 43, 57, 72}; + unsigned int market[10], lmarket; + reload_money(); + + lmarket=0; + for(i=0; i<10; i++) + lmarket += market[i]/674 *price[i]; sprintf(buf, - "您的花園幣有 %d 換算成 Ptt 幣為 %d (匯率 155:1), \n" - " 原有 %d 匯入後共有 %d\n", - man.money, man.money/155, cuser.money, cuser.money + man.money/155); - demoney(man.money/155); + "您的花園幣有 %10d 換算成 Ptt 幣為 %9d (優惠匯率 155:1), \n" + " 銀行有 %10d 換算為 Ptt 幣為 %9d (匯率為 674:1), \n" + " 花市價值 %10d 換算為 Ptt 幣為 %9d (匯率為 674:1), \n" + " 原有P幣 %10d 匯入後共有 %d\n", + man.money, man.money/155, + man.bank, man.bank/674, + lmarket*674, lmarket, + cuser.money, cuser.money + man.money/155 + man.bank/674 + lmarket); + demoney(man.money/155 + man.bank/674 + lmarket); strcat(msg, buf); #endif i = cuser.exmailbox + man.mailk + man.keepmail; if (i > 1000) i = 1000; - sprintf(buf, "您的花園信箱有 %d : %d, 原有 %d 匯入後共有 %d\n", - man.mailk, man.keepmail, cuser.exmailbox, cuser.exmailbox ); + sprintf(buf, "您的花園信箱有 %d (%dk), 原有 %d 匯入後共有 %d\n", + man.keepmail, man.mailk, cuser.exmailbox, cuser.exmailbox ); strcat(msg, buf); cuser.exmailbox = i; + if(man.userlevel & PERM_MAILLIMIT) + { + sprintf(buf, "開啟信箱無上限\n"); + strcat(msg, buf); + cuser.userlevel |= PERM_MAILLIMIT; + } + if(cuser.firstlogin > man.firstlogin) d = man.firstlogin; else d = cuser.firstlogin; sprintf(buf, "花園註冊日期 %s ", Cdatedate(&(man.firstlogin))); |