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.

FC question

Featured Replies

Why if i add condition type c sharp code with operator || Bot will try use the spell every time not paying attention to other conditions?

Безымянный.png

https://www.programiz.com/c-programming/c-operators

Check "Logical Operators". If I understand correctly you want to use a logical OR but in same condition another OR / AND but your problem is that the bot is not looking for those conditions but instead just checks the first OR?

If I understand that correctly you might wanna use something like this

(Usefuls.ContinentId == (int) ContinentId.Kalimdor || Usefuls.ContinentId == (int) ContinentId.Azeroth) && ObjectManager.Me.Level = 10

Edited by Bambo

  • Author
3 minutes ago, Droidz said:

hi, Sets the code between ( and)

All another condition like (Me Level && Me In Cast && C Sharp Code && Buff && C Sharp Code) && (Kalimdor || Azeroth) . so?

All conditions in wRobot are combined with a && operator. In the fightclass editor, you can only create "or" scenarios, but using one sole C# or Lua condition OR creating a second spell with the same name and different conditions.

I recommend you just look into how to use C# to write a fightclass from scratch and don't use the editor.
Also what Droidz said - wrap your C# conditions in brackets like this: ( <condition> )

You can do everything in one C# conditon too:
 

ObjectManager.Me.Level < 25 && !ObjectManager.Me.IsCast && ObjectManager.Me.HaveBuff("Power Word: Shield") && Usefuls.ContinentId < 2

 

Edited by Matenia

Wait, why can't we use logical OR in fightclass editor? it works in easy quester editor as well?

Edit: Nvmd

Edited by Bambo

  • Author

 

12 minutes ago, Bambo said:

https://www.programiz.com/c-programming/c-operators

Check "Logical Operators". If I understand correctly you want to use a logical OR but in same condition another OR / AND but your problem is that the bot is not looking for those conditions but instead just checks the first OR?

If I understand that correctly you might wanna use something like this

(Usefuls.ContinentId == (int) ContinentId.Kalimdor || Usefuls.ContinentId == (int) ContinentId.Azeroth) && ObjectManager.Me.Level = 10

Yes.

  • Author
5 minutes ago, Matenia said:

All conditions in wRobot are combined with a && operator. In the fightclass editor, you can only create "or" scenarios, but using one sole C# or Lua condition OR creating a second spell with the same name and different conditions.

I recommend you just look into how to use C# to write a fightclass from scratch and don't use the editor.
Also what Droidz said - wrap your C# conditions in brackets like this: ( <condition> )

You can do everything in one C# conditon too:
 


ObjectManager.Me.Level < 25 && !ObjectManager.Me.IsCast && ObjectManager.Me.HaveBuff("Power Word: Shield") && Usefuls.ContinentId < 2

 

oh, I wanted to do everything in a simple way, but I have to do everything conditions in the C Shape form..

5 minutes ago, Bambo said:

Wait, why can't we use logical OR in fightclass editor? it works in easy quester editor as well?

Because all conditions are combined (if you look at Spell Conditions and the way he entered them) through AND operators.
You can only use OR operators, if you create your very own condition from scratch. But the way the fightclass editor adds up conditions that are set separately is through AND.

1 minute ago, 79135 said:

oh, I wanted to do everything in a simple way, but I have to do everything conditions in the C Shape form..

You can do it in the form you wanted before (if you set brackets the way Droidz/Bambo explained), but it's really, really slow and inefficient.

Edited by Matenia

1 minute ago, 79135 said:

oh, I wanted to do everything in a simple way, but I have to do everything conditions in the C Shape form..

do what schaka said and learn c sharp, the forum can help

the editor for fightclass and quest is ineffective in many cases

1 minute ago, 79135 said:

Still some question. how to force bot to use mount with name from my settings?

Do you mean to force to mount up or to change the wrobot setting to a specific mount name?

2 minutes ago, Matenia said:

Because all conditions are combined (if you look at Spell Conditions and the way he entered them) through AND operators.
You can only use OR operators, if you create your very own condition from scratch. But the way the fightclass editor adds up conditions that are set separately is through AND.

You can do it in the form you wanted before (if you set brackets the way Droidz/Bambo explained), but it's really, really slow and inefficient.

I understand now. It is a fightclass editor thing that just chains all different conditions one after another and combines with &&. I misunderstood you.

Edited by Bambo

  • Author
Just now, Bambo said:

Do you mean to force to mount up or to change the wrobot setting to a specific mount name?

Force to mount up

2 minutes ago, 79135 said:

Force to mount up

In vanilla I would try with ItemsManager.UseItem(11111);

1111 = your mount item id

PS: Not sure if this is correct

Edited by Bambo

  • Author
Just now, Bambo said:

In vanilla I would try with ItemsManager.UseItem(11111);

1111 = your mount item id

PS: Not sure if this is correct

                                                       
while(!ObjectManager.Me.IsMounted)
{

SpellManager.CastSpellByNameLUA(wManager.wManagerSetting.CurrentSetting.FlyingMountName)
Thread.Sleep(Others.Random(1500, 2500));

}

I need to get name mount from settings

  • Author
Just now, Matenia said:

wManager.Wow.Bot.Tasks.MountTask.Mount(); // no conditions required

 

Yes, work! Thanks

  • Author
13 minutes ago, Bambo said:

So is the Spell name the exact same name as the mount? or is there any addition like "Summon: Mountname"

"So is the Spell name the exact same name as the mount?" - yes. If you use macro /cast Warhorse char is mount on warhorse

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.