Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function goto(whom)
- local p = myTarget
- if mmp.pdb[p] then send("queue add eqbal farsee ".. p) return end
- if gmcp.Char.Status.class == "dragon" then send("queue add eqbal veilglance "..p) end
- end
- local nums = mmp.getnums(mmp.pdb[p], true)
- mmp.gotoRoom(nums[1])
- 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 "")))
- end
- if not matches[2] then
- if not p then
- mmp.echo("I don't know what your target is (set the 'target' variable)") return
- else
- goto(myTarget)
- end
- else
- goto(matches[2])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement