False alarm... I was trying with 1.9, and it worked, I went back to 1.9.4, and it worked... I guess stuff got wonky after I was server switching and also macro mod profile switching... sorry for the trouble. And thanks for quick reply.
No that's okay, at least it's resolved. I was a bit confused since the builds for 1.9 and 1.9.4 are pretty much the same and I was worried (and a bit confused, since the changes didn't touch the script executive) that I broke some scripting thing in 0.12.2
Is it possible to bind the new TRACE variables to an ingame GUI label? I used to use the Farhit module to display block ID and data so I could always identify what I was looking at. Where would the trace command be run from to get the data, and would it have to be running in a loop constantly?
@mumfrey , your macros for 1.9 is bugged, sometimes the %server% variables dont refresh, also im an admin on one server, i did a auto-login script, when i join on other server, it runs and block, but when i join on my server, when im an admin, it runs, and detect the previous server.
Is it possible to bind the new TRACE variables to an ingame GUI label? I used to use the Farhit module to display block ID and data so I could always identify what I was looking at. Where would the trace command be run from to get the data, and would it have to be running in a loop constantly?
Yes, basically you can just put it in a daemon script and have that update the labels. Ray tracing is expensive so rather than have the mod do it all the time for an arbitrary distance TRACE puts full control in your hands so you can run ray traces at the range and rate you choose, and also choose whether to include entities.
@mumfrey , your macros for 1.9 is bugged, sometimes the %server% variables dont refresh, also im an admin on one server, i did a auto-login script, when i join on other server, it runs and block, but when i join on my server, when im an admin, it runs, and detect the previous server.
p.s how i make a loop macro chatclean script?.
Ok I'll look into that. What do you you meean by a loop macro chatclean script? CHATCLEAN is a context variable available in the onChat and chat filter event handler macros, you don't use it in a loop.
Ok, i'm still running 1.7.10. not sure if that matters.
our server has a command /deathinfo which echos in chat the coords of your last death location:
You burned to death at 19:17 on May 19 2016
Coords: -2569 5 8334 in the normal world
Im trying to write a script that grabs the coords and saves them to var's such as:
xvar yvar and zvar
But i'm having trouble stripping the coordinate numbers out of the string of text thats been printed to chat. I think i can write the rest of the script if i can get this part figured out.
Yes, basically you can just put it in a daemon script and have that update the labels. Ray tracing is expensive so rather than have the mod do it all the time for an arbitrary distance TRACE puts full control in your hands so you can run ray traces at the range and rate you choose, and also choose whether to include entities.
Ok I'll look into that. What do you you meean by a loop macro chatclean script? CHATCLEAN is a context variable available in the onChat and chat filter event handler macros, you don't use it in a loop.
Mumfrey, i want to make an automatic impostor checker, i tried, but how i can make it, it need two commands, also in my server, i want to trigger when chat says %joinedplayer is an impostor, to check if is impostor, i need to type /seen to get his ip, also /seen to get his username logged on his ip, how i can do it?
The onJoinPlayer event triggers when a player joins, and using the command %JOINEDPLAYER% would show the name of that player. Is it possible to use this for when a player quits?
Ok, i'm still running 1.7.10. not sure if that matters.
our server has a command /deathinfo which echos in chat the coords of your last death location:
You burned to death at 19:17 on May 19 2016
Coords: -2569 5 8334 in the normal world
Im trying to write a script that grabs the coords and saves them to var's such as:
xvar yvar and zvar
But i'm having trouble stripping the coordinate numbers out of the string of text thats been printed to chat. I think i can write the rest of the script if i can get this part figured out.
Mumfrey, i want to make an automatic impostor checker, i tried, but how i can make it, it need two commands, also in my server, i want to trigger when chat says %joinedplayer is an impostor, to check if is impostor, i need to type /seen to get his ip, also /seen to get his username logged on his ip, how i can do it?
Match the first chat method with a regex and send the /seen command using ECHO, then match the reply also with a regex.
The onJoinPlayer event triggers when a player joins, and using the command %JOINEDPLAYER% would show the name of that player. Is it possible to use this for when a player quits?
Hi, I'm trying to create a simple script to right the number of times entered into a prompt, but I can't seem to get the variables working correctly. I either get the name of the variable printed out in chat, or nothing printed at all in place of the variable. My attempt is as follows:
$${
PROMPT(#NUM,"Enter the number of right clicks:")
DO(%NUM%)
LOG("Right click") (In place of a right click for now)
LOOP
}$$
It doesn't print out any of the commands, e.g. PROMPT or LOG, but it doesn't work either. I'm certain it's a problem with the way I'm trying to use the variables-I couldn't find a good reference for where each identifier could be used (The one linked in the OP mostly describes commands). Any help would be appreciated.
Hi, I'm trying to create a simple script to right the number of times entered into a prompt, but I can't seem to get the variables working correctly. I either get the name of the variable printed out in chat, or nothing printed at all in place of the variable. My attempt is as follows:
$${
PROMPT(#NUM,"Enter the number of right clicks:")
DO(%NUM%)
LOG("Right click") (In place of a right click for now)
LOOP
}$$
It doesn't print out any of the commands, e.g. PROMPT or LOG, but it doesn't work either. I'm certain it's a problem with the way I'm trying to use the variables-I couldn't find a good reference for where each identifier could be used (The one linked in the OP mostly describes commands). Any help would be appreciated.
user-defined variables MUST be all lowercase
all uppercase is reserved for environment variables, and mixed case is currently unused
also, the type prefix is part of the name and must be included when you reference the variable, otherwise you'd be saving to the int #num but reading from the bool "num" that you never set
This might? work
Prompt(#num, "Enter the number of right clicks")
DO(%#num%)
Log("right click")
Loop
However, i'm not sure if prompt automatically converts to an integer.., so if it doesn't work replace that line with
Prompt(&num, "Enter the number of right clicks")
#num = %&num%
(Note that #num and &num are different, separate variables)
Is there any way to check if something is unset? I am trying to get a script, that if something is unset, to run, but if it is set, to run another script (I got that part figured out).
Hello there, I have few questions . First of all, on wich programming language is based the script part ? I've searched a lot, but I haven't found anything ... and because of that I'm not able to find documentation like "it is possible to make bidimentionnal arrays ?
Also, I'm using the 1.6.4 Minecraft version, and it is, on this one, possible to detect entities or something like that ?
It's a custom language...
No multidimensional arrays.., but under specific constraints (that i can't remember), you can use a variable as part of a variable name, so you might be able to get something similar
Entities, yes (i think), but only under your crosshairs and within targetting range..
see environment variables HIT, HITID, HITDATA, HITTYPE(?), HITX, HITY, HITZ
I can't use "splash_potion" because I need to be able to differentiate between different splash potions.
The item id parsing code needs updating since it currently only supports the "old" id:damage format. If you need to select a specific potion you will need to use the internal "damage" value for now, retrieve it using the ITEMDAMAGE env var.
No that's okay, at least it's resolved. I was a bit confused since the builds for 1.9 and 1.9.4 are pretty much the same and I was worried (and a bit confused, since the changes didn't touch the script executive) that I broke some scripting thing in 0.12.2
Thank you so much for updating to 1.9. I really missed this mod and it's so good to have it back
Is it possible to bind the new TRACE variables to an ingame GUI label? I used to use the Farhit module to display block ID and data so I could always identify what I was looking at. Where would the trace command be run from to get the data, and would it have to be running in a loop constantly?
@mumfrey , your macros for 1.9 is bugged, sometimes the %server% variables dont refresh, also im an admin on one server, i did a auto-login script, when i join on other server, it runs and block, but when i join on my server, when im an admin, it runs, and detect the previous server.
p.s how i make a loop macro chatclean script?.
Yes, basically you can just put it in a daemon script and have that update the labels. Ray tracing is expensive so rather than have the mod do it all the time for an arbitrary distance TRACE puts full control in your hands so you can run ray traces at the range and rate you choose, and also choose whether to include entities.
Ok I'll look into that. What do you you meean by a loop macro chatclean script? CHATCLEAN is a context variable available in the onChat and chat filter event handler macros, you don't use it in a loop.
Ok, i'm still running 1.7.10. not sure if that matters.
our server has a command /deathinfo which echos in chat the coords of your last death location:
You burned to death at 19:17 on May 19 2016
Coords: -2569 5 8334 in the normal world
Im trying to write a script that grabs the coords and saves them to var's such as:
xvar yvar and zvar
But i'm having trouble stripping the coordinate numbers out of the string of text thats been printed to chat. I think i can write the rest of the script if i can get this part figured out.
any ideas/thoughts would be greatly appreciated.
right now all i have is
Bound to a button:
ECHO(/deathinfo);
which prints to chat exactly:
You burned to death at 19:17 on May 19 2016
Coords: -2569 5 8334 in the normal world
Bound to OnChat:
IFMATCHES(%CHATCLEAN%,(\bCoords\:\s.*\sin\sthe\snormal\sworld\b),@&deathcoords);
LOG(%@&deathcoords%);
ELSE;
LOG(didnt match);
ENDIF;
Mumfrey, i want to make an automatic impostor checker, i tried, but how i can make it, it need two commands, also in my server, i want to trigger when chat says %joinedplayer is an impostor, to check if is impostor, i need to type /seen to get his ip, also /seen to get his username logged on his ip, how i can do it?
The onJoinPlayer event triggers when a player joins, and using the command %JOINEDPLAYER% would show the name of that player. Is it possible to use this for when a player quits?
Write a regex which matches the coords and use MATCH inside your IFMATCHES with its multi syntax to capture all of the parts:
Match the first chat method with a regex and send the /seen command using ECHO, then match the reply also with a regex.
Thanks for the details there
I can add it to the wish list.
mumfrey, i dont know, you can code it/help me to make the script, then, when an Impostor join, i need to say
/say Admin Impostered, Verify on forum.
Then
/seen ImposteredAdmin
/seen ImposteredAdminIP
If the ip Contains only one nick, i need to wait until verify.
If the ip contains multiple nick, i need to type
/gtfo imposteredadmin Fake, you re realPlayer.
How i can do it?
this is cool i really wonder how i lived without it
Hi, I'm trying to create a simple script to right the number of times entered into a prompt, but I can't seem to get the variables working correctly. I either get the name of the variable printed out in chat, or nothing printed at all in place of the variable. My attempt is as follows:
$${
PROMPT(#NUM,"Enter the number of right clicks:")
DO(%NUM%)
LOG("Right click") (In place of a right click for now)
LOOP
}$$
It doesn't print out any of the commands, e.g. PROMPT or LOG, but it doesn't work either. I'm certain it's a problem with the way I'm trying to use the variables-I couldn't find a good reference for where each identifier could be used (The one linked in the OP mostly describes commands). Any help would be appreciated.
Hi Mumfrey
Can you in integarte this Module in the Mod for 1.9.4?
HTTP - no, same reason as not reading files from arbitrary locations
JSON - maybe
SIGNTEXT - already exists
user-defined variables MUST be all lowercase
all uppercase is reserved for environment variables, and mixed case is currently unused
also, the type prefix is part of the name and must be included when you reference the variable, otherwise you'd be saving to the int #num but reading from the bool "num" that you never set
This might? work
Prompt(#num, "Enter the number of right clicks")
DO(%#num%)
Log("right click")
Loop
However, i'm not sure if prompt automatically converts to an integer.., so if it doesn't work replace that line with
Prompt(&num, "Enter the number of right clicks")
#num = %&num%
(Note that #num and &num are different, separate variables)
'Cause tomorrow spring is here
Is there any way to check if something is unset? I am trying to get a script, that if something is unset, to run, but if it is set, to run another script (I got that part figured out).
mumfrey, macro is bugged, it not bypassing chat limit, can you fix it?
also if you try to use tellraw as script, is not working.
It remove some , {} and the essential JSON codes.
It's a custom language...
No multidimensional arrays.., but under specific constraints (that i can't remember), you can use a variable as part of a variable name, so you might be able to get something similar
#row_0[0] = 0
#row_0[1] = 1
#row_0[2] = 2
#row_1[0] = 3
#row_1[1] = 4
#row_1[2] = 5
#row_2[0] = 6
#row_2[1] = 7
#row_2[2] = 8
For(#i,0,2)
Log(%%&int_pointer%%)
Next
Entities, yes (i think), but only under your crosshairs and within targetting range..
see environment variables HIT, HITID, HITDATA, HITTYPE(?), HITX, HITY, HITZ
'Cause tomorrow spring is here
Is there an way to toggle the skin Overlay for every bodypart individually or/and all togetter?
so i can make a script for changing my jacket or pants with one simple buttonpress
Thanks
The item id parsing code needs updating since it currently only supports the "old" id:damage format. If you need to select a specific potion you will need to use the internal "damage" value for now, retrieve it using the ITEMDAMAGE env var.