|
You last visited: Today at 17:29
Advertisement
DarkOrbit 7.5.3 / 9.0 / 10.0 - Open Source
Discussion on DarkOrbit 7.5.3 / 9.0 / 10.0 - Open Source within the DarkOrbit forum part of the Browsergames category.
11/29/2021, 17:44
|
#376
|
elite*gold: 0
Join Date: Feb 2013
Posts: 121
Received Thanks: 39
|
Quote:
Originally Posted by mano79
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
|
#377
|
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
|
hi
Quote:
Originally Posted by Prototype2597
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??
|
|
|
11/29/2021, 20:38
|
#378
|
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
|
Quote:
Originally Posted by mano79
I added AUTO_LOOT but it doesn't work because my emulator needs this code
public void CheckAutoLoot ()
{
// TODO
}
do you enter the code??
|
"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
|
#379
|
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
|
hi
Quote:
Originally Posted by -=Flavio=-
"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
|
#380
|
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
|
Quote:
Originally Posted by mano79
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
|
#381
|
elite*gold: 0
Join Date: Mar 2019
Posts: 242
Received Thanks: 183
|
Quote:
Originally Posted by mano79
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
|
|
|
11/30/2021, 10:41
|
#382
|
elite*gold: 0
Join Date: Apr 2012
Posts: 56
Received Thanks: 63
|
Quote:
Originally Posted by Akame_Ga_Kill
...and then i'll come with another account and ask for more done stuff
|
It doesn’t matter. Everybody knows his “English-Google-Translate-Edition”.
Or “Promt-Edition”, Idk
|
|
|
11/30/2021, 11:14
|
#383
|
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
|
?
Quote:
Originally Posted by Prototype2597
It doesn’t matter. Everybody knows his “English-Google-Translate-Edition”.
Or “Promt-Edition”, Idk
|
You two are malicious people
|
|
|
11/30/2021, 11:25
|
#384
|
elite*gold: 0
Join Date: Apr 2012
Posts: 56
Received Thanks: 63
|
Quote:
Originally Posted by mano79
You two are malicious people
|
Oh, so you're still here? How wonderful
Wait…
Quote:
Originally Posted by mano79
I promise I won't write any more questions on the forum
|
And what will you do now? Annoy users?
|
|
|
11/30/2021, 14:46
|
#385
|
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
|
Xd
Quote:
Originally Posted by Prototype2597
Oh, so you're still here? How wonderful
Wait…
And what will you do now? Annoy users?
|
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
|
#386
|
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
|
I'm sure we're off topic here
|
|
|
11/30/2021, 15:13
|
#387
|
elite*gold: 0
Join Date: Apr 2012
Posts: 56
Received Thanks: 63
|
Quote:
Originally Posted by mano79
Who do you think you are?
|
I am a user of the ePvP forum. Good morning
Quote:
Originally Posted by mano79
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
Otherwise, I ask what I want
|
Earlier you said:
Quote:
Originally Posted by mano79
I promise I won't write any more questions on the forum
|
These are your words, not mine.
Quote:
Originally Posted by mano79
If it bothers you, tardsdmeg, to yourself, your opinion
|
Tardsdmeg? What language is this?
|
|
|
11/30/2021, 16:44
|
#388
|
elite*gold: 0
Join Date: Feb 2013
Posts: 121
Received Thanks: 39
|
Quote:
Originally Posted by Prototype2597
Tardsdmeg? What language is this?
|
GoogleTrad.exe has crashed.
|
|
|
12/02/2021, 17:27
|
#389
|
elite*gold: 0
Join Date: Nov 2011
Posts: 62
Received Thanks: 38
|
Darkorbit died, now we go off topic and make fun about GT. So original.
|
|
|
12/02/2021, 21:09
|
#390
|
elite*gold: 0
Join Date: Apr 2012
Posts: 56
Received Thanks: 63
|
PServer ≠ DO
Quote:
Originally Posted by Dodelig
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.
Each skill works
More ships in future (And maybe skills)
|
|
|
All times are GMT +2. The time now is 17:29.
|
|