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%) }$$
Thread Tools
Thread Tools
-
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 }$$
-
Jacob43365 EcoLeaderEcoLeader ⛰️⛰️⛰️ Ex-President ⚒️⚒️
-
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 |?
-
Jacob43365 EcoLeaderEcoLeader ⛰️⛰️⛰️ Ex-President ⚒️⚒️
@314
Thanks that was the problem -
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 :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.
-
Well, I guess the important part of the aether will be the same as the nether or all the other worlds.
-
-
xX3PICREBELXx JiggaBuilder ⛰️ Ex-EcoMaster ⚜️⚜️⚜️⚜️ Premium Upgrade