I'll add one to this:
Player joined message for if you play on a server like me, that doesn't tell what players join, you can see.
$${LOG(%JOINEDPLAYER% has joined the game.)}$$ or if putting it into a txt file, just do it without the $${}$$'s. insert color codes where you would like
Could anyone help me to make a script that simply makes my character jump every 2 minutes or so? I want to collect arrows from my grinder overnight, but with no movement i get kicked. So isimply need it to make me jump 1 time every 2-3 minutes.
Hi Mumfrey. I been using your mod for a bit now and love it. Only thing is ive been trying to script in a onplayerjoined script so that it welcomes the player into the server automatically. I tried the one you suggested on another post but it just says exactly the same as you typed and not the actual welcome message. Ive tried this one that i made myself for keybinding and pressing as a new player logs in but i would prefer automatic. My script is $${DO(1);ECHO("Hi, $$[PLAYER] Welcome to servername");WAIT(2);LOOP}$$.
I want it where its %JOINEDPLAYER% but nothing seems to work. If your working on an update or know what i should be typing properly then can you let me know. Thanks Multiply
Your problem lies in that the %JOINEDPLAYER% variable only has a value at the instant the player log in, and that it is not a global variable. the way around this is to make a line of code before your chat output that saves the %JOINEDPLAYER% variable as a global variable, to be used by all macros. it would look a little like this
$${SET(@&VariableToSaveNameTo,%JOINEDPLAYER%)}$$
and then in your output you would access the @&VaribleToSaveNameTo and paste that in (make sure you have the @& because that denotes the variable as a global variable
your output should look a little like this
$${ECHO("Hello %@&VariableToSaveNameTo%")}$$
and you can even throw in some color codes and stuff based on what server you are on and if they have a chatColor plugin
Could anyone help me to make a script that simply makes my character jump every 2 minutes or so? I want to collect arrows from my grinder overnight, but with no movement i get kicked. So isimply need it to make me jump 1 time every 2-3 minutes.
Thank you for your help!!
All you need are the PRESS and WAIT script commands and alternate them... your final product would look something like
Hi. I've got a problem. See... I'm in administration of minecraftpolska.eu and sky-blockpolska.eu and I want to make an auto-kick script. For example if someone writes down prohibited word... firstly let's make it "kickme".... then I want my player to automaticly write down /kick <username> because of <prohibited word> or something like that.... I thought about comparing last chat to [Player]<nick> and extracting nick from it, but I wonder if there is an easier way like variable %PLAYERCHATTING% or something like that. Any ideas ?
I want also script to compare chat to txt, because I want to make a database of prohibited words (you know - hundrets of "IF" expressions are really annoying)...
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
I've searched the main thread for information regarding this, but after sorting through 100+ posts using the search feature, I've determined that it hasn't been answered. I posted this in the main thread, but no response, so I'm hoping someone here might know a bit more about scripts.
I'm trying to make a crafting macro that takes into consideration items you currently have in your inventory (i.e. using mixed materials), as well as use prompts to set the total quantity you want. What I've been using to make bookshelves is:
but it makes 144 paper regardless of if you already had paper in your inventory, 48 books regardless of inventory, and 96 wood planks (again) regardless of inventory. It also only makes bookshelves in quantities of 16.
So I'm trying to make a script that will first prompt you for the quantity you want, but if you type "help" as the quantity, I want it to tell the amount of most-raw materials are needed per unit of final product. I think I have the prompting part down correctly (it's terribly incomplete).
$${
PROMPT(&quantity,"$$[quantity]","How many do you want to make?");
IF(&quantity = "help");
LOG("9 Sugarcane, 3 Leather, and 1.5 Logs are needed for each unit");
ELSE;
From there, I am wanting to determine the amount of materials present in the player's inventory (i.e. # of paper, books, and wood planks) and temporarily save those values (like A, B, C, etc. on a graphing calculator). But I can't figure out how to determine the quantity of an item you have in your inventory and how to save the value.
For example, if someone has a stack of 34 oak wood planks (ID=5) and a stack of 7 jungle wood planks (ID=5:3), I can't figure out how to get the quantity unless it's in my hotbar using the GETSTACK command. As for the GETSLOTITEM command, I really can't figure out if it's relevant or what the various values it can find are.
But once we've determined that the player has 41 wood planks, I would like to save the value as [planks] for referencing later in the script. I'm wanting to do the same with the sugarcane, leather, books, and logs so it can calculate if you will be able to make the quantity prompted and return a message stating more of what you need. I came up with a rough code for it, but I'm not 100% on how the mod does order of operations calculations or how flags SET/UNSET work. I'm also running on the assumption that if something is between %s, it is run as a calculation and only the final result is displayed to the user. If I knew how to save values, it'd be a lot more compact.
//Assuming:
//Logs = 'logs'
//Wood planks = 'planks'
//Sugarcane = 'sugarcane'
//Paper = 'paper'
//Books = 'books'
//Leather = 'leather'
IF(((4*&logs)+&planks) < (6*&quantity);
LOG("You need %(((6*&quantity)-((4*&logs)+&planks))/4)% more logs.");
ELSE;
SET(enough_logs);
IF(((3*&sugarcane)+(3*&paper)+&books) < (3*$quantity));
LOG("You need %((3*&quantity)-((&sugarcane/3)+(&paper/3)+&books))% more sugarcane.");
ELSE;
SET(enough_sugarcane);
IF(&books < (3*&quantity));
IF(&leather < ((((3*&quantity)-((&sugarcane/3)+(&paper/3)+&books))+&sugarcane))/3)
LOG("You need %(((((3*&quantity)-((&sugarcane/3)+(&paper/3)+&books))+&sugarcane))/3)-&leather)% more leather.");
ELSE;
SET(enough_leather);
ELSE;
SET(enough_leather);
//Assuming
//Flags work like true/false variables
//Having a pipe between flags means all must be true to return a 'true' IF value
IF(enough_logs | enough_sugarcane | enough_leather);
CRAFT(5,((6*&quantity)-&planks));
CRAFT(339,(3*((3*&quantity)-((&paper/3)+*&books))));
CRAFT(340,((3*&quantity)-&books));
CRAFT(47,(&quantity));
UNSET(enough_logs | enough_sugarcane | enough_leather);
LOG("You have sucessfully crafted %&quantity% bookshelves!");
ELSE;
ENDIF;
}$$
If there is a rounding function, I'd love to know about it; in several of those overly complex equations, having a quantity of paper that is not a multiple of 3 would cause the resulting value to be a fraction, and I don't know if/how the mod might round those.
I really have no idea what I'm doing and am just making code based off what I have seen in other people's posts as an example, since there's no mentioning of a lot of things in the readme.txt and not a whole lot of documentation on features added since it was written.
Hey all, was checking out the auto eat script, turns out it doesnt seem to hold down the USE action for long enough to finish eating. This could be a result of a mod I use, but nevertheless I need to extend the action of eating. Is there any thing I can change or add to increase the duration of the USE action in the auto eat script?
Yea when you use a uh, when you use KEYDOWN you can have it WAIT in between KEYUP
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!
I'm struggling a bit here. What I'd like to do is create a timed reminder which, every 300 seconds, tells me to do something. I'm doing this on a SMP server so I'm presuming that I need to use LOG, but I have no idea - I'm a bit of a novice.
I'd like the reminder to loop indefinitely from the moment I join the server to when I leave it, repeating the message every 300 seconds.
Thanks in advance for your help!
Here you go:
$${
DO;
log("Notify");
WAIT(300);
LOOP
}$$
Change Notify to text you want to say (leave the quotes)
Change 300 to time you want (add ms to change to milliseconds!) I set it at 300 SECONDS
Player joined message for if you play on a server like me, that doesn't tell what players join, you can see.
$${LOG(%JOINEDPLAYER% has joined the game.)}$$ or if putting it into a txt file, just do it without the $${}$$'s. insert color codes where you would like
$${
DO
ECHO("/pwarp 1")
WAIT(3)
LOOP
}$$
I began minecraft ~July 7 2011 1.7.3 Beta
My username used to be Creative_Dalek but is now Dalek since 2/4/2015
Thank you for your help!!
Your problem lies in that the %JOINEDPLAYER% variable only has a value at the instant the player log in, and that it is not a global variable. the way around this is to make a line of code before your chat output that saves the %JOINEDPLAYER% variable as a global variable, to be used by all macros. it would look a little like this
and then in your output you would access the @&VaribleToSaveNameTo and paste that in (make sure you have the @& because that denotes the variable as a global variable
your output should look a little like this and you can even throw in some color codes and stuff based on what server you are on and if they have a chatColor plugin
All you need are the PRESS and WAIT script commands and alternate them... your final product would look something like and that should do it! let me know if you have any problems with this!
Mumphrey released a readme that he put a link to on the mod page. however if you couldn't find it... http://eq2.co.uk/minecraft/mods/mod_macros_0.8.5_readme.txt
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
I'm trying to make a crafting macro that takes into consideration items you currently have in your inventory (i.e. using mixed materials), as well as use prompts to set the total quantity you want. What I've been using to make bookshelves is:
but it makes 144 paper regardless of if you already had paper in your inventory, 48 books regardless of inventory, and 96 wood planks (again) regardless of inventory. It also only makes bookshelves in quantities of 16.
So I'm trying to make a script that will first prompt you for the quantity you want, but if you type "help" as the quantity, I want it to tell the amount of most-raw materials are needed per unit of final product. I think I have the prompting part down correctly (it's terribly incomplete).
From there, I am wanting to determine the amount of materials present in the player's inventory (i.e. # of paper, books, and wood planks) and temporarily save those values (like A, B, C, etc. on a graphing calculator). But I can't figure out how to determine the quantity of an item you have in your inventory and how to save the value.
For example, if someone has a stack of 34 oak wood planks (ID=5) and a stack of 7 jungle wood planks (ID=5:3), I can't figure out how to get the quantity unless it's in my hotbar using the GETSTACK command. As for the GETSLOTITEM command, I really can't figure out if it's relevant or what the various values it can find are.
But once we've determined that the player has 41 wood planks, I would like to save the value as [planks] for referencing later in the script. I'm wanting to do the same with the sugarcane, leather, books, and logs so it can calculate if you will be able to make the quantity prompted and return a message stating more of what you need. I came up with a rough code for it, but I'm not 100% on how the mod does order of operations calculations or how flags SET/UNSET work. I'm also running on the assumption that if something is between %s, it is run as a calculation and only the final result is displayed to the user. If I knew how to save values, it'd be a lot more compact.
If there is a rounding function, I'd love to know about it; in several of those overly complex equations, having a quantity of paper that is not a multiple of 3 would cause the resulting value to be a fraction, and I don't know if/how the mod might round those.
I really have no idea what I'm doing and am just making code based off what I have seen in other people's posts as an example, since there's no mentioning of a lot of things in the readme.txt and not a whole lot of documentation on features added since it was written.
Any help would be greatly appreciated!
$${FOV(<45>)}$$|$${Wait(<2ms>)}$$|$${FOV(<70>)}$$
Yea when you use a uh, when you use KEYDOWN you can have it WAIT in between KEYUP
$${PLACESIGN("$$[Line1]","$$[Line2]","$$[Line3]","$$[Line4]);}$$
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)
Here you go:
Change Notify to text you want to say (leave the quotes)
Change 300 to time you want (add ms to change to milliseconds!) I set it at 300 SECONDS
This also doesn't appear to anybody BUT yourself!
Script Here:
However...I'm supposing you don't want it there for 2 MILLISECONDS...So Here:
That'll do 2 SECONDS!