Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts;
- import org.tribot.api.General;
- import org.tribot.api.interfaces.Positionable;
- import org.tribot.api2007.Banking;
- import org.tribot.api2007.Camera;
- import org.tribot.api2007.Inventory;
- import org.tribot.api2007.NPCChat;
- import org.tribot.api2007.NPCs;
- import org.tribot.api2007.Objects;
- import org.tribot.api2007.Player;
- import org.tribot.api2007.Players;
- import org.tribot.api2007.Trading;
- import org.tribot.api2007.WebWalking;
- import org.tribot.api2007.types.RSArea;
- import org.tribot.api2007.types.RSNPC;
- import org.tribot.api2007.types.RSObject;
- import org.tribot.api2007.types.RSPlayer;
- import org.tribot.api2007.types.RSTile;
- import org.tribot.script.Script;
- import org.tribot.script.ScriptManifest;
- @ScriptManifest(authors = { "turbo" }, category = "quests", name = "test romeojhuliethuke", version = 1.00, description = "GXSZr.")
- public class test123xd extends Script {
- public static final RSArea JulietPirm = new RSArea(new RSTile [] { new RSTile(3159, 3435, 0) });
- public static final RSArea JulietAntr = new RSArea(new RSTile [] { new RSTile(3159, 3435, 0),new RSTile(3159, 3436, 0),new RSTile(3160, 3436, 0),new RSTile(3160, 3435, 0) });
- public static final RSArea Lawrence = new RSArea(new RSTile [] { new RSTile(3252, 3484, 0),new RSTile(3252, 3480, 0),new RSTile(3255, 3480, 0),new RSTile(3255, 3484, 0) });
- private static final String ID_DOOR = null;
- @Override
- public void run()
- {
- while(true)
- {
- General.sleep(300);
- {
- walkTo(JulietPirm);
- climbUp(11797);
- walkTo(JulietAntr);
- }
- }
- }
- void walkTo(RSArea kintamasis) {
- if(!kintamasis(Player.getPosition())) {
- WebWalking.walkTo(kintamasis.getRandomTile());
- }
- }
- private boolean kintamasis(RSTile position) {
- // TODO Auto-generated method stub
- return false;
- }
- private void climbUp(int OBJ_ID) {
- RSTile currentTile = Player.getPosition();
- RSObject[] x = Objects.find(6, OBJ_ID);
- if(x.length > 0 && x[0] != null) {
- x[0].click("Climb-up");
- sleep(1200,1300);
- int i = 0;
- while(Player.getPosition().equals(currentTile) && Player.getPosition().getPlane() == currentTile.getPlane() && i < 5) {
- x[0].click("Climb-up");
- sleep(800,900);
- i++;
- }
- }
- }
- void zinute(String tekstas) {
- String zinute1 = NPCChat.getMessage();
- while(zinute1 == null) {
- sleep(1000);
- println("miegu 1sec, nera zinutes");
- zinute1 = NPCChat.getMessage();
- }
- while(zinute1.contains(tekstas) == false) {
- sleep(1000);
- println("miegu 1sec, tekstas nera zinuteje");
- }
- NPCChat.clickContinue(true);
- sleep(2000);
- }
- void pasirinkimai(String pasirinkimas) {
- String[] optionsai = NPCChat.getOptions();
- while(optionsai == null) {
- sleep(1000);
- println("miegu 1sec, nera optionsu");
- optionsai = NPCChat.getOptions();
- }
- NPCChat.selectOption(pasirinkimas, true);
- sleep(2000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement