[Suggestion] Seeing recent Transaction history of your balance

Discussion in 'Suggestions' started by lurkblader, Nov 17, 2013.

  1. lurkblader

    lurkblader Hardcore-Farmer Giftcards-Buyer EcoMaster
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 6, 2013
    Messages:
    142
    Trophy Points:
    40,490
    Gender:
    Male
    Ratings:
    +135
    Minecraft Name: lurkblader

    Suggestion: We need to able to see our recent transaction history of our balance. I want new command something like /balhistory or /baltransaction something like these so we can check 5 or 10 recent transaction history of our money.

    Reason: Sometimes you get paid, but get lagged out, or you miss the transaction message, and chat space gets filled and get impossible to see, whether you get paid or not. And there are still lot of people who is not memorizing their own balance accurately 24/7... Once you get paid, you are not sure there was a change of balance, because you can't remember how much money you had. So we need somekinda command that checks recent few records of paying someone or getting paid between players..

    Any Other Information: None.

    Link To This Plugin: None
     
    • Agree Agree x 6
    • Like Like x 1
    • List
    #1 lurkblader, Nov 17, 2013
    Last edited: Nov 17, 2013
  2. Original_Jackson

    Original_Jackson ♕ Ecoleader ♕
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jul 5, 2013
    Messages:
    1,384
    Trophy Points:
    44,090
    Gender:
    Male
    Ratings:
    +901
  3. Revanrose6

    Revanrose6 Sith Lord
    ECC Sponsor Resident ⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ I ⭐ Gameplay Architect Premium Upgrade

    Joined:
    Dec 18, 2012
    Messages:
    8,391
    Trophy Points:
    93,160
    Gender:
    Female
    Ratings:
    +3,306
    Although this sounds like a fantastic idea, I can't help but wonder if it could lag the server. For example, Mctop was removed because twenty people using it at once lagged the server severely.
     
  4. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,922
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    Macros are your friend.
     
  5. lurkblader

    lurkblader Hardcore-Farmer Giftcards-Buyer EcoMaster
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 6, 2013
    Messages:
    142
    Trophy Points:
    40,490
    Gender:
    Male
    Ratings:
    +135
    Wait, there is a macro mod script to check recent transaction history of balance? Can you give me a link? because all i am using is right now, is just displaying a current balance in label and That's all. I would love to set the new script, if there is a way that can check the history.

    ----
    And by the way, I think this is needed anyway even if it's possible through macro mod. not everyone uses macro mod.
     
    #5 lurkblader, Nov 17, 2013
    Last edited: Nov 17, 2013
  6. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,922
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    Well my macro logs EVERY transaction, when I pay someone or when I get paid. It makes a text file in your

    .../AppData/Roaming/.minecraft/mods/macros/logs

    Credits go to jakeyray18 for this macro.

    1. Make a Text File: recenttrans.txt
    2. Copy this code:
    3. Put "$$<recenttrans.txt>" under onChat for Events.

    If somethings wrong, I probably don't know how to fix it. :p
     
    • Like Like x 1
    • Winner Winner x 1
    • List
    #6 Lee1104, Nov 17, 2013
    Last edited: Nov 17, 2013
  7. lurkblader

    lurkblader Hardcore-Farmer Giftcards-Buyer EcoMaster
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 6, 2013
    Messages:
    142
    Trophy Points:
    40,490
    Gender:
    Male
    Ratings:
    +135

    Thank you. But how do I check the log?
    --------------[Edit]----------------
    Oh I figured it out. you mentioned it in first line.
    Thank you very much! :)
     
    #7 lurkblader, Nov 17, 2013
    Last edited: Nov 17, 2013
  8. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,061
    Trophy Points:
    80,160
    Ratings:
    +6,925
  9. Revanrose6

    Revanrose6 Sith Lord
    ECC Sponsor Resident ⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ I ⭐ Gameplay Architect Premium Upgrade

    Joined:
    Dec 18, 2012
    Messages:
    8,391
    Trophy Points:
    93,160
    Gender:
    Female
    Ratings:
    +3,306

    Would it possibly cause lag if a lot of people used it at once?
     
  10. rockboy2000

    rockboy2000 Mayor
    Mayor ⛰️⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 19, 2012
    Messages:
    1,344
    Trophy Points:
    50,410
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +310
    Well I pulled one together that includes selling/buying from trade signs and lotto. Though I haven't tested out the lotto one as I am trying to stay away from it. I kinda pulled the regex's from jakey's balchecker script to save time so that credit goes to him. It isn't written in the best way so I will make it better when I have the time. I may even create a few in-game commands so you can check it without going to logs. But here it is:

    Code:
    $${
    STRIP(&chat,%CHAT%)
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been taken from your account\.)
        MATCH(%&chat%,\$([0-9]+)\.([0-9]+),{#dollartaken,#centstaken})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken%.%#centstaken% has been taken from your account.)
        ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been taken from your account\.)
        MATCH(%&chat%,\$([0-9]+),{#dollartaken})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken% has been taken from your account.)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been added to your account\.)
        MATCH(%&chat%,\$([0-9]+)\.([0-9]+),{#dollaradded,#centsadded})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded%.%#centsadded% has been taken from your account.)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been added to your account\.)
        MATCH(%&chat%,\$([0-9]+),{#dollaradded})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded% has been taken from your account.)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been sent to (.*)\.)
        MATCH(%&chat%,\$([0-9]+)\.([0-9]+) has been sent to ((.*)),{#dollartaken,#centstaken,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken%.%#centstaken% has been sent to %&playername%)
        ENDIF
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been sent to (.*)\.)
        MATCH(%&chat%,\$([0-9]+) has been sent to ((.*)),{#dollartaken,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken% has been sent to %&playername%)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been received from (.*)\.)
        MATCH(%&chat%,\$([0-9]+)\.([0-9]+) has been received from ((.*)),{#dollaradded,#centsadded,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded%.%#centsadded% has been received from %&playername%)
        ENDIF
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been received from (.*)\.)
        MATCH(%&chat%,\$([0-9]+) has been received from ((.*)),{#dollaradded,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded% has been received from %&playername%)
    ENDIF
    IFMATCHES(%&chat%,\[LOTTERY\] You got (.*) for \$(.*))
        MATCH(%&chat%,^\[LOTTERY\] You got (.*) for \$((.*)),{&fill,#lotamount})
        LOGTO("trans-%SERVER%.txt",%TIME%: You bought $%#lotamount% worth of lotto tickets.)
    ENDIF
    IFMATCHES(%&chat%,^\[LOTTERY\] Congratulations go to %PLAYER% for winning \$(.*) with .*)
        MATCH(%&chat%,\[LOTTERY\] Congratulations go to %PLAYER% for winning \$((.*)) with (.*),{#winamount,&fill})
        LOGTO("trans-%SERVER%.txt",%TIME%: You won lotto and received $%#winamount%)
    ENDIF
    }$$
     
    #10 rockboy2000, Nov 17, 2013
    Last edited: Nov 17, 2013
  11. _Oreo_Oreo_

    _Oreo_Oreo_ Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Nov 13, 2013
    Messages:
    80
    Trophy Points:
    20,150
    Gender:
    Male
    Ratings:
    +12
    I would like this because I don't get Macro's. If someone would make a tutorial on the macro thinggy please let me know.
     
  12. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,061
    Trophy Points:
    80,160
    Ratings:
    +6,925
    It shouldn't because it uses a completely different system. It only checks your own stuff. Not everyone's stuff like with mctop
     
  13. rockboy2000

    rockboy2000 Mayor
    Mayor ⛰️⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 19, 2012
    Messages:
    1,344
    Trophy Points:
    50,410
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +310
    Well here is my updated one, fixed mistakes I made before and added a command that displays the last 10 transactions. You type "!trans recent" to display the last 10. You must type it in local and it won't work if someone else types it. Though I still plan on changing it to a key soon as requested by kuke. I stole a bit of code from jakey so credit for that goes to him. The recent transactions won't work properly until you have 10 transactions made.

    I haven't be able to test whether the lotto works, though it should. If someone could kindly test it and report to me what you find I would be grateful. I will be adding addition features as well. You can still find a log of all transactions in the .minecraft/mods/macros/logs folder appearing as trans-servername. After creating the script put it in the onChat section.
    Code:
    $${
    STRIP(&chat,%CHAT%)
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been taken from your account\.)
        MATCH(%&chat%,\$([0-9]+)\.([0-9]+),{#dollartaken,&centstaken})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken%.%&centstaken% has been taken from your account.)
        PUSH(&recenttrans,%TIME%: $%#dollartaken%.%&centstaken% has been taken from your account.)
        ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been taken from your account\.)
        MATCH(%&chat%,\$([0-9]+),{#dollartaken})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%&dollartaken% has been taken from your account.)
        PUSH(&recenttrans,%TIME%: $%#dollartaken% has been taken from your account.)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been added to your account\.)
        MATCH(%&chat%,\$([0-9]+)\.(\d\d),{#dollaradded,&centsadded})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded%.%&centsadded% has been added to your account.)
        PUSH(&recenttrans,%TIME%: $%#dollaradded%.%&centsadded% has been added to your account.)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been added to your account\.)
        MATCH(%&chat%,\$([0-9]+),{#dollaradded})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded% has been added to your account.)
        PUSH(&recenttrans,%TIME%: $%#dollaradded% has been added to your account.)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been sent to (.*)\.)
        MATCH(%&chat%,\$([0-9]+)\.(\d\d) has been sent to ((.*)),{#dollartaken,&centstaken,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken%.%&centstaken% has been sent to %&playername%)
        PUSH(&recenttrans,%TIME%: $%#dollartaken%.%&centstaken% has been sent to %&playername%)
        ENDIF
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been sent to (.*)\.)
        MATCH(%&chat%,\$([0-9]+) has been sent to ((.*)),{#dollartaken,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollartaken% has been sent to %&playername%)
        PUSH(&recenttrans,%TIME%: $%#dollartaken% has been sent to %&playername%)
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+\.\d\d has been received from (.*)\.)
        MATCH(%&chat%,\$([0-9]+)\.(\d\d) has been received from ((.*)),{#dollaradded,&centsadded,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded%.%&centsadded% has been received from %&playername%)
        PUSH(&recenttrans,%TIME%: $%#dollaradded%.%&centsadded% has been received from %&playername%)
        ENDIF
    ENDIF
    IFMATCHES(%&chat%,\$[0-9]+ has been received from (.*)\.)
        MATCH(%&chat%,\$([0-9]+) has been received from ((.*)),{#dollaradded,&playername})
        LOGTO("trans-%SERVER%.txt",%TIME%: $%#dollaradded% has been received from %&playername%)
        PUSH(&recenttrans,%TIME%: $%#dollaradded% has been received from %&playername%)
    ENDIF
    IFMATCHES(%&chat%,\[LOTTERY\] You got (.*) for \$(.*))
        MATCH(%&chat%,^\[LOTTERY\] You got (.*) for \$((.*)),{&fill,#lotamount})
        LOGTO("trans-%SERVER%.txt",%TIME%: You bought $%#lotamount% worth of lotto tickets.)
        PUSH(&recenttrans,%TIME%: You bought $%#lotamount% worth of lotto tickets.)
    ENDIF
    IFMATCHES(%&chat%,^\[LOTTERY\] Congratulations go to %PLAYER% for winning \$(.*) with .*)
        MATCH(%&chat%,\[LOTTERY\] Congratulations go to %PLAYER% for winning \$((.*)) with (.*),{#winamount,&fill})
        LOGTO("trans-%SERVER%.txt",%TIME%: You won lotto and received $%#winamount%.)
        PUSH(&recenttrans,%TIME%: You won lotto and received $%#winamount%.)
    ENDIF
    IFMATCHES(%&chat%,^\[L\](.*)%PLAYER%: !trans recent)
        ARRAYSIZE(&recenttrans,#recentsize)
        #recentsize1 = #recentsize - 1
        LOG(&41.&f%&recenttrans[%#recentsize1%]%)
        #recentsize2 = #recentsize - 2
        LOG(&42.&f%&recenttrans[%#recentsize2%]%)
        #recentsize3 = #recentsize - 3
        LOG(&43.&f%&recenttrans[%#recentsize3%]%)
        #recentsize4 = #recentsize - 4
        LOG(&44.&f%&recenttrans[%#recentsize4%]%)
        #recentsize5 = #recentsize - 5
        LOG(&45.&f%&recenttrans[%#recentsize5%]%)
        #recentsize6 = #recentsize - 6
        LOG(&46.&f%&recenttrans[%#recentsize6%]%)
        #recentsize7 = #recentsize - 7
        LOG(&47.&f%&recenttrans[%#recentsize7%]%)
        #recentsize8 = #recentsize - 8
        LOG(&48.&f%&recenttrans[%#recentsize8%]%)
        #recentsize9 = #recentsize - 9
        LOG(&49.&f%&recenttrans[%#recentsize9%]%)
        #recentsize10 = #recentsize - 10
        LOG(&410.&f%&recenttrans[%#recentsize10%]%)
    ENDIF
    }$$
     
    #13 rockboy2000, Nov 17, 2013
    Last edited: Nov 17, 2013
  14. TJanicki

    TJanicki /warp monaco
    Mythic ⚔️ I ⚔️ EcoLeader ⛰️⛰️⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐ V ⭐ Premium Upgrade

    Joined:
    Oct 7, 2012
    Messages:
    571
    Trophy Points:
    66,260
    Gender:
    Male
    Ratings:
    +164
    Lol....this is changing into a macromod thread :D
     
  15. lurkblader

    lurkblader Hardcore-Farmer Giftcards-Buyer EcoMaster
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 6, 2013
    Messages:
    142
    Trophy Points:
    40,490
    Gender:
    Male
    Ratings:
    +135
    Yay! This is actually advanced version.. wow.. it works fine for me, but like you, i don't play lotto much so I haven't yet test the lotto. Thank you very much! :)
     
  16. rollsicy

    rollsicy Rolls Royalty
    Builder ⛰️ Ex-Mayor ⚒️⚒️ Premium Upgrade

    Joined:
    Jun 24, 2013
    Messages:
    169
    Trophy Points:
    35,740
    Gender:
    Male
    Ratings:
    +88
    OMG ^_^ this is an awesome script :D
     
  17. kukelekuuk

    kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯ
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    May 25, 2011
    Messages:
    10,061
    Trophy Points:
    80,160
    Ratings:
    +6,925
    Please note that the script does not count as any sort of evidence in complaints, it will be dismissed.
     
  18. rollsicy

    rollsicy Rolls Royalty
    Builder ⛰️ Ex-Mayor ⚒️⚒️ Premium Upgrade

    Joined:
    Jun 24, 2013
    Messages:
    169
    Trophy Points:
    35,740
    Gender:
    Male
    Ratings:
    +88
  19. igorvanloo

    igorvanloo Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Feb 6, 2012
    Messages:
    388
    Trophy Points:
    27,340
    Ratings:
    +50
  20. rockboy2000

    rockboy2000 Mayor
    Mayor ⛰️⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Oct 19, 2012
    Messages:
    1,344
    Trophy Points:
    50,410
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +310
    Yes, you still need to screenshot the actual transaction, the log document or the recent trans will not suffice.

    Sent from my GT-I9300 using Tapatalk