armark1ng

Untitled

Sep 11th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package com.rs.game.player.dialogues.impl;
  2.  
  3. import com.rs.game.player.content.ItemTransportation;
  4. import com.rs.game.player.dialogues.Dialogue;
  5.  
  6. public class Transportation extends Dialogue {
  7.  
  8. @Override
  9. public void start() {
  10. String[] locations = (String[]) parameters[0];
  11. sendOptionsDialogue("Where would you like to teleport to", locations);
  12. }
  13.  
  14. @Override
  15. public void run(int interfaceId, int componentId) {
  16. String[] locations = (String[]) parameters[0];
  17. ItemTransportation.sendTeleport(player, player.getInventory().getItems().lookup((Integer) parameters[1]),
  18. componentId == OPTION_1 ? 0 : componentId - 12, false, locations.length - 1);
  19. end();
  20. }
  21.  
  22. @Override
  23. public void finish() {
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment