DarkOrbit 7.5.3 / 9.0 / 10.0 - Open Source

11/29/2021 17:44 loveditoi#376
Quote:
Originally Posted by mano79 View Post
database:
{"StarterMap":false,"PvpMap":false,"RangeDisabled" :false,"CloakBlocked":false,"LogoutBlocked":false, "DeathLocationRepair":true}
public int GetBaseMapId()

player.cs
{
//return FactionId == 1 ? 20 : FactionId == 2 ? 24 : 28;
return FactionId == 1 ? 1 : FactionId == 2 ? 5 : 9;
}

public Position GetBasePosition()
{
return FactionId == 1 ? Position.MMOPosition : FactionId == 2 ? Position.EICPosition : Position.VRUPosition;
}

position.cs
class Position
{
//public static Position MMOPosition = new Position(1800, 7300);
//public static Position EICPosition = new Position(9500, 2800);
//public static Position EICPosition = new Position(10400, 1800);
//public static Position VRUPosition = new Position(18500, 7300);
//public static Position VRUPosition = new Position(19100, 6500);

public static Position MMOPosition = new Position(2000, 2000);
public static Position EICPosition = new Position(18900, 2000);
public static Position VRUPosition = new Position(19000, 11600);

public int X { get; set; }
public int Y { get; set; }

public Position(int x, int y)
{
X = x;
Y = y;
}

public double DistanceTo(Position point)
{
return Math.Sqrt(Math.Pow(point.X - X, 2) + Math.Pow(point.Y - Y, 2));
}

public static Position Random(Spacemap map, int minX = 0, int maxX = 0, int minY = 0, int maxY = 0)
{
if (minX == 0) minX = map.Limits[0].X;
if (minY == 0) minY = map.Limits[0].Y;
if (maxX == 0) maxX = map.Limits[1].X;
if (maxY == 0) maxY = map.Limits[1].Y;

var posX = Randoms.random.Next(minX, maxX);
var posY = Randoms.random.Next(minY, maxY);
return new Position(posX, posY);
}

public static Position GetPosOnCircle(Position circleCenter, int radius)
{
var a = Randoms.random.Next(0, 360);
var calculateX = circleCenter.X + Convert.ToInt32(radius * Math.Cos(a));
var calculateY = circleCenter.Y + Convert.ToInt32(radius * Math.Sin(a));

return new Position(calculateX, calculateY);
}
}
}

it doesn't work for me always puts the new player on the x8 map i want to put the new players on the x1 map but it doesn't work
Check your SpaceMap.cs and check if the ids are the one you want .. but i guess it's too hard to understand how things works :)
11/29/2021 20:08 mano79#377
Quote:
Originally Posted by Prototype2597 View Post
[Only registered and activated users can see links. Click Here To Register...]

Adding "AutoLooting" for PET - COMPLETE
I added AUTO_LOOT but it doesn't work because my emulator needs this code

public void CheckAutoLoot ()
{
// TODO
}

do you enter the code??

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
11/29/2021 20:38 -=Flavio=-#378
Quote:
Originally Posted by mano79 View Post
I added AUTO_LOOT but it doesn't work because my emulator needs this code

public void CheckAutoLoot ()
{
// TODO
}

do you enter the code??

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
"TODO" must be self-explanatory.
You have to write the code, take a look at the boxes that function for the player ships, this should give you some help.
11/29/2021 21:03 mano79#379
Quote:
Originally Posted by -=Flavio=- View Post
"TODO" must be self-explanatory.
You have to write the code, take a look at the boxes that function for the player ships, this should give you some help.
I tried everything but it doesn't work, I want you to give me the code in private and I promise I won't write any more questions on the forum
11/29/2021 21:06 -=Flavio=-#380
Quote:
Originally Posted by mano79 View Post
I tried everything but it doesn't work, I want you to give me the code in private and I promise I won't write any more questions on the forum
I don't have it, I don't mind you asking questions here on the forum, that's what it's for, but I don't have this code ready anyway.
11/29/2021 23:49 Akame_Ga_Kill#381
Quote:
Originally Posted by mano79 View Post
I tried everything but it doesn't work, I want you to give me the code in private and I promise I won't write any more questions on the forum...
...and then i'll come with another account and ask for more done stuff :kappa:
11/30/2021 10:41 Prototype2597#382
Quote:
Originally Posted by Akame_Ga_Kill View Post
...and then i'll come with another account and ask for more done stuff :kappa:
It doesn’t matter. Everybody knows his “English-Google-Translate-Edition”. :rolleyes:
Or “Promt-Edition”, Idk :D
11/30/2021 11:14 mano79#383
Quote:
Originally Posted by Prototype2597 View Post
It doesn’t matter. Everybody knows his “English-Google-Translate-Edition”. :rolleyes:
Or “Promt-Edition”, Idk :D
You two are malicious people
11/30/2021 11:25 Prototype2597#384
Quote:
Originally Posted by mano79 View Post
You two are malicious people
Oh, so you're still here? How wonderful :o

Wait…
Quote:
Originally Posted by mano79 View Post
I promise I won't write any more questions on the forum
And what will you do now? Annoy users? :confused:
11/30/2021 14:46 mano79#385
Quote:
Originally Posted by Prototype2597 View Post
Oh, so you're still here? How wonderful :o

Wait…


And what will you do now? Annoy users? :confused:
Who do you think you are?
Who are you to say what I can ask on the forum?
Otherwise, I ask what I want
If it bothers you, tardsdmeg, to yourself, your opinion
11/30/2021 14:58 -=Flavio=-#386
I'm sure we're off topic here
11/30/2021 15:13 Prototype2597#387
Quote:
Originally Posted by mano79 View Post
Who do you think you are?
I am a user of the ePvP forum. Good morning :)

Quote:
Originally Posted by mano79 View Post
Who are you to say what I can ask on the forum?
“Quote” the message where I told you that. ;)

Quote:
Originally Posted by mano79 View Post
Otherwise, I ask what I want
Earlier you said:
Quote:
Originally Posted by mano79 View Post
I promise I won't write any more questions on the forum
These are your words, not mine. :facepalm:

Quote:
Originally Posted by mano79 View Post
If it bothers you, tardsdmeg, to yourself, your opinion
Tardsdmeg? What language is this? :confused:
11/30/2021 16:44 loveditoi#388
Quote:
Originally Posted by Prototype2597 View Post
Tardsdmeg? What language is this? :confused:
GoogleTrad.exe has crashed.
12/02/2021 17:27 Dodelig#389
Darkorbit died, now we go off topic and make fun about GT. So original.
12/02/2021 21:09 Prototype2597#390
Quote:
Originally Posted by Dodelig View Post
Darkorbit died, now we go off topic and make fun about GT. So original.
This thread about PServer. Who cares died DO or not?

—————

Ships and all designs for them. Design replace the original ship icon.
[Only registered and activated users can see links. Click Here To Register...]

Each skill works :D
[Only registered and activated users can see links. Click Here To Register...]

More ships in future :p (And maybe skills)