Request Macro

Discussion in 'Basic Tutorials' started by seawiiplay, Jun 19, 2013.

  1. seawiiplay

    seawiiplay Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 13, 2013
    Messages:
    256
    Trophy Points:
    25,990
    Gender:
    Male
    Ratings:
    +43
    Hey can somebody make a tutorial on a display like the balance display that shows the last person who payed you. Also another label that shows the last Pm you recived? If you know how to do either Please make a tutorial. Thanks!
     
  2. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,229
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    I have a transaction logger that logs all transactions made with other users to a word documentso you can review them at anytime, would this be of use? Please tag me when you reply otherwise I may not see your reply. seawiiplay
     
  3. seawiiplay

    seawiiplay Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 13, 2013
    Messages:
    256
    Trophy Points:
    25,990
    Gender:
    Male
    Ratings:
    +43
    That would be useful but could you make a macro that displays the last pm you recived or even just the person who messaged you ingame so you can check really quickly. Thanks! jakeyray18
     
  4. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,229
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    I guess I could write it into the same macro and just give you that one, you would have to create a label in one of the GUIs to display it though? Would that be alright with you?
    seawiiplay

    -Jakey
     
  5. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,229
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    Well I threw this together for you, you need to create a label with the control name "recenttrans", obviously without the ""'s and put this script in the onChat event:

    Code:
    $${
    STRIP(&chat,%CHAT%)
    IFMATCHES(%&chat%,^(\s?\$[0-9]*[\.0-9]*?)\s(.*?)(received from|sent to)\s?([^ ]*$))
        MATCH(%&chat%,^(\s?\$[0-9]*[\.0-9]*?)\s(.*?)(received from|sent to)\s?([^ ]*$),{@&amount,@&filler,@&sentreceived,@&username})
        IFMATCHES(%@&sentreceived%,received from)
            SETLABEL(recenttrans,&e%TIME%: &c%@&amount% &3Received from &6%@&username%)
            LOGTO("transactions-%SERVER%.txt",%TIME%: %@&amount% %@&sentreceived% %@&username%)
        ELSE
            IFMATCHES(%@&sentreceived%,sent to)
                SETLABEL(recenttrans,&e%TIME%: &c%@&amount% &3Sent to &6%@&username%)
                LOGTO("transactions-%SERVER%.txt",%TIME%: %@&amount% %@&sentreceived% %@&username%)
            ENDIF
        ENDIF
    ENDIF
    }$$
    This will log all transaction to a file which can be found in your minecraft folder at: ".minecraft\mods\macros\logs" it will be called "transactions-mc.ecocitycraft.com.txt". It will log all to and from transactions to both the label and the text file, I also added some colors to the label to make it look a little better. just change them if you don't like it. It will also display the time in the label and the text document of the time that the transaction occurred.
    Hope this is kinda what you were after, it does not matter which GUI you put the label on, as long as you know how to see the label. If this isn't what you were looking for just shot me a forum Pm and I will try to help out the best i can. seawiiplay :)

    - Jakey
     
    • Like Like x 1
    • Winner Winner x 1
    • List
    #5 GungnirIncarnate, Jun 19, 2013
    Last edited: Jun 19, 2013
  6. Lee1104

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

    Joined:
    Oct 5, 2012
    Messages:
    1,922
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    jakeyray18 could you PM me the transaction logger please? :D

    The regular one that logs it into a word document.
     
    #6 Lee1104, Jun 20, 2013
    Last edited: Jun 20, 2013
  7. seawiiplay

    seawiiplay Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 13, 2013
    Messages:
    256
    Trophy Points:
    25,990
    Gender:
    Male
    Ratings:
    +43
    Jakey this is exactly what I was looking for! Your the best person ever! Thanks alot! this will help me tons!
     
  8. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,229
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481

    The other one is identical to this it just lacks the:

    SETLABEL(recenttrans,&e%TIME%: &c%@&amount% &3Received from &6%@&username%)

    If you just take that out it will only log to the file, to be honest you don't even need to take it out, just don't create that label, it will still log to the file just not the label because there isn't a label.
     
  9. Lee1104

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

    Joined:
    Oct 5, 2012
    Messages:
    1,922
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    Thanks jakeyray! :D
     
  10. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,229
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481

    Anytime :)

    -Jakey