Skip to content
View in the app

A better way to browse. Learn more.

WRobot

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.

Fight Class in F#

Featured Replies

Hi I just did my first fight class in F# for fun. Well the beginning only. I built the dll but the bot can't run it, big red error in logs. Anyone tried to make a class in F#? I am not sure if it's F# or me building the DLL the wrong way. I am new to F#.

namespace priestf

open robotManager.Helpful
open wManager.Wow.Helpers

type Main() = 
    let mutable _loop = false

    interface ICustomClass with
        override this.Initialize() = 
            Logging.Write "Start Class"
            _loop <- true

        override this.Dispose() = 
            _loop <- false

        override this.ShowConfiguration() = ()

        override this.Range = 30.0f

 

1 hour ago, pasdoy said:

Hi I just did my first fight class in F# for fun. Well the beginning only. I built the dll but the bot can't run it, big red error in logs. Anyone tried to make a class in F#? I am not sure if it's F# or me building the DLL the wrong way. I am new to F#.


namespace priestf

open robotManager.Helpful
open wManager.Wow.Helpers

type Main() = 
    let mutable _loop = false

    interface ICustomClass with
        override this.Initialize() = 
            Logging.Write "Start Class"
            _loop <- true

        override this.Dispose() = 
            _loop <- false

        override this.ShowConfiguration() = ()

        override this.Range = 30.0f

 

Is F# fight class development supported?  I know that WRobot supports .net 4.0 but hadn't ever seen things written in anything other than that.

namespace priestf

Sorry I didn't see this earlier, but you CANNOT use your own namespace on the main class. All other classes you have are fine to be used within any of your own and/or different namespaces, but the Main : CustomClass is not.

  • Author

thanks for the help all. I didn't think it was the namespace because of this file Script.fsx. I thought it meant "Open everything in the namespace X". I haven't made it worked it. 

	#load "Library1.fs"
open priestf2
	

Create an account or sign in to comment

Account

Navigation

Search

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.