Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set up a new script, copy and paste everything up to ======
- function completedSpeedwalk()
- if not arrivalAction then return nil end --if variable not set, exit routine
- if arrivalAction[1] == "alias" then
- expandAlias(arrivalAction[2])
- else
- send(arrivalAction[2])
- end
- arrivalAction = nil --reset variable so it doesn't constantly fire
- end
- function cancelledSpeedwalk()
- arrivalAction = nil
- end
- registerAnonymousEventHandler("mmapper arrived","completedSpeedwalk")
- registerAnonymousEventHandler("mmapper stopped","cancelledSpeedwalk")
- =====
- Save the script, make sure it's enabled.
- When creating your echoLink, it's important to correctly populate the arrivalAction table...
- echoLink("Mhojave.",[[expandAlias('goto 1234') arrivalAction={'alias', 'rl'} ]],"Click here to walk to Mhojave.",true)
- arrivalAction[1] should be either "alias" (if the thing to be done is a client side alias) or "send" (if the thing to be done is an in-game command)
- arrivalAction[2] should be the alias or the command.
- eg: send("salute") would be arrivalAction={'send','salute'}
- eg: expandAlias("rl") would be arrivalAction={'alias','rl'}
- Note the use of apostrophes, not quote marks in the table.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement