Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 11th, 2011  |  syntax: Python  |  size: 0.62 KB  |  views: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from org.outstream.rs2.net import ActionSender
  2. from org.outstream.rs2.model.entity.player import Player
  3. from java.lang import Integer
  4. from org.outstream.rs2.model import Location, World
  5. actionSender = player.getActionSender()
  6. try:
  7.         args3
  8.         z = None
  9.         try:
  10.                 z = Integer.parseInt(args4)
  11.         except NameError:
  12.                 z = player.getLocation().getZ()
  13.         player.setTeleportTarget(Location.create(Integer.parseInt(args3), Integer.parseInt(args3), z))
  14.         actionSender.sendMessage("You have been teleported to - X:" + args3 + " Y:" + args3 + " Z:" + str(z) + ".")
  15. except Exception:
  16.         actionSender.sendMessage("Syntax is ::script tele [x] [y]")
clone this paste RAW Paste Data