Jump to content

Photo

Macro/Keybind Scripts

26 replies to this topic
  • Please log in to reply

#1
Lex1k0n

Lex1k0n

    Diamond Monger

  • Server Donator
  • 596 posts

I told Monty when keybind was updated i'd start a macro/keybind script post so here it is. This post is intended to accumulate various scripts and functions which can be used with the Macro/keybind Mod. Please submit more or improve upon ones already given!

 

Disclaimer: This mod is very flexible and scripts can do almost anything so I can not guarantee any given script here is allowed on the server.  Please do not assume it is allowed unless I have explicitly stated that it is.

 

For those that don't know Macro/Keybind it is a mod for minecraft which has almost limitless potential but primarily it allows you to do 2 main things

1. Assign Hotkeys i.e. Let's say I warp to the admin shop a lot and don't want to type /warp adminshop (only vips can warp btw), I use the mod to tell the game that whenever I press F7 (for example) it's supposed to tell the server /warp adminshop

 

2.Run scripts:  Scripts are infinitely flexible but in a nut shell they allow you to send more complex commands to the game/server.  For example one can have a script which tells the game to feed you whenever you lose health, and we can toggle this script on or off but linking it to a hotkey.

 

Using Macro/keybind Mod Now i'm not going to spend time explaining how to write scripts or use macro/keybind because I don't know much about writing scripts and the uses for this mod of virtually endless.  That said I will point you in the right direction. Below is the youtube channel for Mumfrey who wrote/maintains this mod and has some excellent tutorial videos.

http://www.youtube.c...erealeq2/videos

 

Scripts:

 

Title: Creative/survival Toggle + Maintain Fly -Naqvamp

Desc: Binding this to a key will allow you to switch from creative to survival, additionally is will automatically enable FLYMODE in survival as well as double tap the spacebar. Effectively you can switch from creative to survival without falling. 

Spoiler

 

Title:Auto-use by Mumfrey

Desc: Right clicks quickly and repeatedly.  Good for large builds and avoiding carpel tunnel. Warning, will place blocks very fast.

Script:

Spoiler

 

Title: Auto-eat by Stevee

Desc:Checks your hunger and automatically eats in order to save the max amount of food points.

Script:http://macro-keybind...utoeater_se.txt


  • TheDoctor1103, Ebel, DaddyO and 4 others like this

5fhCyPW.gif


#2
simbaorka101

simbaorka101

    Not Getting started

  • Server Donator
  • 1,491 posts

nice


amwXvDO.png


#3
Doctor_Badass_

Doctor_Badass_

    Diamond Monger

  • Assistant
  • 837 posts

When I use automine it slowly pushes my character forward and when I stop automine, I start moving forward very fast until I use one of the movement keys. 

 

Is this supposed to happen? How do I make it not do this?

 

What would be the highest speed I could set it for on TE?


hBeN5Af.png

 

I'm not insane... sometimes


#4
Lex1k0n

Lex1k0n

    Diamond Monger

  • Server Donator
  • 596 posts

When I use automine it slowly pushes my character forward and when I stop automine, I start moving forward very fast until I use one of the movement keys. 

 

Is this supposed to happen? How do I make it not do this?

 

What would be the highest speed I could set it for on TE?

I must have put in the wrong one.  The script I was thinking of wasn't supposed to change movement.  Try using the one I just edited in, unfortunately this one isn't written to add a delay :/ however I did test it on the server and it functioned correctly. Might want to touch base with Flox and make sure it's allowed though.


5fhCyPW.gif


#5
Doctor_Badass_

Doctor_Badass_

    Diamond Monger

  • Assistant
  • 837 posts

I must have put in the wrong one.  The script I was thinking of wasn't supposed to change movement.  Try using the one I just edited in, unfortunately this one isn't written to add a delay :/ however I did test it on the server and it functioned correctly. Might want to touch base with Flox and make sure it's allowed though.

It automines fine but it slowly nudges me forward too. I can sprint but it only works for about half a second and then i'm slow again. 

 

Yea I didn't want to try it on the server till I was sure it was ok to use. I assumed that it'll set off red flags if I tried.


hBeN5Af.png

 

I'm not insane... sometimes


#6
Lex1k0n

Lex1k0n

    Diamond Monger

  • Server Donator
  • 596 posts
Hmm not sure why its nudging you :/ ill think about it and see if I can write up another alternative.

5fhCyPW.gif


#7
Naqvamp

Naqvamp

    Pumpkin Farmer

  • Server Donator
  • 109 posts

Here's a tweak to your flying script that'll toggle between Creative and Survival.

$${				//Begin script.
	IF(MODE=0);		//Check if we are in Survival mode.
		Echo(/gm 1);	//Swap to Creative if we are in Survival.

	ELSEIF(MODE=1);		//Check if we are in Creative mode
		Echo(/gm 0);	//Swap to Survival if we are in Creative.
		ECHO(/fly);
	ENDIF;			//End conditional.

	WAIT(800ms);		//Wait 800ms before moving to the flight conditional.
				//This is to allow the "/fly" command to be processed by the server.

	IF(CANFLY=1&&FLYING=0);	//Check if the User is able to fly and that the User is not currently flying.
		KEYDOWN(jump);	//We do this so flight isn't attempted when unable or is already enabled (Via Creative?).
		WAIT(5ms);
		KEYUP(jump);
		WAIT(1ms);
		KEYDOWN(jump);
		WAIT(5ms);
		KEYUP(jump);
	ENDIF;
}$$ 

Maybe someone else could do this a bit better, but this seems to do the trick most of the time.


  • Lex1k0n likes this

#8
Lord Polydeukis

Lord Polydeukis

    Mad Scientist

  • Server Donator
  • 1,607 posts

is automine legal?


G9MMzMy.gif


#9
MotormikeTT

MotormikeTT

    Getting Finished

  • Server Donator
  • 1,305 posts

I made a auto-heal script. It is for $50 vip's.

 

Spoiler

  • Naqvamp likes this

TZvnRPk.png

Some people need a high five........... in the face.


#10
Naqvamp

Naqvamp

    Pumpkin Farmer

  • Server Donator
  • 109 posts

Here are two small scripts for EVip's pertaining to ascending and descending.

 

Note: You will need to press the key you bind it to twice once to toggle and again to un-toggle the script(s).

 

Ascending:

$${
	if(FLYING=1);				//Check if the User is flying.
		if(ascending);			//Check if a user variable is set. if it is, disable the script.
			unset(ascending);	//Set the user-variable to false.
			keyup(jump);		//Release the jump key.
			stop();				//Stop the script.
		else;
			set(ascending);		//Set the user variable to true.
			do;					//Begin a loop.
				keydown(jump);	//Hold the jump key.
			while(%YPOS%<255);	//Loop condition; Lets not go over Y:256 ...
			keyup(jump);		//Release the jump key.
		endif;
	endif;
}$$ 

 

Descending:

$${
	if(FLYING=1);			//Check if the User is flying.
		do;			//Begin a loop.
			keydown(sneak);	//Hold down the Sneak key.
		while(FLYING=1);	//Loop condition; the user must be flying.
		keyup(sneak);		//Release the sneak key.
	endif;				//End if-conditional.
}$$

 

Maybe somebody will find these of use.  ;)


  • MotormikeTT likes this

#11
Lex1k0n

Lex1k0n

    Diamond Monger

  • Server Donator
  • 596 posts

Nice work Naq and Mike!


5fhCyPW.gif


#12
Zee

Zee

    DEV-ilicious

  • Plugin Developer
  • 1,361 posts

Can I get some resource links posted here? I want to try this stuff over the weekend.

 

Resources as in: variable lists, syntax, etc.


Want to try some mods?

FacMap | MinePath | MTape | ShapeGen


#13
Naqvamp

Naqvamp

    Pumpkin Farmer

  • Server Donator
  • 109 posts

I personally haven't found any resources to go with. What I know about the syntax/variables comes from the Mod's forum thread.



#14
Lex1k0n

Lex1k0n

    Diamond Monger

  • Server Donator
  • 596 posts

http://eq2.co.uk/min....8.5_readme.txt this might help.


5fhCyPW.gif


#15
MotormikeTT

MotormikeTT

    Getting Finished

  • Server Donator
  • 1,305 posts

Edited the auto-eat script to teleport you to f home when you're about to die and also feed you as soon as you get teleported (if you dont have food in your inventory it'll do /heal).

This is helpful if you are mining and end up falling in lava, or you are drowning.

Bug: If you dont have food or access to /heal it will keep spamming /f home till you turn it off or heal yourself (maybe you can find a way to fix it).

 

Spoiler

  • Lex1k0n likes this

TZvnRPk.png

Some people need a high five........... in the face.


#16
Zee

Zee

    DEV-ilicious

  • Plugin Developer
  • 1,361 posts

No such thing as a switch statement? Dear god.. Why, Mike.. WHY? :P


Want to try some mods?

FacMap | MinePath | MTape | ShapeGen


#17
Naqvamp

Naqvamp

    Pumpkin Farmer

  • Server Donator
  • 109 posts

No such thing as a switch statement? Dear god.. Why, Mike.. WHY? :P

To be fair, I don't think the scripting language has a switch statement. I could be wrong though..



#18
Silentdethmetal

Silentdethmetal

    Shop Owner

  • Server Donator
  • 223 posts

When i try to use the autouse keybind, it spams chat with the script, how do i fix this?


mSGiZcz.png
 


#19
MotormikeTT

MotormikeTT

    Getting Finished

  • Server Donator
  • 1,305 posts

lol silent you fail....

 

Step 1: Navigate to .minecraft/mods/macros.

Step 2: Create a file called autouse.txt

Step 3: Copy/Paste the script from here into the autouse.txt and then save.

Step 4: In-game navigate to Options/Controls/Macros Settings

Step 5: Choose the key you want to bind it to.

Step 6: Type in  $${$$<autouse.txt>}$$

Step 7: Press save and then escape.

Step 8: Use the key you chose to toggle the script on/off.


  • PrinceKush likes this

TZvnRPk.png

Some people need a high five........... in the face.


#20
Silentdethmetal

Silentdethmetal

    Shop Owner

  • Server Donator
  • 223 posts

i figured it out shortly after posting this, but thanks for helping me.


mSGiZcz.png
 



Also tagged with one or more of these keywords: macro/keybind, scripts, carpel tunnel, shortcuts

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users