Created
April 8, 2010 21:57
-
-
Save Xjs/360604 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Only for mg.mud.de and use with the TinyMacros also found on GitHub: | |
; Executes /check_props and /updatePlayer periodically if the prompt is >. | |
; In that case, removes the prompt. | |
/def -h"PROMPT" catch_prompt = \ | |
/test set(strcat("the_prompt=",{*}))%; \ | |
/if (the_prompt !~ "" & the_prompt !~ ">") \ | |
/test prompt(strcat("%the_prompt", " "))%; \ | |
/endif | |
/def check_props_forever = /if (the_prompt =~ ">") /check_props%; /endif%; /repeat -2 1 /check_props_forever | |
/def updatePlayerForever = /if (the_prompt =~ ">") /updatePlayer%; /endif%; /repeat -0:10 1 /updatePlayerForever |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment