elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   DarkOrbit (https://www.elitepvpers.com/forum/darkorbit/)
-   -   [Collection Thread] Private Server Info and Support Thread (https://www.elitepvpers.com/forum/darkorbit/2830133-private-server-info-support-thread.html)

Requi 11/11/2016 14:20

Quote:

Originally Posted by steppdroid (Post 35435278)
Nothing.. whith this
Code:

else if (IsModerator)
                                    {

                                            pair.Value.Send("dq%" + roomId + "@" + Username + "@" + message + "@" + Clan + "#");
                                       
                                    }

When i write with moderator i obtain:
Code:

System : 250
In Attach Files my chat.swf

Reverse the fucking swf.
Code:

case Constants.CMD_DEVELOPER_MSG:        this.chat.output(Message.TYPE_SYSTEM,this.languageHandler.getWord("globalchat.chat.system"),null,_loc4_[0],this.activeRoomId);

public function output(param1:int, param2:String, param3:String, param4:String, param5:int, param6:int = -1) : Message
      {
        var _loc7_:Room = this.main.getRoom(param5);
        if(_loc7_ == null)
        {
            return null;
        }
        var _loc8_:Message = new Message(param1,param2,param3,param4);
        _loc8_.setAdminLevelId(param6);
        _loc7_.addMessage(_loc8_);
        if(param5 == this.main.getActiveRoomId())
        {
            this.textOutput.htmlText = _loc7_.getAllMessages();
        }
        if(this.main.contains(this) && this.autoscroll)
        {
            this.textOutput.scrollV = this.textOutput.maxScrollV;
            this.myScrollBar.setHolderToBottom();
        }
        if(!this.contains(this.myScrollBar) && this.textOutput.maxScrollV > 1)
        {
            this.addChildAt(this.myScrollBar,4);
        }
        return _loc8_;
      }

public function Message(param1:int, param2:String, param3:String, param4:String)
      {
        super();
        this.messageType = param1;
        if(param2 != null)
        {
            this.username = Main.maskHTML(param2);
        }
        if(param3 != null)
        {
            this.clanTag = Main.maskHTML(param3);
        }
        this.message = param4;
      }

It's a system message not a user message. Use CMD_ADMIN_MSG, but change the admin level so it uses another css class. You can change the color of the css classes in the .css file.

steppdroid 11/12/2016 12:06

Hi, why with this query not upgrade the database?!

Code:

public static void BanUser(String username)
        {
            try
            {
                var sql = "INSERT INTO `bannedusers` (`Username`) VALUES ("+ username + ");";

                using (var dbClient = chatmanager.getQueryreactor())
                {
                  dbClient.query(sql);
                }
            }
            catch { }
        }

Code for bann user is:
Code:

      case "/ban":
                            if (IsAdministrator)
                            {
                                var user = message.Remove(0, 5) ;
                                foreach (var pair in Program.chatUsers)
                                {
                                    if (pair.Value.Username.ToLower() == user.ToLower())
                                    {
                                        pair.Value.Send("at%#");
                                        pair.Value._handler.Shutdown(SocketShutdown.Both);
                                        pair.Value._handler.Close();
                                        pair.Value._handler = null;
                                        Program.chatUsers.Remove(pair.Key);
                                        Program.AddLog(Username, user, "Banned client");
                                        Program.BanUser(pair.Value.Username);
                                        Program.chatUsers.Remove(pair.Key);
                                       
                                    }
                                    foreach (var usar in Program.chatUsers)
                                    {

                                        usar.Value.Send("fk%250@" + user + "  banned.#");

                                    }
                                    return;
                                }
                            }
                            else
                            {
                           
                            }


manulaiko3.0 11/14/2016 08:25

Quote:

Originally Posted by steppdroid (Post 35438612)
Hi, why with this query not upgrade the database?!

Code:

public static void BanUser(String username)
        {
            try
            {
                var sql = "INSERT INTO `bannedusers` (`Username`) VALUES ("+ username + ");";

                using (var dbClient = chatmanager.getQueryreactor())
                {
                  dbClient.query(sql);
                }
            }
            catch { }
        }

Code for bann user is:
Code:

      case "/ban":
                            if (IsAdministrator)
                            {
                                var user = message.Remove(0, 5) ;
                                foreach (var pair in Program.chatUsers)
                                {
                                    if (pair.Value.Username.ToLower() == user.ToLower())
                                    {
                                        pair.Value.Send("at%#");
                                        pair.Value._handler.Shutdown(SocketShutdown.Both);
                                        pair.Value._handler.Close();
                                        pair.Value._handler = null;
                                        Program.chatUsers.Remove(pair.Key);
                                        Program.AddLog(Username, user, "Banned client");
                                        Program.BanUser(pair.Value.Username);
                                        Program.chatUsers.Remove(pair.Key);
                                       
                                    }
                                    foreach (var usar in Program.chatUsers)
                                    {

                                        usar.Value.Send("fk%250@" + user + "  banned.#");

                                    }
                                    return;
                                }
                            }
                            else
                            {
                           
                            }


'Cuz string quotes.

MS-Colder 11/14/2016 20:43

Quote:

Originally Posted by manulaiko3.0 (Post 35120067)
We're not here to teach you programming. Just use a 6.5.3+ client.

i dont find file of this version

ItsTequila 11/14/2016 21:01

Quote:

Originally Posted by MS-Colder (Post 35447918)
i dont find file of this version

Create one yourself.

manulaiko3.0 11/15/2016 09:16

Quote:

Originally Posted by MS-Colder (Post 35447918)
i dont find file of this version

Search more, there have been various packs that contained 6.5.3 client files, alternatively you can download them from any other PS that uses it.

steppdroid 11/15/2016 13:03

I guys , i have been coded TDM event, but i haven't graphics result , because I do not know the packets tdm,i would packet tdm for final result "0|n|tdm?????" can someone help me? thank :)
srry for my bad english.

45the45 11/15/2016 20:01

576 Days Ago...


This server continue existing and in my opinion is so cool why don't try it? [Only registered and activated users can see links. Click Here To Register...]

(Eliteserver not the same as the vid)

manulaiko3.0 11/16/2016 16:42

Quote:

Originally Posted by steppdroid (Post 35450112)
I guys , i have been coded TDM event, but i haven't graphics result , because I do not know the packets tdm,i would packet tdm for final result "0|n|tdm?????" can someone help me? thank :)
srry for my bad english.

MapEventsAssembly:
Code:

public class MapEventsAssembly extends BaseAssembly
{
    //...
    private function initDelegateDict() : void
    {
        //...
        this.delegateDict[ServerCommands.TEAM_DEATHMATCH] = this.assembleTeamDeathmatch;
    }
    private function assembleTeamDeathmatch(param1:Array) : void
    {
        this.main.getTDMManager().parseCommands(param1);
    }
}

TDMManager:
Code:

package net.bigpoint.darkorbit.tdm
{
  import net.bigpoint.darkorbit.Main;
  import flash.utils.Timer;
  import flash.display.Bitmap;
  import net.bigpoint.darkorbit.gui.elements.ScoreElement;
  import com.bigpoint.utils.BPLocale;
  import net.bigpoint.darkorbit.net.ServerCommands;
  import net.bigpoint.darkorbit.gui.windows.SimpleWindow;
  import net.bigpoint.darkorbit.gui.elements.SimpleElement;
  import net.bigpoint.darkorbit.gui.container.SimpleContainer;
  import flash.events.TimerEvent;
  import net.bigpoint.darkorbit.gui.elements.InfoField;
  import com.bigpoint.utils.TimeFormatter;
  import net.bigpoint.darkorbit.ResourceManager;
  import com.bigpoint.filecollection.finish.SWFFinisher;
  import flash.display.Sprite;
  import net.bigpoint.darkorbit.ScreenManager;
  import com.greensock.TweenLite;
  import com.greensock.easing.Bounce;
  import com.greensock.easing.Expo;
  import flash.display.DisplayObject;
  import net.bigpoint.darkorbit.audio.AudioManager;
  import net.bigpoint.darkorbit.Hero;
   
  public class TDMManager
  {
       
      private var main:Main;
     
      private var tdmTimer:Timer;
     
      private var localSecsElapsed:int;
     
      private var tdmTimeInSecs:int;
     
      private var leftFactionBitmap:Bitmap;
     
      private var rightFactionBitmap:Bitmap;
     
      private var tdmCounter:net.bigpoint.darkorbit.tdm.TDMCounter;
     
      private var leftScoreElement:ScoreElement;
     
      private var rightScoreElement:ScoreElement;
     
      private var homeFactionId:int;
     
      private var guestFactionId:int;
     
      private var playersLeftHome:int;
     
      private var playersLeftGuest:int;
     
      private var tdmIntroInit:Boolean = false;
     
      public function TDMManager(param1:Main)
      {
        super();
        this.main = param1;
      }
     
      public function parseCommands(param1:Array) : void
      {
        var _loc2_:int = 0;
        var _loc3_:int = 0;
        var _loc4_:int = 0;
        var _loc5_:String = null;
        var _loc6_:String = null;
        var _loc7_:String = null;
        var _loc8_:String = null;
        var _loc9_:int = 0;
        var _loc10_:int = 0;
        var _loc11_:int = 0;
        var _loc12_:int = 0;
        var _loc13_:int = 0;
        var _loc14_:int = 0;
        var _loc15_:int = 0;
        switch(param1[3])
        {
            case ServerCommands.DRAFT:
              _loc2_ = parseInt(param1[4]);
              _loc3_ = parseInt(param1[5]);
              this.updateTDMWindow(_loc2_,_loc3_);
              if(_loc2_ == 0 && _loc3_ == -1)
              {
                  this.main.getGuiManager().writeToLog(BPLocale.getText("tdm_pull_phase_finished"));
              }
              else if(_loc2_ == 1)
              {
                  this.main.getGuiManager().writeToLog(BPLocale.getText("tdm_pull_phase"));
              }
              break;
            case ServerCommands.GAMES_COUNT:
              _loc4_ = parseInt(param1[4]);
              this.setTDMGamesCount(_loc4_);
              break;
            case ServerCommands.MESSAGE:
              _loc5_ = param1[4];
              _loc6_ = param1[5];
              _loc7_ = param1[6];
              this.main.getGuiManager().writeToLog(BPLocale.getText(_loc5_).replace(_loc6_,_loc7_));
              break;
            case ServerCommands.GATE_MAPS_MESSAGE:
              _loc8_ = param1[4];
              _loc9_ = param1[5];
              this.setTDMQueue(_loc8_,_loc9_);
              break;
            case ServerCommands.TDM_EVENT:
              switch(param1[4])
              {
                  case ServerCommands.TDM_STATS_INIT:
                    _loc10_ = param1[5];
                    _loc11_ = param1[6];
                    this.initStats(_loc10_,_loc11_);
                    break;
                  case ServerCommands.TDM_INTRO_PHASE:
                    _loc12_ = param1[5];
                    this.updateIntro(_loc12_);
                    break;
                  case ServerCommands.TDM_KICK_OFF:
                    break;
                  case ServerCommands.TDM_MATCH_RESULT:
                    _loc13_ = param1[5];
                    _loc14_ = param1[6];
                    _loc15_ = param1[7];
                    this.updateMatchResult(-1,_loc13_,_loc14_);
                    this.showResult(_loc15_);
                    break;
                  default:
                    _loc12_ = param1[4];
                    _loc13_ = param1[5];
                    _loc14_ = param1[6];
                    this.updateMatchResult(_loc12_,_loc13_,_loc14_);
              }
        }
      }
     
      private function createTDMWindow() : SimpleWindow
      {
        var _loc6_:SimpleElement = null;
        var _loc1_:int = 0;
        var _loc2_:SimpleWindow = this.main.getGuiManager().createWindow(SimpleWindow.WINDOW_CLASS_TDM);
        var _loc3_:SimpleContainer = _loc2_.getContainer(SimpleContainer.CLASS_TDM);
        var _loc4_:Array = _loc3_.getAllElements();
        var _loc5_:int = 0;
        while(_loc5_ < _loc4_.length)
        {
            _loc6_ = _loc4_[_loc5_];
            _loc6_.x = _loc1_;
            _loc1_ = _loc1_ + 60;
            _loc5_++;
        }
        return _loc2_;
      }
     
      private function setTimeInSec(param1:int) : void
      {
        this.tdmTimeInSecs = param1;
        if(this.tdmTimer != null)
        {
            this.stopTDMTimer();
        }
        this.tdmTimer = new Timer(1000,0);
        this.tdmTimer.addEventListener(TimerEvent.TIMER,this.handleTDMTimerTick);
        this.tdmTimer.start();
        this.localSecsElapsed = 1;
      }
     
      public function updateTDMWindow(param1:int, param2:int) : void
      {
        var _loc3_:SimpleWindow = this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM);
        if(_loc3_ == null)
        {
            _loc3_ = this.createTDMWindow();
        }
        var _loc4_:SimpleContainer = _loc3_.getContainer(SimpleContainer.CLASS_TDM);
        var _loc5_:SimpleElement = _loc4_.getElement(SimpleElement.TYPE_TDM_TIMER);
        var _loc6_:SimpleElement = _loc4_.getElement(SimpleElement.TYPE_TDM_GAMES);
        var _loc7_:SimpleElement = _loc4_.getElement(SimpleElement.TYPE_TDM_QUEUE);
        switch(param1)
        {
            case 0:
              InfoField(_loc5_).updateTooltip(BPLocale.getText("ttip_tdmTimer_1"));
              if(param2 == -1)
              {
                  this.stopTDMTimer();
                  this.setTDMTimer(0);
              }
              else
              {
                  this.setTimeInSec(param2);
                  this.setTDMTimer(param2);
              }
              if(this.leftScoreElement != null && this.rightScoreElement != null)
              {
                  if(Boolean(this.leftScoreElement.visible) && Boolean(this.rightScoreElement.visible))
                  {
                    this.leftScoreElement.visible = false;
                    this.rightScoreElement.visible = false;
                  }
              }
              if(!_loc6_.visible && !_loc7_.visible)
              {
                  _loc6_.visible = true;
                  _loc7_.visible = true;
              }
              break;
            case 1:
              InfoField(_loc5_).updateTooltip(BPLocale.getText("ttip_tdmTimer_2"));
              this.setTDMGamesCount(0);
              this.setTDMQueue("---",0);
              if(this.leftScoreElement != null && this.rightScoreElement != null)
              {
                  if(!this.leftScoreElement.visible && !this.rightScoreElement.visible)
                  {
                    this.leftScoreElement.visible = true;
                    this.rightScoreElement.visible = true;
                  }
              }
              if(Boolean(_loc6_.visible) && Boolean(_loc7_.visible))
              {
                  _loc6_.visible = false;
                  _loc7_.visible = false;
              }
        }
      }
     
      private function handleTDMTimerTick(param1:TimerEvent) : void
      {
        var _loc2_:int = this.tdmTimeInSecs - this.localSecsElapsed++;
        if(_loc2_ < 0)
        {
            _loc2_ = 0;
        }
        if(_loc2_ == 0 && this.tdmTimer != null)
        {
            this.stopTDMTimer();
        }
        this.setTDMTimer(_loc2_);
      }
     
      private function stopTDMTimer() : void
      {
        this.tdmTimer.stop();
        this.tdmTimer.removeEventListener(TimerEvent.TIMER,this.handleTDMTimerTick);
      }
     
      private function removeTextFieldPulse() : void
      {
        var _loc1_:SimpleWindow = this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM);
        var _loc2_:SimpleContainer = _loc1_.getContainer(SimpleContainer.CLASS_TDM);
        var _loc3_:SimpleElement = _loc2_.getElement(SimpleElement.TYPE_TDM_TIMER);
        InfoField(_loc3_).removeTextfieldPulse();
      }
     
      private function setTDMTimer(param1:int) : void
      {
        var _loc3_:SimpleContainer = null;
        var _loc4_:SimpleElement = null;
        var _loc2_:SimpleWindow = this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM);
        if(_loc2_ != null)
        {
            _loc3_ = _loc2_.getContainer(SimpleContainer.CLASS_TDM);
            _loc4_ = _loc3_.getElement(SimpleElement.TYPE_TDM_TIMER);
            if(_loc4_ != null)
            {
              InfoField(_loc4_).setLabel(TimeFormatter.formatTime(param1));
              if(param1 == 30)
              {
                  InfoField(_loc4_).setTextfieldPulse(0.5);
              }
              else if(param1 == 0)
              {
                  this.removeTextFieldPulse();
              }
            }
        }
      }
     
      public function setTDMGamesCount(param1:int) : void
      {
        var _loc3_:SimpleContainer = null;
        var _loc4_:SimpleElement = null;
        var _loc2_:SimpleWindow = this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM);
        if(_loc2_ != null)
        {
            _loc3_ = _loc2_.getContainer(SimpleContainer.CLASS_TDM);
            _loc4_ = _loc3_.getElement(SimpleElement.TYPE_TDM_GAMES);
            if(_loc4_ != null)
            {
              InfoField(_loc4_).setLabel(param1.toString());
            }
        }
      }
     
      public function setTDMQueue(param1:String, param2:int) : void
      {
        var _loc4_:SimpleContainer = null;
        var _loc5_:SimpleElement = null;
        var _loc6_:String = null;
        var _loc3_:SimpleWindow = this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM);
        if(_loc3_ != null)
        {
            _loc4_ = _loc3_.getContainer(SimpleContainer.CLASS_TDM);
            _loc5_ = _loc4_.getElement(SimpleElement.TYPE_TDM_QUEUE);
            _loc6_ = "cbInfoIcon_queue";
            switch(param2)
            {
              case 1:
                  _loc6_ = "cbInfoIcon_bad_queue";
                  break;
              case 2:
                  _loc6_ = "cbInfoIcon_normal_queue";
                  break;
              case 3:
                  _loc6_ = "cbInfoIcon_good_queue";
            }
            InfoField(_loc5_).updateIcon(ResourceManager.getBitmap("ui",_loc6_));
            InfoField(_loc5_).setLabel(param1.toString());
        }
      }
     
      public function initStats(param1:int, param2:int) : void
      {
        this.homeFactionId = param1;
        this.guestFactionId = param2;
      }
     
      public function showIntro() : void
      {
        var _loc1_:SWFFinisher = SWFFinisher(ResourceManager.fileCollection.getFinisher("ui"));
        this.leftFactionBitmap = _loc1_.getEmbededBitmap("left_" + this.homeFactionId);
        this.rightFactionBitmap = _loc1_.getEmbededBitmap("right_" + this.guestFactionId);
        var _loc2_:Sprite = this.main.screenManager.getGUILayer0();
        this.tdmCounter = new net.bigpoint.darkorbit.tdm.TDMCounter(this);
        this.leftFactionBitmap.alpha = 0;
        this.leftFactionBitmap.x = -this.leftFactionBitmap.width;
        var _loc3_:int = ScreenManager.getHalfScreenWidth() - this.leftFactionBitmap.width - this.tdmCounter.width * 0.5 + 5;
        this.leftFactionBitmap.y = ScreenManager.getHalfScreenHeight() - 235;
        this.rightFactionBitmap.alpha = 0;
        this.rightFactionBitmap.x = ScreenManager.getScreenWidth() + this.leftFactionBitmap.width - 5;
        var _loc4_:int = ScreenManager.getHalfScreenWidth() + this.tdmCounter.width * 0.5;
        this.rightFactionBitmap.y = ScreenManager.getHalfScreenHeight() - 235;
        _loc2_.addChild(this.tdmCounter);
        _loc2_.addChild(this.leftFactionBitmap);
        _loc2_.addChild(this.rightFactionBitmap);
        TweenLite.to(this.tdmCounter,1,{"alpha":1});
        TweenLite.to(this.leftFactionBitmap,1,{
            "alpha":1,
            "x":_loc3_,
            "ease":Bounce.easeOut
        });
        TweenLite.to(this.rightFactionBitmap,1,{
            "alpha":1,
            "x":_loc4_,
            "ease":Bounce.easeOut
        });
        var _loc5_:Timer = new Timer(270,1);
        _loc5_.addEventListener(TimerEvent.TIMER_COMPLETE,this.handleIntroCollisionFinish);
        _loc5_.start();
      }
     
      public function removeIntro() : void
      {
        var _loc1_:Sprite = this.main.screenManager.getGUILayer0();
        if(_loc1_.contains(this.leftFactionBitmap))
        {
            TweenLite.to(this.leftFactionBitmap,1,{
              "ease":Expo.easeOut,
              "alpha":0,
              "x":-this.leftFactionBitmap.width,
              "onComplete":this.handleIntroElementFadeOut,
              "onCompleteParams":[this.leftFactionBitmap]
            });
        }
        if(_loc1_.contains(this.rightFactionBitmap))
        {
            TweenLite.to(this.rightFactionBitmap,1,{
              "ease":Expo.easeOut,
              "alpha":0,
              "x":ScreenManager.getScreenWidth() + this.leftFactionBitmap.width - 5,
              "onComplete":this.handleIntroElementFadeOut,
              "onCompleteParams":[this.rightFactionBitmap]
            });
        }
        if(_loc1_.contains(this.tdmCounter))
        {
            TweenLite.to(this.tdmCounter,1,{
              "alpha":0,
              "onComplete":this.handleIntroElementFadeOut,
              "onCompleteParams":[this.tdmCounter]
            });
        }
      }
     
      private function handleIntroElementFadeOut(param1:DisplayObject) : void
      {
        var _loc2_:Sprite = this.main.screenManager.getGUILayer0();
        _loc2_.removeChild(param1);
        this.tdmIntroInit = false;
      }
     
      private function handleIntroCollisionFinish(param1:TimerEvent) : void
      {
        AudioManager.playSoundEffect(26);
        this.main.screenManager.shakeScreen();
      }
     
      public function updateIntro(param1:int) : void
      {
        if(this.tdmIntroInit)
        {
            return;
        }
        this.showIntro();
        this.tdmIntroInit = true;
        if(this.tdmCounter != null)
        {
            this.tdmCounter.startCounter(param1);
        }
      }
     
      public function updateMatchResult(param1:int, param2:int, param3:int) : void
      {
        var _loc4_:SimpleWindow = null;
        var _loc5_:SimpleContainer = null;
        this.playersLeftHome = param2;
        this.playersLeftGuest = param3;
        if(this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM) == null)
        {
            this.createTDMWindow();
        }
        if(this.leftScoreElement == null && this.rightScoreElement == null)
        {
            _loc4_ = this.main.getGuiManager().getWindow(SimpleWindow.WINDOW_CLASS_TDM);
            _loc5_ = _loc4_.getContainer(SimpleContainer.CLASS_TDM);
            _loc5_.getElement(SimpleElement.TYPE_TDM_GAMES).visible = false;
            _loc5_.getElement(SimpleElement.TYPE_TDM_QUEUE).visible = false;
            this.leftScoreElement = new ScoreElement(SimpleElement.TYPE_TDM_LEFT_SCORE,this.main.getGuiManager(),this.homeFactionId);
            this.leftScoreElement.x = 70;
            this.leftScoreElement.y = -5;
            this.leftScoreElement.mouseEnabled = false;
            this.rightScoreElement = new ScoreElement(SimpleElement.TYPE_TDM_RIGHT_SCORE,this.main.getGuiManager(),this.guestFactionId);
            this.rightScoreElement.x = this.leftScoreElement.x + this.leftScoreElement.getBackground().width;
            this.rightScoreElement.y = -5;
            this.rightScoreElement.mouseEnabled = false;
            _loc5_.addElement(this.leftScoreElement,SimpleContainer.NO_ALIGN);
            _loc5_.addElement(this.rightScoreElement,SimpleContainer.NO_ALIGN);
        }
        else
        {
            this.leftScoreElement.visible = true;
            this.rightScoreElement.visible = true;
        }
        this.leftScoreElement.updateScore(param2);
        this.rightScoreElement.updateScore(param3);
        this.setTDMTimer(param1);
      }
     
      public function showResult(param1:int) : void
      {
        if(param1 != -1)
        {
            switch(param1)
            {
              case 0:
                  this.main.screenManager.showBigMessage(BPLocale.getText("tdm_both_teams_lose"));
                  break;
              case 1:
                  if(Hero.factionID == this.homeFactionId)
                  {
                    this.main.screenManager.showBigMessage(BPLocale.getText("tdm_your_team_wins").replace("%COUNT%",this.playersLeftHome));
                  }
                  else
                  {
                    this.main.screenManager.showBigMessage(BPLocale.getText("tdm_your_team_loses").replace("%COUNT%",this.playersLeftGuest));
                  }
                  break;
              case 2:
                  if(Hero.factionID == this.guestFactionId)
                  {
                    this.main.screenManager.showBigMessage(BPLocale.getText("tdm_your_team_wins").replace("%COUNT%",this.playersLeftGuest));
                  }
                  else
                  {
                    this.main.screenManager.showBigMessage(BPLocale.getText("tdm_your_team_loses").replace("%COUNT%",this.playersLeftHome));
                  }
            }
        }
      }
     
      public function getMain() : Main
      {
        return this.main;
      }
     
      public function cleanUp() : void
      {
        if(this.tdmTimer != null)
        {
            this.stopTDMTimer();
        }
      }
  }
}

Start by the parseCommands method which accepts as parameter the packet.

darkli 11/20/2016 02:34

Hello to all !
Excuse my English but I'm French ^^

Picture: [IMG=expandable: 1]http://i.imgur.com/W16Uq73.png[/IMG]

I would need a little help for my private server. I set up my server about 1 week ago, all well I know how to play on the map .. But one day
To the other without understanding for what, I am blocked when connecting to the map, the loading has no end ... I read on the forum to configure the file "map.php", I
I put my address address lan, I also opened port 8080 on my router. During an attempted connection, my emulator tells me that I am
Connected to the server .. My emulator is pachequiin, I have windows 10, can you help me on this problem please?

YURI-ELIADE.ITALY 11/20/2016 18:30

Quote:

Originally Posted by darkli (Post 35469269)
Hello to all !
Excuse my English but I'm French ^^

Picture: [IMG=expandable: 1]http://i.imgur.com/W16Uq73.png[/IMG]

I would need a little help for my private server. I set up my server about 1 week ago, all well I know how to play on the map .. But one day
To the other without understanding for what, I am blocked when connecting to the map, the loading has no end ... I read on the forum to configure the file "map.php", I
I put my address address lan, I also opened port 8080 on my router. During an attempted connection, my emulator tells me that I am
Connected to the server .. My emulator is pachequiin, I have windows 10, can you help me on this problem please?

hello because the emulator also happened to me in your case you should set on the PM and change the date from 20/11/2016 to 11.20.2016 and you'll see that will start emulator I did not understand why it works just as well but you will see that will work:handsdown::handsdown:

darkli 11/21/2016 10:56

Hello YURI-ELIADE.ITALY!

It worked ! Thanks a lot for your help!

steppdroid 11/21/2016 12:33

Hi guys , i write the code for radiation, but the ship go in negative hp!!! Why?!?!? :confused:

Code:

if (_user.Ship.Radiation && _user.Ship.Hp > 1)
                {

                    if (_user.Ship.Hp - 20000 < 1 || _user.Ship.Hp < 0)
                    {
                        _user.Ship.Hp = 0;
                       
                        foreach (var ship in Program.GameManager.Users.Values)
                        {
                            ship.Send("0|K|" + _userId);
                            ship.Send("0|A|STD|You've been destroyed by Radiation!");
                        }
                        Program.GameManager.Users.Remove(_userId);
                        _user.DiscconectUser(1);
                   

                    }
                    else
                    {
                        _user.Ship.Hp -= 20000;
                    }
                   
                    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");               
                    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
                             
                    await Task.Delay(2000);
                }


Requi 11/23/2016 03:17

Quote:

Originally Posted by steppdroid (Post 35473710)
Hi guys , i write the code for radiation, but the ship go in negative hp!!! Why?!?!? :confused:

Code:

if (_user.Ship.Radiation && _user.Ship.Hp > 1)
                {

                    if (_user.Ship.Hp - 20000 < 1 || _user.Ship.Hp < 0)
                    {
                        _user.Ship.Hp = 0;
                       
                        foreach (var ship in Program.GameManager.Users.Values)
                        {
                            ship.Send("0|K|" + _userId);
                            ship.Send("0|A|STD|You've been destroyed by Radiation!");
                        }
                        Program.GameManager.Users.Remove(_userId);
                        _user.DiscconectUser(1);
                   

                    }
                    else
                    {
                        _user.Ship.Hp -= 20000;
                    }
                   
                    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");               
                    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
                             
                    await Task.Delay(2000);
                }


Code:

var ship => _user.Ship;
var manager => Program.GameManager;
if(ship.Radiation /*InRadiation would be a better name*/ && ship.Hp > 0 /*Health would be a better name*/)
{
        ship.Hp -= 20000;
        if(ship.Hp < 1) /*Other check redundant as checking for above 1 before means it can't be below 0*/
        {
                ship.Hp = 0;
               
                foreach(var user in manager.Users.Values) /*They are users. Not ships.*/
                        user.Send("0|K|" + _userId);
               
                /*What the hell is that for loop? Do you want to tell every user they've been destroyed?!*/
                ship.Send("0|A|STD|You've been destroyed by the radiation zone!");
                manager.Users.Remove(_userId);
                _user.Disconnect(1); /*Spelling hard, yes?*/
               
        }
       
        _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + ship.Hp + "|" + ship.Config.Shield + "|20000|100|100");
        _user.Send("0|A|HPT|" + ship.Hp + "|" + ship.MaxHp + "|" + _userId);
       
        await Task.Delay(2000);
}

I REALLY need to make a good server example. This is horrible.

I don't know anymore what parameter does what, but wasn't Y the laser shot? I don't know. But this should be fine if your packets are correct.

AND GUYS. C# 6.0 FFS!

manulaiko3.0 11/24/2016 10:50

Quote:

Originally Posted by steppdroid (Post 35473710)
Hi guys , i write the code for radiation, but the ship go in negative hp!!! Why?!?!? :confused:

Code:

if (_user.Ship.Radiation && _user.Ship.Hp > 1)
                {

                    if (_user.Ship.Hp - 20000 < 1 || _user.Ship.Hp < 0)
                    {
                        _user.Ship.Hp = 0;
                       
                        foreach (var ship in Program.GameManager.Users.Values)
                        {
                            ship.Send("0|K|" + _userId);
                            ship.Send("0|A|STD|You've been destroyed by Radiation!");
                        }
                        Program.GameManager.Users.Remove(_userId);
                        _user.DiscconectUser(1);
                   

                    }
                    else
                    {
                        _user.Ship.Hp -= 20000;
                    }
                   
                    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");               
                    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
                             
                    await Task.Delay(2000);
                }


Do something like
Code:

while(_user.isAlive()) {
    _user.Ship.Hp -= 20000;
    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" +  _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");
    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
    await Task.Delay(2000);
}
_user.destroy();

Obviusly, you'll have to implement isAlive and destroy methods.

steppdroid 11/24/2016 11:58

Quote:

Originally Posted by manulaiko3.0 (Post 35484210)
Do something like
Code:

while(_user.isAlive()) {
    _user.Ship.Hp -= 20000;
    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" +  _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");
    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
    await Task.Delay(2000);
}
_user.destroy();

Obviusly, you'll have to implement isAlive and destroy methods.

Hi,Thanks for your advice, but unfortunately I still have the same problem!!! locally(locahost) is working well, but loaded on the server, the life of the ships going in reverse! :confused::confused:

Requi 11/24/2016 12:36

Quote:

Originally Posted by steppdroid (Post 35484375)
Hi,Thanks for your advice, but unfortunately I still have the same problem!!! locally(locahost) is working well, but loaded on the server, the life of the ships going in reverse! :confused::confused:

Then debug it. Make a program to check which packets the client actually receives.

steppdroid 11/24/2016 16:23

Hi, I would be interested in buying an old client based server 2008, does anyone have it? Thank you.

lollo900 11/26/2016 20:03

Is there someone selling complete and fixed files for creating an own server? I have a VPS and I would like to use it for a DO Private server :)

porra123456 12/09/2016 03:43

who can send source of last version before 3D d.o

nykomc 12/11/2016 07:51

Hi all.
Please help.How to add new ships in my CMS.Where i change CMS?How ro add extra slot for goly example 20 laser slot?

stars093 12/13/2016 05:41

Hello everyone I have the emulator spacebattle anyone knows where can I get me diri DB and CMS ??

YURI-ELIADE.ITALY 12/16/2016 20:27

epvp
 
Quote:

Originally Posted by stars093 (Post 35543075)
Hello everyone I have the emulator spacebattle anyone knows where can I get me diri DB and CMS ??

hello better if you buy one in the frame and the spacebattle simulator you put in and you look at what is the worst server I've ever seen the best pvp server 2003 version etc. will now suno makes them always make the latest versions and people get tired and closing off them for lack of players :D

mann77 12/17/2016 18:21

I have a "little" issue. Part of it is my fault, and is a lesson WELL learnt.

I've been all over these forums, looking for a DO Private server. I managed to get a couple working, but no NPCs. I seem to always get the same error also. Doesnt matter what repack i download, i get a xajax error, trying to get info from bigpoints website. I can only assume it is for graphic reasons (looking at the php files, calling image src)

So, i figured since most repacks were from 2013, alot has change since then.

Heres my mistake, I google "DO private server 2016" Stumbled on this youtube video done by Angels vs Royals, or seriosdark. Had to contact him for files. He wanted $$. He Showed me a test server, seemed very nice. so i offered less and he accepted. Which was reasonable. He sent me the CMS and SQL, Turns out, no emulator. so i scounge the net for seriousdark emulator. Thats when i realize, hes been banned here. Second, threads about that emulator has keyloggers. Now im out a few bucks and glad i didnt get the emu now lol.

