My goal is to make a macro/script run several commands, but the later commands would need input from the text of the first few. I know I can output chat into a file, but is there any way to isolate certain information from chat and enter that as a variable?
Example: Server uses world guard to have player owned plots, we need to go through them from time to time and reset ones from players who have not been on in a while. The current process is to fly around, determine the name of the region/plot, run a command to determine who owns the region, then look up the last time that player was online.
So how do I insert the name of the player to look up, from the log output from world guard?
I read a few posts ago that a chat reader may be needed. But my google-fu in this instance is weak.
Is there a recommended chat reader, and how would I send the information I need back in to the Macro/Keybind mod as a variable?
Hello, I am not too good at scripting, I just need a script that will auto equip the best armor (chain over leather, iron over chain, dia over iron) and also when it is almost broken, equip a different piece of armor. Is this even possible?
Added. I had some trouble adding the timer script though.
FOV does not zoom, use Optifine or a similar mod for that. blargh
except it does... bind a key to set your fov to 6 and another one to 70. it will zoom when you press the first button and zoom out when you press the second one. The minecraft fov in fact does go below the 'normal' of 70... you just have to alter it in the text config, or with a mod like macrokeybinds ^.^
I am working on making someones request (this thread or another) for a macro that can automatically mine out an X by Y by Z sized box. to start i have made a simple straight miner that digs a distance you ask. To use, simply type in the direction you want to dig(Use F3(Accepts #s 0-3)), and then type in the distance you want to dig. the auto digger will dig until it reaches that many blocks ahead from its starting position laying torches every 10 blocks automatically. I think it is pretty nifty. I will try and get the box digger done sometime.
WARNING. DOES NOT ACCOUNT FOR LAVA, WATER, SAND, GRAVEL, HOLES(does auto shift though), OR ANY OTHER MINING HAZARD!!! USE WITH CAUTION... (P.S. only works with diamond picks atm. I need to include the other material picks.) does NOT auto switch to shovel.
hay there guys i love this mod and have been searching on how to make on that will toggle your gamemode between all three anybody have any ideas i have no clue about scripting =( tyvm for your help in advance =) this is what i have sofar but as i said i have no clue what im doing.
$${if(MODE=1);
log(Going To Survival!);
wait(2);
echo(/gm 0);
else(MODE=0);
log(Going To Creative!)
wait(2);
echo(/gm 1);
wait(1);
endif;}$$
i have updated this a but i think im getting the hang of it =)
Can anyone make a script so like when you are digging dirt, it auto switches to the shouvel, auto switches to pickae when you are mining stone, and etc. ?
Instant Health Potion - http://pastebin.com/qgVbcGjq (Set onHealthChange) You could change the health potion id to other items like food if the server you play on has food healing hearts. This switches to potion, then uses health potion, then switches hotbar back to slot 1, if health is less than 14 (3 hearts) The eating animation has to be instant btw!
Bind Eat - http://pastebin.com/4uWqpbGa This lets you press a button and switch to the food, then eat, then switches hotbat back to slot 1. Once again the eating animation has to be instant!
$${
if(%TICKS%<=1200);
log(Changeing Time to Night);
wait(2)
echo(/time night);
else(%TICKS%=>0);
log(Changeing Time to Day);
wait(2)
echo(/time day);
endif;
}$$
im haveing a problem with this one where it tells the time in mins and not seconds you need to run it twice for it to work rite if you have a idea on how to fix this plz let me no
$${
prompt($$[Time]);
log("&bDisconnecting from &c%SERVER% &bin &c$$[Time] &bSeconds %#num% Mins.");
#rawr=$$[Time]-20;
#num=$$[Time]/60;
wait(%#rawr%);
log("&bYou you be Disconnect from &c%SERVER% &bin &c20 &bSeconds!");
wait(19);
echo(&c*Poof* &bIm Gone!!);
wait(1);
DISCONNECT();
}$$
The Meaning of Life, the Universe, and Everything.
Join Date:
11/26/2012
Posts:
53
Member Details
hey I dont quiet understand this,
I have a button on my screen when I open the chat dialog, it sets me to afk.
now what I want to do, is have it say /me is now AFK. Please do /modreq* if you need help.
Then, I want it to loop every 5 minutes, and aswel make it a toggle. So when I press that same button it should say /me is no longer AFK.
this is what I have, but it doesn't seem to work.. all it does is the "is no longer afk." part.
Anyone here who can help me finish this script?
Thanks in advance!
*Modreq is a plugin which notifies all the staff that someone needs help.
here is my script so far:
$${if(AFK);
echo("/me is no longer AFK.");
unset(AFK);
stop();
else;
echo("/me is AFK and may not respond. Please do /modreq if you need help.");
set(AFK);
do;
wait(300);
ECHO("/me is AFK and may not respond. Please do /modreq if you need help.");
loop;
endif;
}$$
The Meaning of Life, the Universe, and Everything.
Join Date:
11/26/2012
Posts:
53
Member Details
^^^ please ignore the post above! ^^^
hey,
I've been trying to get this script in Macro, but its too hard for me.. and since you know coding good I was wondering if you could help ..
Script One:
the idea is to automaticly mute, kick or anything a player when they say something, like "kickme" for now, in the chat. we are supposed to use the onCHAT trigger thingy.
this is a forum reply from someone,
"SparkleHoof, on 23 February 2013 - 03:36 PM, said:
You could use the onCHAT script command and have it search the latest message for prohibited words using a bunch of ELSEIF statements ^.^
it is also my understanding that the onCHAT command stores data about the sender... so you could just save the 'sender' as a global variable to be sent in the kick/ban command"
the idea is to have a command run /me is AFK. then to have it send this every 5 minutes, and when I press the button again it toggles it off, so it wont loop anymore.
this is what I have so far, all it does is spam though, instead of toggle.
$${
if(AFK);
echo("/me is no longer AFK.");
unset(AFK);
stop();
ELSE;false then
echo("/me is AFK and may not respond. Please do /modreq if you need help.");
set(AFK);
do;
wait(10);
ECHO("/me is AFK and may not respond. Please do /modreq if you need help.");
loop;
endif;
}$$
if anyone here knows how to do either one of these, and make a quick example then I'll be able to extend the script, I just need that one example. :/
Didnt work, same effect except CHAT turned to CHATCLEAN
EcoCityCraft Lead Developer
Contact: [email protected]
My goal is to make a macro/script run several commands, but the later commands would need input from the text of the first few. I know I can output chat into a file, but is there any way to isolate certain information from chat and enter that as a variable?
Example: Server uses world guard to have player owned plots, we need to go through them from time to time and reset ones from players who have not been on in a while. The current process is to fly around, determine the name of the region/plot, run a command to determine who owns the region, then look up the last time that player was online.
So how do I insert the name of the player to look up, from the log output from world guard?
I read a few posts ago that a chat reader may be needed. But my google-fu in this instance is weak.
Is there a recommended chat reader, and how would I send the information I need back in to the Macro/Keybind mod as a variable?
Is this even currently possible?
Many Thanks!
except it does... bind a key to set your fov to 6 and another one to 70. it will zoom when you press the first button and zoom out when you press the second one. The minecraft fov in fact does go below the 'normal' of 70... you just have to alter it in the text config, or with a mod like macrokeybinds ^.^
WARNING. DOES NOT ACCOUNT FOR LAVA, WATER, SAND, GRAVEL, HOLES(does auto shift though), OR ANY OTHER MINING HAZARD!!! USE WITH CAUTION... (P.S. only works with diamond picks atm. I need to include the other material picks.) does NOT auto switch to shovel.
i have updated this a but i think im getting the hang of it =)
Instant Health Potion - http://pastebin.com/qgVbcGjq (Set onHealthChange) You could change the health potion id to other items like food if the server you play on has food healing hearts. This switches to potion, then uses health potion, then switches hotbar back to slot 1, if health is less than 14 (3 hearts) The eating animation has to be instant btw!
Bind Eat - http://pastebin.com/4uWqpbGa This lets you press a button and switch to the food, then eat, then switches hotbat back to slot 1. Once again the eating animation has to be instant!
LookBack - http://pastebin.com/GBBnLmeV (Looks behind you for 3/4 of a second)
Note that it has to be placed on OnPlayerJoined Event:
If you actually want to say something, change the LOG line for something like this:
im haveing a problem with this one where it tells the time in mins and not seconds you need to run it twice for it to work rite if you have a idea on how to fix this plz let me no
I have a button on my screen when I open the chat dialog, it sets me to afk.
now what I want to do, is have it say /me is now AFK. Please do /modreq* if you need help.
Then, I want it to loop every 5 minutes, and aswel make it a toggle. So when I press that same button it should say /me is no longer AFK.
this is what I have, but it doesn't seem to work.. all it does is the "is no longer afk." part.
Anyone here who can help me finish this script?
Thanks in advance!
*Modreq is a plugin which notifies all the staff that someone needs help.
here is my script so far:
hey,
I've been trying to get this script in Macro, but its too hard for me.. and since you know coding good I was wondering if you could help ..
Script One:
the idea is to automaticly mute, kick or anything a player when they say something, like "kickme" for now, in the chat. we are supposed to use the onCHAT trigger thingy.
this is a forum reply from someone,
"SparkleHoof, on 23 February 2013 - 03:36 PM, said:
You could use the onCHAT script command and have it search the latest message for prohibited words using a bunch of ELSEIF statements ^.^
it is also my understanding that the onCHAT command stores data about the sender... so you could just save the 'sender' as a global variable to be sent in the kick/ban command"
this is my example;
its a script that automaticly selects food from the hotbar, then eats it. I chose it as example because of the ElseIF.
this is what I have so far, probably all wrong.
Script Two:
the idea is to have a command run /me is AFK. then to have it send this every 5 minutes, and when I press the button again it toggles it off, so it wont loop anymore.
this is what I have so far, all it does is spam though, instead of toggle.
if anyone here knows how to do either one of these, and make a quick example then I'll be able to extend the script, I just need that one example. :/
Thanks in Advance!