Registruotis    Prisijungti    Forumas    Ieškoti    DUK




Parduodu Scoria v4 source code

skelbiami pardavimai serverių failai, gidai, servai ir t.t....

Parduodu Scoria v4 source code

Standartinė lin2eden » Liepa 28th, 2011, 9:22 pm

Taigi parduodu source code, Scoriau v4u7, source yra ne fake, skai keleta irodymu:
Kodas: Pasirinkti visus
package com.l2scoria.gameserver.thread.daemons;

import java.util.logging.Logger;

import com.l2scoria.Config;
import com.l2scoria.gameserver.model.L2World;
import com.l2scoria.gameserver.model.actor.instance.L2PcInstance;
import com.l2scoria.gameserver.network.SystemMessageId;
import com.l2scoria.gameserver.network.serverpackets.SystemMessage;
import com.l2scoria.gameserver.network.serverpackets.ExPCCafePointInfo;

/**
 *
 * @author zenn
 */
public class ServerOnline implements Runnable
{
   Logger _log = Logger.getLogger(ServerOnline.class.getName());
   private static ServerOnline _instance;
   private int _online = 0;

   public static ServerOnline getInstance()
   {
      if(_instance == null)
      {
         _instance = new ServerOnline();
      }

      return _instance;
   }

   private ServerOnline()
   {
      _log.info("Server Online Deamon is runned...");
   }

   private void setOnline(L2PcInstance activeChar, int pconline, int online, boolean add)
   {
      activeChar.sendPacket(new ExPCCafePointInfo(pconline, online, add, 24, false));
   }

   @Override
   public void run()
   {
      if(Config.PCB_ENABLE)
      {
         _log.info("Online window doesn`t support where PC bang is ENABLED!!!");
         return;
      }

      int real = L2World.getInstance().getAllPlayers().size();
      int fake = (real*Config.PCB_LIKE_WINDOW_INCREASE_RATE)/100;
      int nonline = fake + real;

      for(L2PcInstance activeChar: L2World.getInstance().getAllPlayers())
      {
         if(_online == 0)
         {
            setOnline(activeChar, nonline, 0, false);
         }
         else
         {
            if(_online != nonline)
            {
               int sub = nonline - _online;
               if (sub < 0)
               {
                  setOnline(activeChar, nonline, sub, false);
               }
               else
               {
                  setOnline(activeChar, nonline, sub, true);
               }
            }
         }
      }
      _online = nonline;
   }
}


Dar vienas:

Kodas: Pasirinkti visus
/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.l2scoria.gameserver.handler.voicedcommandhandlers;

import com.l2scoria.Config;
import com.l2scoria.gameserver.handler.IVoicedCommandHandler;
import com.l2scoria.gameserver.model.actor.instance.L2PcInstance;
import com.l2scoria.gameserver.network.serverpackets.NpcHtmlMessage;

 /**
  * Author: m095, DedMoroz
  * EmuRT DevTeam, Scoria
  **/

public class Configurator implements IVoicedCommandHandler
{
   private static final String[] VOICED_COMMANDS =
   {
      "menu",
      "autoloot",
      "autolearnskills",
      "setxprate"
   };
   
