Jump to content

How to do this?


futurepasts

Recommended Posts

First of all thanks for guys who helped me with webwalking it now works perfectly. :)

 

 

But now i'm in trouble with 1 thing im trying to make Cooks assistant bot for  so i don't need to complete this on shit ton of my accounts :D

 

But i face problem to go from current state to next.

 

Example.

 

If my character contains area ( Lumbridge Cook's kitchen) then talk to Cook

it talks to cook then finish dialog and then stands cuz i don't know how to move to other state since i don't get any items in my inventory

 

The other state must be go to Chicken's near lumbridge cows and pick egg. But how to do it? Im trying this but it isn't working

if (getDialogues().toString().contains("Text that cook's says"))
			return State.WALK_TO_CHICKENS;

And another question so i don't need to create multiple threads

 

Is it possible to change to other character from some kind of list and login to runescape?

 

Thanks for guys who helps me :)

 

Link to comment
Share on other sites

The simplest way to create any quest script is to use configs.

 

When you perform some activity during a quest, a value in the configs will change. You can use these values to determine your progress in the quest, and then perform the relevant action.

 

To see the configs, go into the Settings -> Options -> Debug -> Configs

 

You will then see a list of numbers on your screen:

 

 d9e3a3e9d9.jpg

 

The number of the left is the config ID, and the number on the right, is its current value. The value on the right will update at various points in the quest.

Lets say for example, the config ID is 200, before you start the quest the value would be 200 : 0.  After you talk to the cook, the config might be 200 : 20.

 

Once you know the config value you need, you can then setup a switch in your onLoop like this:

switch(getConfigs().get(200)){

    case 0:
        talkToCook();
        break;
    case 20: 
        walkToCows();
        break;
}
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...