SHARE
TWEET

Untitled

a guest Apr 11th, 2011 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]")
RAW Paste Data
Top