   public boolean useVoicedCommand(String command, L2PcInstance activeChar, String text)
   {
      if (activeChar.isInOlympiadMode() || activeChar.isInCombat())
      {
         activeChar.sendMessage("You cant use it right now.");
         return true;
      }

      if (command.startsWith("menu") && Config.ALLOW_SHOW_MENU)
      {
         showMainPage(activeChar);
         return true;
      }
      else if (command.startsWith("autoloot"))
      {
         if (!Config.ALLOW_SET_AUTOLOOT)
         {
            activeChar.sendMessage("Current option is not enabled.");
            return true;
         }

         if (activeChar.getAutoLoot())
         {
            activeChar.setAutoLoot(false);
            activeChar.sendMessage("Auto loot: off");
         }
         else
         {
            activeChar.setAutoLoot(true);
            activeChar.sendMessage("Auto loot: on");
         }
         return true;
      }
      else if (command.startsWith("autolearnskills"))
      {
         if (!Config.ALLOW_SET_AUTOLEARNSKILL)
         {
            activeChar.sendMessage("Current option is not enabled.");
            return true;
         }

         if (activeChar.getAutoLearnSkill())
         {
            activeChar.setAutoLearnSkill(false);
            activeChar.sendMessage("Auto learn skill: off");
         }
         else
         {
            activeChar.setAutoLearnSkill(true);
            activeChar.sendMessage("Auto learn skill: on");
         }
         return true;
      }
      else if (command.startsWith("setxprate"))
      {
         if (!Config.ALLOW_SET_XP_RATE)
         {
            activeChar.sendMessage("Current option is not enabled.");
            return true;
         }

         try
         {
            float rate = Float.parseFloat(text);
            if (rate > Config.RATE_XP)
            {
               activeChar.sendMessage("Value is to high, max is: " + Config.RATE_XP);
               return true;
            }
            else if (rate < 0)
            {
               activeChar.sendMessage("Value is to low, min is: 0.0");
               return true;
            }
            activeChar.setXpRate(rate);
            activeChar.sendMessage("XP rate set to: " + rate);
         }
         catch (Exception e)
         {
            activeChar.sendMessage("Usage: .setxprate [value from 0.0 to " + Config.RATE_XP + "]");
         }

         return true;
      }
      return false;
   }

   private String getLootMode(L2PcInstance activeChar)
   {
      String result = "<font color=FF0000>OFF</font>";
      if (activeChar.getAutoLoot())
         result = "<font color=00FF00>ON</font>";
      return result;
   }

   private String getAutoLearnMode(L2PcInstance activeChar)
   {
      String result = "<font color=FF0000>OFF</font>";
      if (activeChar.getAutoLearnSkill())
         result = "<font color=00FF00>ON</font>";
      return result;
   }
   
   private String getExpRate(L2PcInstance activeChar)
   {
      if(activeChar.isDonator())
         return "<font color=FF8000>" + activeChar.getXpRate() * Config.DONATOR_XPSP_RATE + "</font>";
      else
         return "<font color=00FF00>" + activeChar.getXpRate() + "</font>";
   }

   private void showMainPage(L2PcInstance activeChar)
   {
      NpcHtmlMessage html = new NpcHtmlMessage(activeChar.getObjectId());
      html.setFile("data/html/custom/menu.htm");
      html.replace("%xprate%", getExpRate(activeChar));
      html.replace("%autoloot%", getLootMode(activeChar));
      html.replace("%learnskills%", getAutoLearnMode(activeChar));
      activeChar.sendPacket(html);   
   }

   public String[] getVoicedCommandList()
   {
      return VOICED_COMMANDS;
   }
}


Screen:
http://gyazo.com/28ba5a51655271753428cd60f934d4d9.png
http://gyazo.com/41109c89de91eccab2a076e007b7679f.png

Dar tema cs-la2 kur patvirtino kai tai yra tikri zenn:
http://forum.cs-la2.ru/index.php?topic=13020.0

Kaina: 500lt (Atsiskaitymas banku, arba paypal, webmoney)
Jokiu apgavysciu, gaunu pinigus issiunciu jums visa archyva.
Kontaktai:
Skype: dzinia4340
ICQ: 558232765
Laukiu tik rimtu pirkeju.
Jeigu pinigai bus siunciami is swed,seb,danske banku, tai source pas jus bus po ~10-15min, is kitu banku uztruks apie 1-2 darbo dienas.
lin2eden
Naujokas
Naujokas
 
Pranešimai: 8
Užsiregistravo: Liepa 8th, 2011, 7:04 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

поиск партнера с сетью дропов

Standartinė Serega ZepT » Vasaris 7th, 2012, 9:43 pm

поиск партнера с сетью дропов

товар недешевый и специфичный

л.с. не читаю, пишите строго джаббер [email protected]
Vartotojo avataras
Serega ZepT
Naujokas
Naujokas
 
Pranešimai: 1
Užsiregistravo: Sausis 31st, 2012, 6:27 am
Karma:
Karma:
Increase user’s karma Decrease user’s karma


Grįžti į Parduodu

Dabar prisijungę

Vartotojai naršantys šį forumą: Registruotų vartotojų nėra ir 1 svečias