Jump to content

Recommended Posts

 

Quote

[N] 13:47:51 - [Path-Finding] FindPath from -444,114 ; 3060,197 ; -52,66489 ; "None" to -360,0499 ; 3067,896 ; -200000 ; "None" (Expansion01)

Server return bad position, I think it is problem, you get this problem since when?

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53265
Share on other sites

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

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53269
Share on other sites

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)

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53281
Share on other sites

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)

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53283
Share on other sites

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

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53285
Share on other sites

3 minutes ago, The Smokie. said:

you use this code as a runcode.

this code need to use before profile load steps, becouse ressurection work before profile load steps and if bot running in mement of death - he dont load  this code and dont ressurect corpse

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53288
Share on other sites

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

 
Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53295
Share on other sites

45 minutes ago, zatvorgt said:

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

 

try to replace "CancelEventArgs" by  "System.ComponentModel.CancelEventArgs"

Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53297
Share on other sites

all ok but who neede this code - change 

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 {}
};



to 
if (to != null && to.Z == -200000 && to.DistanceTo2D(new Vector3(-360.0499, 3067.896, 0)) < 20) to.Z = -52; // use gate Z pos
{
to.Z = -52; // use gate Z pos
}
Link to comment
https://wrobot.eu/forums/topic/11157-warmane-pathfider-down/#findComment-53304
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...