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%) }$$
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!
@ChrisDKN @314 This didn't work, it just said all the code in the chat (I got kicked for spamming lol)
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 |?
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
Glad I could help. 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.
I've made it much shorter 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.
Well, I guess the important part of the aether will be the same as the nether or all the other worlds.
Would you mind telling us the one that you use to tell how much time is left for the potions in SG? Thanks