Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local function goto(whom)
  2. local p = myTarget
  3. if mmp.pdb[p] then send("queue add eqbal farsee ".. p) return end
  4. if gmcp.Char.Status.class == "dragon" then send("queue add eqbal veilglance "..p) end
  5. end
  6.  
  7. local nums = mmp.getnums(mmp.pdb[p], true)
  8. mmp.gotoRoom(nums[1])
  9. mmp.echo(string.format("Going to %s in %s%s.", p, mmp.cleanAreaName(mmp.areatabler[getRoomArea(nums[1])] or '?'), (#nums ~= 1 and " (non-unique location though)" or "")))
  10. end
  11.  
  12. if not matches[2] then
  13. if not p then
  14. mmp.echo("I don't know what your target is (set the 'target' variable)") return
  15. else
  16. goto(myTarget)
  17. end
  18. else
  19. goto(matches[2])
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement