[Release] Orbit Reborn - Source

10/26/2014 20:52 steppdroid#61
Quote:
Originally Posted by Anohros View Post

Run the following mysql statement:
Code:
ALTER TABLE `users` MODIFY COLUMN `clanid` INT(11) NOT NULL DEFAULT '0';
Replace line 2 in views/internalStart/HallOfFame.php with:
Code:
if (!Auth::getUser('clanid'))
Replace line 27 in views/internalClan/index.php with:
Code:
if (!Auth::getUser('clanid'))
Replace line 2 in views/internalClan/ClanRanking.php with:
Code:
if (!Auth::getUser('clanid'))
Replace line 2 in views/internalClan/Diplomacy.php with:
Code:
if (!Auth::getUser('clanid'))
Nice to have is a site reload after a successfull clan creation. Put a window reload into views/internalClan/js/default.js after a click on the overlay or the box close-button.

With regards,
Anohros
Work! big thanks!! :handsdown:
10/26/2014 21:36 Destiny#62
i love it xd idk how add old shop swf view :/
[Only registered and activated users can see links. Click Here To Register...]
10/26/2014 21:45 MuffinMario#63
Quote:
Originally Posted by edox77 View Post
i love it xd idk how add old shop swf view :/
[Only registered and activated users can see links. Click Here To Register...]
Maybe replace the old swf with the new one and refresh the site via Ctrl+F5
10/26/2014 22:06 Destiny#64
swf loaded from bigpoint
who can help i want make old cms with all
i have all files :)
10/26/2014 22:48 karas17#65
Quote:
Originally Posted by Anohros View Post
Maybe it helps someone.

Place the following code snippet at bottom inner the DoDamageNPC function in Fight.cs to make the enemies killable by laser:
Code:
if (Npc.ShipHp <= 0)
{
    KillNPC(Instance, Npc, Session);
}
Function to kill a npc:
Code:
/// <summary>
/// Kill an npc on a map.
/// </summary>
/// <param name="mapInstance">Map</param>
/// <param name="npc">Killed npc</param>
/// <param name="session">Killer session</param>
private static void KillNPC(MapInstance map, Npc npc, Session session)
{
	// Explode the npc then kick from the map.
	map.BroadcastMessage(PacketComposer.Compose("K", npc.Id.ToString()));
	map.KickNpc(map.GetActorByReferenceId(npc.Id, MapActorType.AiBot).Id);

	// Remove the npc.
	NpcAI.NpcList.Remove(npc);

	// Stop attacking.
	session.CharacterInfo.LaserAttackTimer.Dispose();
	session.CharacterInfo.LaserAttackTimer = null;
	session.CharacterInfo.Attacking = false;

	// Calculate and update credits.
	var collectedCredits = 200;
	var calculatedCredits = session.CharacterInfo.Credits + collectedCredits;

	//session.CharacterInfo.Credits += collectedCredits;
	session.SendData(PacketComposer.Compose("y", "CRE|" + collectedCredits + "|" + calculatedCredits));

	// Inform the killer and count the kill.
	using (SqlDatabaseClient database = SqlDatabaseManager.GetClient())
	{
		var message = "You have destroyed " + npc.Name + ".";
		session.CharacterInfo.AddLog(database, message);
		session.CharacterInfo.AddKill(database);
		session.CharacterInfo.SynchronizeStatistics(database);
	}
}
Change access modifier of the NpcList in NpcAI.cs to public.


With regards,
Anohros
thank you very much :)
how to fix the npc spawn after the destruction?
10/26/2014 22:49 katil0172#66
npc get please
10/26/2014 23:30 0wnix#67
Many thanks dude :D

I'm doing a single player version for myself
[Only registered and activated users can see links. Click Here To Register...]
10/26/2014 23:42 Anohros#68
Quote:
Originally Posted by karas17 View Post
thank you very much :)
how to fix the npc spawn after the destruction?
For example, paste the following code at the bottom inner my KillNPC function:
Code:
// Spawn new npc.
NpcAI.AddNpcToX1();
So you can ensure, that the count of npc's don't be less as it was before the kill.

With regards,
Anohros
10/27/2014 14:39 katil0172#69
Activate been nice the Let's get us
10/27/2014 14:51 Puma<3#70
I can nit see how dmg i get :/ please help
10/27/2014 14:55 steppdroid#71
Quote:
Originally Posted by Anohros View Post
For example, paste the following code at the bottom inner my KillNPC function:
Code:
// Spawn new npc.
NpcAI.AddNpcToX1();
So you can ensure, that the count of npc's don't be less as it was before the kill.

With regards,
Anohros
Instead, to totally eliminate the npc?
10/27/2014 14:58 linkpad#72
Hello, because I was bored today I've worked a little on NPC. You can now add npc to the map you want easily, I've also fixed a bug with the Npc pathfinding.

Download : [Only registered and activated users can see links. Click Here To Register...]

And for people that want all maps :

1) Delete the table "portals"
2) Run this SQL :

Code:
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Lun 27 Octobre 2014 à 14:07
-- Version du serveur: 5.6.12-log
-- Version de PHP: 5.4.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

--
-- Base de données: `darkorbit_new`
--

-- --------------------------------------------------------

--
-- Structure de la table `portals`
--

CREATE TABLE IF NOT EXISTS `portals` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pos_x` int(11) NOT NULL,
  `pos_y` int(11) NOT NULL,
  `map_id` int(11) NOT NULL,
  `arrive_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=53 ;

--
-- Contenu de la table `portals`
--

INSERT INTO `portals` (`id`, `pos_x`, `pos_y`, `map_id`, `arrive_id`) VALUES
(1, 185, 115, 1, 2),
(2, 20, 20, 2, 1),
(3, 185, 20, 2, 40),
(4, 185, 115, 2, 38),
(5, 20, 20, 9, 6),
(6, 185, 115, 10, 5),
(7, 185, 20, 10, 8),
(8, 185, 115, 11, 7),
(9, 20, 20, 10, 10),
(10, 185, 115, 12, 9),
(11, 185, 20, 12, 12),
(12, 20, 115, 11, 11),
(13, 20, 20, 11, 14),
(14, 20, 115, 8, 13),
(16, 100, 15, 12, 17),
(17, 190, 60, 15, 18),
(18, 20, 20, 12, 19),
(19, 185, 115, 4, 18),
(20, 105, 65, 15, 21),
(21, 220, 145, 16, 20),
(22, 20, 115, 15, 23),
(23, 185, 115, 13, 22),
(24, 20, 20, 15, 25),
(25, 185, 115, 14, 24),
(26, 220, 120, 16, 27),
(27, 105, 65, 14, 26),
(28, 190, 135, 16, 29),
(29, 105, 65, 13, 28),
(30, 185, 20, 13, 31),
(31, 20, 115, 14, 30),
(32, 15, 60, 13, 33),
(33, 190, 60, 4, 32),
(34, 100, 15, 14, 35),
(35, 100, 120, 8, 34),
(36, 185, 115, 3, 37),
(37, 185, 20, 4, 36),
(38, 20, 20, 4, 4),
(40, 20, 115, 3, 3),
(43, 185, 20, 3, 44),
(44, 20, 115, 7, 43),
(45, 185, 115, 7, 46),
(46, 185, 20, 8, 45),
(47, 20, 115, 5, 48),
(48, 185, 20, 6, 47),
(49, 185, 115, 6, 50),
(50, 20, 20, 8, 49),
(51, 20, 115, 6, 52),
(52, 185, 20, 7, 51);
10/27/2014 15:37 katil0172#73
orbit what time online ?
10/27/2014 15:58 Puma<3#74
i give the cods for fix hangar and shop but doesnt work :D

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
10/27/2014 16:25 steppdroid#75
everything works in my cms. the single biggest mistake is that, if you do not log in twice, not working properly