1. ChrisDKN Builder
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️

    Joined:
    Jan 29, 2014
    Messages:
    220
    Trophy Points:
    31,490
    Gender:
    Male
    Ratings:
    +230
    A simple macro to display which world/sg arena you are in.

    1. Go to the text editor and create a new text file called world (lower case)
    2. Copy and paste the code into this new file.
    3. Go to the Gui editor and edit the "ingame" gui
    4. Add a label and set the Control name and Binding to world (lower case) The Label text can be left blank.
    5. Go to the Onchat event and add $$<world.txt>. If you already have stuff in this box, you can separate them using | Eg. $$<Lottery.txt>|$$<world.txt>
    6. The label will update once you change worlds

    Code:
    $${
    STRIP(&chat,%CHAT%)
    IFMATCHES(%&chat%,^\[ECC-World\] You are now in (.*) This is)
    MATCH(%&chat%,^\[ECC-World\] You are now in (.*) This is,{&wrld})
    ELSE
    IFMATCHES(%&chat%,^\[ECC-World\] You are now in the (.*) (World!|Please))
    MATCH(%&chat%,^\[ECC-World\] You are now in the (.*) (World!|Please),{&wrld})
    ELSE
    IFMATCHES(%&chat%,^\[ECC-SG\] Joining Arena [0-9]+)
    MATCH(%&chat%,^\[ECC-SG\] Joining (.*) ([0-9]+),{&wrld,&arena})
    ENDIF
    ENDIF
    ENDIF
    If(%&wrld% = "Rising!")
    &color = &6
    &wrld = "Rising"
    ELSEIF(%&wrld% = "Legacy!")
    &color = &1
    &wrld = "Legacy"
    ELSEIF(%&wrld% = "Mining World!")
    &color = &7
    &wrld = "Mining"
    ELSEIF(%&wrld% = "PVP")
    &color = &5
    ELSEIF(%&wrld% = "Nether!")
    &color = &d
    &wrld = Nether
    ELSEIF(%&wrld% = "Aether")
    &color = &e
    ELSEIF(%&wrld% = "Arena")
    &color = &b
    &wrld = "SG %&arena%"
    ENDIF
    SETLABEL(world,&2World: %&color%%&wrld%)
    }$$
    
     
    #1 ChrisDKN, Apr 2, 2014
    Last edited: Aug 15, 2014
  2. 314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,010
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,919
    Very nice! Tried it and it works! Added nether and aether with this code. Tested only with nether though.
    Code:
    $${
    STRIP(&chat,%CHAT%)
    IFMATCHES(%&chat%,^\[ECC-World\] You are now in the Nether!)
    SETLABEL(world,&2World: &dNether)
    ENDIF
    }$$
    $${
    STRIP(&chat,%CHAT%)
    IFMATCHES(%&chat%,^\[ECC-World\] You are now in the Aether!)
    SETLABEL(world,&2World: &eAether)
    ENDIF
    }$$
    I hope it is correct! :)
     
  3. Jacob43365 EcoLeader
    EcoLeader ⛰️⛰️⛰️ Ex-President ⚒️⚒️

    Joined:
    Jul 9, 2014
    Messages:
    1,592
    Trophy Points:
    52,910
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +492
    @ChrisDKN @314
    This didn't work, it just said all the code in the chat (I got kicked for spamming lol)
     
  4. ChrisDKN Builder
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️

    Joined:
    Jan 29, 2014
    Messages:
    220
    Trophy Points:
    31,490
    Gender:
    Male
    Ratings:
    +230
    Did you put in the "$${ }$$" tags in correctly? Check each one
     
  5. 314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,010
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,919
    Could the error as well be caused by "add $$<world.txt> to the onChat event" if there are multiple events in OnChat and they are not separated with a |?
     
  6. Jacob43365 EcoLeader
    EcoLeader ⛰️⛰️⛰️ Ex-President ⚒️⚒️

    Joined:
    Jul 9, 2014
    Messages:
    1,592
    Trophy Points:
    52,910
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +492
    @314
    Thanks that was the problem
     
  7. DBK01 Tycoon
    Tycoon ⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ I ⭐

    Joined:
    Apr 30, 2014
    Messages:
    801
    Trophy Points:
    48,010
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +166
    Hmm I have tried this I added a label that is showen when not chatting named it world both name and binding and code but its not working

    @314 @ChrisDKN
     
  8. 314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,010
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,919
    Glad I could help. :happy:


    What part is not working? Does it not update? Does it say it in chat?
    If the first, try to check whether the names of the .txt and the file name at onChat match.
     
  9. DBK01 Tycoon
    Tycoon ⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ I ⭐

    Joined:
    Apr 30, 2014
    Messages:
    801
    Trophy Points:
    48,010
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +166
    Its working now thx
     
  10. ChrisDKN Builder
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️

    Joined:
    Jan 29, 2014
    Messages:
    220
    Trophy Points:
    31,490
    Gender:
    Male
    Ratings:
    +230
    I've made it much shorter :D I don't think it will work in the aether though. If someone could send me the exact message upon entering the aether then I can fix it.
     
  11. 314 Irrational GameAdmin, former ServerAdmin
    EcoLegend ⛰️⛰️⛰️⛰️ Ex-President ⚒️⚒️ Prestige ⭐ VI ⭐ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    7,010
    Trophy Points:
    97,160
    EcoDollars:
    $6,000,000
    Ratings:
    +4,919
    Well, I guess the important part of the aether will be the same as the nether or all the other worlds.
     
  12. Dccciz Nicememer55
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Mar 8, 2013
    Messages:
    2,802
    Trophy Points:
    50,090
    EcoDollars:
    $0
    Ratings:
    +2,060
    Would you mind telling us the one that you use to tell how much time is left for the potions in SG? Thanks :)
     
  13. ChrisDKN Builder
    Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️

    Joined:
    Jan 29, 2014
    Messages:
    220
    Trophy Points:
    31,490
    Gender:
    Male
    Ratings:
    +230
  14. Builder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Apr 28, 2012
    Messages:
    2,186
    Trophy Points:
    54,090
    Gender:
    Male
    Ratings:
    +2,604
    Any chance you could add the mining world to this also?