Jump to content

zatvorgt

WRobot user
  • Posts

    237
  • Joined

  • Last visited

Posts posted by zatvorgt

  1. 12 hours ago, Droidz said:

    Try to run this code (one time only in start steps of your profile)

    
    wManager.Events.OthersEvents.OnPathFinderFindPath += delegate(Vector3 from, Vector3 to, string mpq, CancelEventArgs cancelable)
    {
        try
        {
            if (to != null && to.Z == -200000 && to.DistanceTo2D(new Vector3(-360.0499, 3067.896, 0)) < 20)
                to.Z = -52; // use gate Z pos
        }
        catch {}
    };

    (replace -52 by best value if needed)

    i resolve all problems if i started this code in script   
    <Script>

    </Script>

    exist varian to run this code in script ?: becouse i have errors when i using this in script) runcode  works well

     
  2. 24 minutes ago, Droidz said:

    Try to run this code (one time only in start steps of your profile)

    
    wManager.Events.OthersEvents.OnPathFinderFindPath += delegate(Vector3 from, Vector3 to, string mpq, CancelEventArgs cancelable)
    {
        try
        {
            if (to != null && to.Z == -200000 && to.DistanceTo2D(new Vector3(-360.0499, 3067.896, 0)) < 20)
                to.Z = -52; // use gate Z pos
        }
        catch {}
    };

    (replace -52 by best value if needed)

    <Script>
    public class MyCustomScript
    {
        static MyCustomScript()
        {

    wManager.Events.OthersEvents.OnPathFinderFindPath += delegate(Vector3 from, Vector3 to, string mpq, CancelEventArgs cancelable)&#xD;&#xA;{&#xD;&#xA;    try&#xD;&#xA;    {&#xD;&#xA;        if (to != null &amp;&amp; to.Z == -200000 &amp;&amp; to.DistanceTo2D(new Vector3(-360.0499, 3067.896, 0)) &lt; 20)&#xD;&#xA;            to.Z = -52; // use gate Z pos&#xD;&#xA;    }&#xD;&#xA;    catch {}&#xD;&#xA;};


     }
    }
    </Script>


    not work.......

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

  3. 3 minutes ago, Droidz said:

    Use Windows task scheduler to open relogger at selected time with argument "AutoAttachAndLog=true" (Relogger will start all checked profiles at start)

    tanks)but neet to close in time )

  4. 8 minutes ago, Droidz said:

    Try to run this code (one time only in start steps of your profile)

    
    wManager.Events.OthersEvents.OnPathFinderFindPath += delegate(Vector3 from, Vector3 to, string mpq, CancelEventArgs cancelable)
    {
        try
        {
            if (to != null && to.Z == -200000 && to.DistanceTo2D(new Vector3(-360.0499, 3067.896, 0)) < 20)
                to.Z = -52; // use gate Z pos
        }
        catch {}
    };

    (replace -52 by best value if needed)

    need test on warmane but have 800 queue))will test tomorrow)thanks)

  5. 7 minutes ago, Droidz said:

    I am sorry, I already try to found how to optimize CPU usage I don't found, to resolve it I need to change a lot of code, it is more easy to minimize window (I'll fix it but I do not know when)

    variant to minimized it's ok for me
    possible to add in relogger timer to launch?  
    more servers admin work only day , night it is safety  >  need to add function - 
    example start profile  1.30  and close profile 5.30 -    is very good option for private servers)thanks

  6. 1 hour ago, Droidz said:

    Try to make offmesh that end at  -360,0499 ; 3067,896 ; -200000 (even if WRobot never use this position)

    i already having  offmesh - 1000 dont work mesh and not work offmeshes after die in dungeon warmane,  another server all identic and all works.....all wrobot refreshed, all cache and db maps deleted  all settings default

    warmane nordskoll and outland all woks good....only after die in dungeon  he have problem  meshes, bot runing to enter dungeon without meshes and stuck, but if he die not in dungeon - all work ok with meshes

  7. i do this becouse 5-6 relogger started and  sometimes conflict   if   simultaneously lauch 2 window of wow ,  relogger1 connect wrobot for window of relogger2 and relogger2 connect wrobot for window relogger1 

  8. Hello , after add 60+   profiles in relogger - he eat processor    more 20 times    
    if have 10 profiles on 1 relogger - he eat 0.5%  cpu 
    if have 60 profiles - he eat 15% cpu   >   he eat 15%+  cpu even if running only 1 of 60 profile!!!resolve thos bug please/.....if need video - i will create this 

  9. 4 minutes ago, sith500 said:

    Write all your code that you run through "RunCode"

     <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8847.28, 569.955, 94.68758), 4981, 1, false);" />
        <QuestsSorted Action="Wait" NameClass="2000" />
        <QuestsSorted Action="RunLuaCode" NameClass="BuyMerchantItem (5, 8)" />


    or standart   gototown   , same problem

  10. 33 minutes ago, sith500 said:
    
    if (GoToTask.ToPosition(Vector3 position, float precision, bool skipIfCannotMakePath, BooleanDelegate conditionExit)
    Interact.InteractGameObject(ulong baseAddress, bool stopMove, bool skipWaitTime, bool leftClick);

    For example:

    
    var mob = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(12345));
    
    if (GoToTask.ToPosition(new Vector3(0, 0, 0, "None"), 2f))
    {
    Interact.InteractGameObject(mob.GetBaseAddress, true);
    // your actions
    }

    Where "2f" -  distance to interract


    More information:

     

    thanks but is hard, this problem starts after 2-3 lasts updates....maybe return system of interract old?*

×
×
  • Create New...