Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Events and Child Events

Featured Replies

Question about Events, particularly Event.addChild: what is the use and significance, if any, of event children? How does the EventExecutor run child events? How do setFailed/setFinished calls affect this behavior?

(I am familiar with the execution flow of Events with the EventExecutor, and generally how custom and built-in events work on OSBot.)

Any help on this would be much appreciated. The docs are completely empty and nobody seems to know anything about this :( 

Last time i went to a child's event i was told to "get out of the bouncy castle" and "put some clothes on your drunken idiot"

5 hours ago, Naked said:

Last time i went to a child's event i was told to "get out of the bouncy castle" and "put some clothes on your drunken idiot"

I was once told to name a movie that best described my sex life, Childsplay didn't go down so well. 

Last Christmas I was so annoyed with my Jimmy Saville advent calender, The flaps only opened from 1 - 16. 

I'll show my self out.

On 3/8/2020 at 10:29 PM, agentcallooh said:

Question about Events, particularly Event.addChild: what is the use and significance, if any, of event children? How does the EventExecutor run child events? How do setFailed/setFinished calls affect this behavior?

(I am familiar with the execution flow of Events with the EventExecutor, and generally how custom and built-in events work on OSBot.)

Any help on this would be much appreciated. The docs are completely empty and nobody seems to know anything about this :( 

Adding children to an event will allow you to run the parent event while also being able to execute the child events so you do not have to call multiple events one after the other.

The setFailed and the setFinished method will work as it normally does applying to the current event you are using when calling them. 

Edited by BravoTaco

  • Author
8 hours ago, BravoTaco said:

Adding children to an event will allow you to run the parent event while also being able to execute the child events so you do not have to call multiple events one after the other.

The setFailed and the setFinished method will work as it normally does applying to the current event you are using when calling them. 

If I'm understanding you right, the EventExecutor will call the parent's execute AND also the child events execute one after the other? I'm not sure I really understand it. Or does the parent have to fail/finish BEFORE the first child begins executing?

So for setFailed/setFinished, these don't transfer parent<->child nor affect execution of individual events? (Obviously once something fails/finishes it stops being executed)

9 hours ago, agentcallooh said:

If I'm understanding you right, the EventExecutor will call the parent's execute AND also the child events execute one after the other? I'm not sure I really understand it. Or does the parent have to fail/finish BEFORE the first child begins executing?

So for setFailed/setFinished, these don't transfer parent<->child nor affect execution of individual events? (Obviously once something fails/finishes it stops being executed)

I thought it would automatically call the child after the parent has executed but, with some testing it seems that is not the case. So what you will have to do is loop through all the child events and execute them and set them as failed/finished. Using those values you could then execute/end the next child event. 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.