Jump to content

limitation of custom script tag in quester


naviomg

Recommended Posts

trying to wait on my partymembers in a questing profile. this works as runcode:

        int readyMembers = 0;
        var totalMembers = wManager.Wow.Helpers.Party.GetParty().Count();
        while (readyMembers != totalMembers)
        {
            readyMembers = wManager.Wow.Helpers.Party.GetParty().Where(u => u.GetDistance <= 5).Count();
            System.Threading.Thread.Sleep(3000);
        }


but the second i run the folowwing in the script tag
 

wManager.Wow.Helpers.Party.GetParty().Where(u => u.GetDistance <= 5).Count();

i get the error:
 

Quester.Bot > Pulse(): System.NullReferenceException: Object reference not set to an instance of an object.
   at Quester.Bot.Bot.Pulse(Boolean loadSettingsProfile, String profile)

same happens to any for and foreach loops, everything else is working fine in the script tag. anyone know what the exact error here?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...