Jump to content

Restless Ghost


Butters
 Share

Recommended Posts

Hey all, I'm thinking of making quest bots and started off with Restless Ghost, cause I think it's hard to find one.

I'm doing this because i want to share this script with you and to get some advice/suggestions from more experienced scripters.

 

DOWNLOAD LINK:

 

 

Wouldn't mind if someone could give any suggestions for the code. Any advice will be greatly appreciated.

 

Credits to Aiban for telling me about the configs. Made everything less messy.

 

Edited by krapstaunosi
  • Like 4
Link to comment
Share on other sites

Look into configs, there is a config for every progression of a quest so you can just use configs to determine the stage of the quest

 

getDialogues().completeDialogue(); is what you are looking for I believe, you can use a conditionalsleep after every action and you can simply return !getDialogues().inDialogue(); when u have finished speaking to an NPC

  • Like 1
Link to comment
Share on other sites

Look into configs, there is a config for every progression of a quest so you can just use configs to determine the stage of the quest

 

getDialogues().completeDialogue(); is what you are looking for I believe, you can use a conditionalsleep after every action and you can simply return !getDialogues().inDialogue(); when u have finished speaking to an NPC

 

Thanks Aiban, the config stuff works great and made the code less messy. The only concern I have is about getDialogues().completeDialogue(); . It works great but it just flies through the whole conversation. What I've done is that I'm still using dialogues.clickContinue() and dialogues.isPendingOption() (added sleep between actions) and I check in getState() if the bot is still in dialog ant don't change anything till its' finished.

 

Is this a decent solution or maybe I could rewrite the completeDialogue() method somehow to add sleep to it?

 

By the way, is there a way to close the Quest completion window? I'm using getWidgets().closeOpenInterface(); but it doesn't seem to work.

 

Another problem that I have is that after completing the quest I call stop(false); to stop the script. But OSBot then somehow gets confused and if I try to run a different script afterwards it starts the restless ghost script again. What should I include in the script to prevent this form happening?

Link to comment
Share on other sites

Thanks Aiban, the config stuff works great and made the code less messy. The only concern I have is about getDialogues().completeDialogue(); . It works great but it just flies through the whole conversation. What I've done is that I'm still using dialogues.clickContinue() and dialogues.isPendingOption() (added sleep between actions) and I check in getState() if the bot is still in dialog ant don't change anything till its' finished.

 

Is this a decent solution or maybe I could rewrite the completeDialogue() method somehow to add sleep to it?

 

By the way, is there a way to close the Quest completion window? I'm using getWidgets().closeOpenInterface(); but it doesn't seem to work.

 

Another problem that I have is that after completing the quest I call stop(false); to stop the script. But OSBot then somehow gets confused and if I try to run a different script afterwards it starts the restless ghost script again. What should I include in the script to prevent this form happening?

 

I dont think adding sleeps inbetween dialogue matters much, im willing to bet that me and every other guys doing quests just spam their spacebar :D

 

To close the quest completion window, i guess u could just check to see if the X button is visible or something

 

Before starting up another script you should always refresh your script selector, that way there shouldnt be an issue :)

Link to comment
Share on other sites

  • 2 weeks later...

Gets stuck when trying to start the quest with father aereck, also gets stuck at father urhney (both times selected the wrong interface text),  other than that it is flawless! Thanks! =)

 

Thanks for the post. But I've just redone the quest with a fresh account and all looks good. Kinda thought maybe Jagex updated the dialogues.

Aereck options are:  "I'm looking for a quest!", "Ok, let me help then."

Urhney: "Father Aereck sent me to talk to you.", "He's got a ghost haunting his graveyard."

 

The interface had these options and still selected something else?

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.

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.

 Share

  • Recently Browsing   0 members

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