Jump to content

Recommended Posts

Hello guys

I write simple code with fullcsharpcode type

public sealed class stepfour : QuestClass
{
 
    public override bool Pulse() 
    {
        consolelog.write("In step4"); 
        return true;
    }
}

It’s not work ,debug log display step5,step4 is skip,but it use the overridpulsecode type,it’s ok.

how can I do that work?

For the fight https://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=13088 , 

For regen:

        wManager.wManagerSetting.CurrentSetting.FoodPercent = 1;
        wManager.wManagerSetting.CurrentSetting.FoodMaxPercent = 1;
        wManager.wManagerSetting.CurrentSetting.DrinkPercent = 1;
        wManager.wManagerSetting.CurrentSetting.DrinkMaxPercent = 1;

For stuck:

 wManager.Events.MovementEvents.OnPulseStuckResolver += delegate(CancelEventArgs cancelable) { cancelable.Cancel = true; };

 

thanks again,but i have three questions

1.Interact GameObject is locked ,so  return false?

2.i use the GetNearestWoWGameObject to search,but i find it's radius is less than devementTool 's "getobjects", so how to set the search radius?and this api return empty object or null when not find?

3.i use this code to find attack target in partymember's target,but some times ,but not find,all partymeber is attacking,i am not.  

i use robot in island,i use the   Party.GetPartyNumberPlayers() it's empty,is must use GetPartyNumberPlayers(PartyCategoryType.LE_PARTY_CATEGORY_INSTANCE),so the IsTargetingPartyMember include homeandinstance?

GetObjectWoWUnit(). FirstOrDefault(u => u.Reaction != Reaction.Friendly &&
                                 u.Type != WoWObjectType.Player &&
                                 u.IsTargetingPartyMember

 

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...