Skip to content

Instantly share code, notes, and snippets.

@Xjs
Created April 8, 2010 21:57
Show Gist options
  • Save Xjs/360604 to your computer and use it in GitHub Desktop.
Save Xjs/360604 to your computer and use it in GitHub Desktop.
; 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