So go ahead, get a laugh in.... I deserve that lol

So heres my question

I downloaded every repack in this thread, and many others (that the links were there).

Which one would you forum vets recommend i go with. I would like a pve server.
For the record, Im not asking for anyone to help me code stuff, i just need advice on which one i should use to begin with. ( i hate to spend weeks trying to fix one tht simply isnt worth it lol ) And this server will most like not go public, only for a few friends that want to bring back memories.

Thanks for reading, and hope you had a good laugh!

Mann

0wnix 12/19/2016 01:40

Anyone working on a python server atm?

YURI-ELIADE.ITALY 12/19/2016 20:51

Please, I need the laser package old

manulaiko3.0 12/19/2016 20:59

Quote:

Originally Posted by YURI-ELIADE.ITALY (Post 35562823)
Please, I need the laser package old

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

olitis1 12/20/2016 20:33

Do you know why background is white out of bounds?

I'm using client version 1.6.3.17

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

ItsTequila 12/21/2016 15:26

Quote:

Originally Posted by olitis1 (Post 35565660)
Do you know why background is white out of bounds?

I'm using client version 1.6.3.17

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

Looks like something is wrong with the resources.
Check your swfs

olitis1 12/21/2016 16:09

Quote:

Originally Posted by NUMANDERBUHMAN (Post 35567946)
Looks like something is wrong with the resources.
Check your swfs

It was the flash player, I reinstalled it and it works now, thanks!

Between, does anyone have sound's files of the old client (2008)?

YURI-ELIADE.ITALY 12/21/2016 19:55

hi i am working on my server from 8 put and I think I'm doing a good job on it but I saw that some PvP servers also have the GGs portals someone would be so kind to give me the link to download the package

manulaiko3.0 12/21/2016 21:13

Quote:

Originally Posted by YURI-ELIADE.ITALY (Post 35568903)
hi i am working on my server from 8 put and I think I'm doing a good job on it but I saw that some PvP servers also have the GGs portals someone would be so kind to give me the link to download the package

Keep doing a good job and code it yourself as the other PvP servers did.

There are no public package with GG atm

YURI-ELIADE.ITALY 12/22/2016 12:49

Quote:

Originally Posted by manulaiko3.0 (Post 35569210)
Keep doing a good job and code it yourself as the other PvP servers did.

There are no public package with GG atm

the server I'm doing and I do not like any other I think I do a good job for it I redesigned new ships and new NPC but I still miss a lot of things for my idea before making it public want asicurarmi that all is well and that everything works to the best :handsdown: :handsdown: :handsdown:

manulaiko3.0 12/23/2016 20:24

Does anyone wants to work on a private server? It's pretty boring doing one alone.

The CMS will be in PHP 7.0 on top of [Only registered and activated users can see links. Click Here To Register...] and the emulator on Jabba.

If anyone is interested, ping me on the discord server.

Darker365 12/24/2016 23:18

Quote:

Originally Posted by olitis1 (Post 35568094)
Between, does anyone have sound's files of the old client (2008)?

Are you working on the old client server ?

olitis1 12/25/2016 18:50

Quote:

Originally Posted by Darker365 (Post 35579133)
Are you working on the old client server ?

No, I've just remembered why I left working on it, it has too many bugs.

Moonsteroid 12/27/2016 12:27

Quote:

Originally Posted by player.elite (Post 35560557)
Anyone working on a python server atm?

Would be nice to have one :D

-Real- 12/29/2016 05:22

Hello!

I am looking for some help. I need a designer to make a design for P-Server Project i have in mind. If you think your up for the challenge PM me and we can talk. Anyways Hi Epvp!!!


Best Regards,
Real

MS-Colder 12/30/2016 22:27

Quote:

Originally Posted by YURI-ELIADE.ITALY (Post 35471516)
hello because the emulator also happened to me in your case you should set on the PM and change the date from 20/11/2016 to 11.20.2016 and you'll see that will start emulator I did not understand why it works just as well but you will see that will work:handsdown::handsdown:

20 november 2016 dont work

YURI-ELIADE.ITALY 12/30/2016 23:47

Quote:

Originally Posted by MS-Colder (Post 35597400)
20 november 2016 dont work

impost 12/30/2016 2.47PM:handsdown::handsdown:


All times are GMT +2. The time now is 23:29.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.