Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 08:30

  • Please register to post and access all features, it's quick, easy and FREE!

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.

Reply
 
Old 11/27/2021, 00:06   #361
 
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
how do I set the starting player to start on map x1?
mano79 is offline  
Old 11/27/2021, 05:58   #362
 
-=Flavio=-'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
Quote:
Originally Posted by mano79 View Post
how do I set the starting player to start on map x1?
player.cs

and position.cs
-=Flavio=- is offline  
Thanks
1 User
Old 11/28/2021, 08:32   #363
 
elite*gold: 0
Join Date: Nov 2021
Posts: 17
Received Thanks: 2
Hello.
How i can make 3D new designs?
TriplaxXx991 is offline  
Old 11/28/2021, 16:27   #364
 
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
hi

Quote:
Originally Posted by -=Flavio=- View Post
player.cs

and position.cs
how can i set the starting player to start on the x1 map?
Whatever I do always on the x8 map starts I don't understand why
mano79 is offline  
Old 11/28/2021, 19:29   #365
 
Akame_Ga_Kill's Avatar
 
elite*gold: 0
Join Date: Mar 2019
Posts: 242
Received Thanks: 183
Quote:
Originally Posted by mano79 View Post
how can i set the starting player to start on the x1 map?
Whatever I do always on the x8 map starts I don't understand why
Can someone help this poor boy? atleast he is asking for hints instead of a already made project lol
Akame_Ga_Kill is offline  
Old 11/28/2021, 20:36   #366
 
-=Flavio=-'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
Quote:
Originally Posted by TriplaxXx991 View Post
Hello.
How i can make 3D new designs?
Add the files inside the darkorbit "3D" folder, then add it to the "resources_3d" xml, then add it to the main.swf binaries, done!

Quote:
Originally Posted by mano79 View Post
how can i set the starting player to start on the x1 map?
Whatever I do always on the x8 map starts I don't understand why
Could you post your code responsible for the respawn? And did you check if you put it as "startermap" in the database?
-=Flavio=- is offline  
Old 11/28/2021, 21:50   #367
 
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
?

Quote:
Originally Posted by -=Flavio=- View Post
Add the files inside the darkorbit "3D" folder, then add it to the "resources_3d" xml, then add it to the main.swf binaries, done!



Could you post your code responsible for the respawn? And did you check if you put it as "startermap" in the database?
database exactly how do I add a startermap?
mano79 is offline  
Old 11/28/2021, 22:38   #368

 
#Heizer™'s Avatar
 
elite*gold: 20
Join Date: Nov 2014
Posts: 182
Received Thanks: 141
#Heizer™ is offline  
Old 11/29/2021, 05:46   #369
 
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
?

Quote:
Originally Posted by -=Flavio=- View Post
Add the files inside the darkorbit "3D" folder, then add it to the "resources_3d" xml, then add it to the main.swf binaries, done!



Could you post your code responsible for the respawn? And did you check if you put it as "startermap" in the database?
There is no option to startermap in the database

Exactly where to set the starting map in the database?
mano79 is offline  
Old 11/29/2021, 12:07   #370
 
-=Flavio=-'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
Quote:
Originally Posted by mano79 View Post
There is no option to startermap in the database

Exactly where to set the starting map in the database?
-=Flavio=- is offline  
Old 11/29/2021, 15:44   #371
 
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
hi

Quote:
Originally Posted by -=Flavio=- View Post
it is set to false for me
it doesn't work at all
mano79 is offline  
Old 11/29/2021, 16:21   #372
 
-=Flavio=-'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
Quote:
Originally Posted by mano79 View Post
it is set to false for me
it doesn't work at all
So post the part of the code I asked you for, it's kind of hard to help if I have no idea where the problem is.
-=Flavio=- is offline  
Old 11/29/2021, 17:08   #373
 
elite*gold: 0
Join Date: Sep 2021
Posts: 87
Received Thanks: 1
hi

Quote:
Originally Posted by -=Flavio=- View Post
So post the part of the code I asked you for, it's kind of hard to help if I have no idea where the problem is.
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
mano79 is offline  
Old 11/29/2021, 17:14   #374
 
Prototype2597's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 56
Received Thanks: 63
Talking



Adding "AutoLooting" for PET - COMPLETE
Prototype2597 is offline  
Thanks
1 User
Old 11/29/2021, 17:24   #375
 
-=Flavio=-'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 604
Received Thanks: 259
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

Does it only put new players on the x-8 map or when you die will it also end up there?
-=Flavio=- is offline  
Reply

Tags
10.0, 7.5.3, 9.0, darkorbit, emulators


Similar Threads Similar Threads
[Open-Source][C#] EloBuddy, open source League of Legends Bot
05/27/2014 - League of Legends Hacks, Bots, Cheats & Exploits - 8 Replies
-- Snipped --
KBot_5.62_setup.exe ' Open Open Open '
12/18/2011 - DarkOrbit - 5 Replies
KBot_5.62_setup.exe LİNK : http://www.kbotik.com/files/mo_IMG_3.jpg SCAN : http://www.metascan-online.com/img/metascanonline -logo.png



All times are GMT +2. The time now is 08:30.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.