MaxCheaters.com
September 03, 2010, 07:55:41 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search

MaxCheaters.com Staff + Info Inside
Join Now!
Pages: [1] 2 3 ... 6
Print
Author Topic:  [Share] Death Match!!! and more!!!  (Read 6477 times)
0 Members and 1 Guest are viewing this topic.
Kabamaru®
VIP Member
Max Cheater
*****

Karma: 5
Offline Offline

China China

Posts: 621
Adenas: 425.00

View Inventory
Send Money to Kabamaru®

I play my enemies like a game of chess


« on: September 24, 2009, 12:51:59 AM »

[Hidden post: You need 5 posts or become a VIP or Donator member to see it. You currently have 0.]
« Last Edit: December 28, 2009, 12:35:32 PM by Osiris® » Logged

I'm An Iga Ninja And My Name Is....
Kabamaru Iga-No®
Sheepy
Rookie Cheater
*

Karma: 0
Offline Offline

Posts: 27
Adenas: 0.00

View Inventory
Send Money to Sheepy

« Reply #1 on: September 24, 2009, 01:43:46 AM »

Oo nice share bro very good work im gonna try it
Logged
Join Now!
Kabamaru®
VIP Member
Max Cheater
*****

Karma: 5
Offline Offline

China China

Posts: 621
Adenas: 425.00

View Inventory
Send Money to Kabamaru®

I play my enemies like a game of chess


« Reply #2 on: September 25, 2009, 01:01:16 AM »

well thanks for appriciating mostly leeroy's and drhouse's work Tongue i just change some things btw Tongue anyway thanks
Logged

I'm An Iga Ninja And My Name Is....
Kabamaru Iga-No®
®ৠ♪Ŋαķαмοūŗα♪ৠ®
NakaDaKinkyFreak
VIP Member
Premier Cheater
*****

Karma: 2
Offline Offline

Japan Japan

Posts: 312
Adenas: 293.00

View Inventory
Send Money to ®ৠ♪Ŋαķαмοūŗα♪ৠ®

NakaDaKinkyFreak


« Reply #3 on: September 25, 2009, 01:01:09 PM »

+1 For You Guide Mate  Cheesy
Test It And It Fully Working  Cheesy
@Offtopic [Gr]Gratz Kefte!!
« Last Edit: September 25, 2009, 01:05:03 PM by ®ৠ♪Ŋαķαмοūŗα♪ৠ® » Logged

Kabamaru®
VIP Member
Max Cheater
*****

Karma: 5
Offline Offline

China China

Posts: 621
Adenas: 425.00

View Inventory
Send Money to Kabamaru®

I play my enemies like a game of chess


« Reply #4 on: September 25, 2009, 01:03:45 PM »

+1 For You Guide Mate Cheesy
Test It And It Fully Working Cheesy
@Offtopic [Gr]Gratz Kefte!!
olalala thanks dude i like when someone appriciate the great and hard work Wink
[gr] e ti na kanoume afou exoume mia alfa team xa0xa00
Logged

I'm An Iga Ninja And My Name Is....
Kabamaru Iga-No®
Join Now!
kali
Maximum Cheater
***

Karma: 6
Offline Offline

Russian Federation Russian Federation

Posts: 767
Adenas: 4520.00

View Inventory
Send Money to kali

development server gracia final, gracia plus, Frey


« Reply #5 on: September 27, 2009, 01:21:28 PM »

Made a lot, thanks to the author for it.
Logged

Development Server Lineage 2 Gracia Final, Gracia plus, Freya, Battles for Glory episode 3, Aion and others.
Nefer
Rookie Cheater
*

Karma: 0
Offline Offline

Italy Italy

Posts: 35
Adenas: 0.00

View Inventory
Send Money to Nefer

L2 Java Developer


« Reply #6 on: September 27, 2009, 01:38:58 PM »

Thank! I test it.

Can anyone say as it work?


All vs all? And does the last win?
« Last Edit: September 27, 2009, 01:48:55 PM by Nefer » Logged
Kabamaru®
VIP Member
Max Cheater
*****

Karma: 5
Offline Offline

China China

Posts: 621
Adenas: 425.00

View Inventory
Send Money to Kabamaru®

I play my enemies like a game of chess


« Reply #7 on: September 27, 2009, 02:08:53 PM »

Made a lot, thanks to the author for it.
Thank! I test it.

Can anyone say as it work?


All vs all? And does the last win?
btw it was hard to create a DM from the begin but DrHouse the legendary developer fixed it Smiley i put only some coordinations and some prizes btw
the DM event work and it's automatically
btw hf and thanks Wink
Logged

I'm An Iga Ninja And My Name Is....
Kabamaru Iga-No®
Nefer
Rookie Cheater
*

Karma: 0
Offline Offline

Italy Italy

Posts: 35
Adenas: 0.00

View Inventory
Send Money to Nefer

L2 Java Developer


« Reply #8 on: September 27, 2009, 02:19:39 PM »

oh yes, now i red the codes:

This all config.

#
        private static final int MAX_PLAYERS = 50;
#
        private static final int X = -250403; // HERE ok
#
        private static final int Y = 208464;
#
        private static final int Z = -11957;
#
        private static final int EVENT_DURATION = 6; // minutes
#
        private static final int INITIAL_DELAY = 2; // minutes
#
        private static final int PERIOD_BETWEEN_EVENTS = 110; // minutes
#
        private static final int[] ON_KILL_REWARD = {10639,2};
#
        private static final int[] WINNER_REWARD = {10639,50}; // REWARDS
#
       
Logged
SirDarkAngel
Little Cheater
**

Karma: 0
Offline Offline

Posts: 68
Adenas: 0.00

View Inventory
Send Money to SirDarkAngel

I walk a lonely path...


« Reply #9 on: September 27, 2009, 04:04:06 PM »

Thanks to all who worked to this Tongue.
Logged

 *Link Removed*
Join Now!
Kabamaru®
VIP Member
Max Cheater
*****

Karma: 5
Offline Offline

China China

Posts: 621
Adenas: 425.00

View Inventory
Send Money to Kabamaru®

I play my enemies like a game of chess


« Reply #10 on: September 27, 2009, 04:52:38 PM »

oh yes, now i red the codes:

This all config.

#
        private static final int MAX_PLAYERS = 50;
#
        private static final int X = -250403; // HERE ok
#
        private static final int Y = 208464;
#
        private static final int Z = -11957;
#
        private static final int EVENT_DURATION = 6; // minutes
#
        private static final int INITIAL_DELAY = 2; // minutes
#
        private static final int PERIOD_BETWEEN_EVENTS = 110; // minutes
#
        private static final int[] ON_KILL_REWARD = {10639,2};
#
        private static final int[] WINNER_REWARD = {10639,50}; // REWARDS
#
       
Wink
Thanks to all who worked to this Tongue.
thanks for appriciating the hard worl Smiley
Logged

I'm An Iga Ninja And My Name Is....
Kabamaru Iga-No®
xDunno
Supreme Cheater
***

Karma: 0
Offline Offline

Lithuania Lithuania

Posts: 584
Adenas: 741.00

View Inventory
Send Money to xDunno

Searching l2j project


« Reply #11 on: September 28, 2009, 01:38:41 AM »

+Leeching my share and re-share it or spam in my topic i will dekarma this guy without a warning cya

Well dude us you tell people u will give dekarma for spamiing but like i see u are spammer at ur own topic lol 1 reply u etc... btw its only my opinion...

Btw its realy nc share Smiley
« Last Edit: September 28, 2009, 01:40:21 AM by xDunno » Logged



L2 Is Failed Game But When U Start U Cant Stop...
Nefer
Rookie Cheater
*

Karma: 0
Offline Offline

Italy Italy

Posts: 35
Adenas: 0.00

View Inventory
Send Money to Nefer

L2 Java Developer


« Reply #12 on: September 28, 2009, 02:19:24 AM »

For the boys that have L2PcInstance with somw modifyes, this is the change:

Code:

import net.sf.l2j.gameserver.util.Util;
import net.sf.l2j.util.Point3D;
import net.sf.l2j.util.Rnd;
import net.sf.l2j.gameserver.util.Broadcast;
+import net.sf.l2j.gameserver.events.DeathMatch;


Code:

public final class L2PcInstance extends L2Playable
{

+  // DEATH MATCH
+        public volatile boolean OnDeathMatch = false;
+        public int  DeathMatchCount = 0;




Code:

+          if (targetPlayer.OnDeathMatch && this.OnDeathMatch)
+                    {
+                        increasePvpKills();
+                    }
         
  // 'No war' or 'One way war' -> 'Normal PK'
  if (targetPlayer.getKarma() > 0)                                        // Target player has karma

{







Code:

    // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter

        sendPacket(new UserInfo(this));

        sendPacket(new ExBrExtraUserInfo(this));

       
+        if (this.OnDeathMatch){
+                this.DeathMatchCount++;
+               DeathMatch.onKill(this);







Code:

@Override

        public final void stopAllEffects()
  {

super.stopAllEffects();
 updateAndBroadcastStatus(2);
 
  }

 
+       @Override
+       public final void stopAllEffectsExceptThoseThatLastThroughDeath()
+       {
+              if (this.OnDeathMatch)
+                      return;
+             super.stopAllEffectsExceptThoseThatLastThroughDeath();
+             updateAndBroadcastStatus(2);

        }
Logged
Nik
Senior Cheater
**

Karma: 3
Offline Offline

Posts: 221
Adenas: 126.00

View Inventory
Send Money to Nik

« Reply #13 on: September 28, 2009, 03:38:24 AM »

mmm qute messy -.- patch file would've been better Smiley
Logged

Oldskool lazy developer ^^
Nefer
Rookie Cheater
*

Karma: 0
Offline Offline

Italy Italy

Posts: 35
Adenas: 0.00

View Inventory
Send Money to Nefer

L2 Java Developer


« Reply #14 on: September 28, 2009, 03:48:52 AM »

Is it possible to set ip restrinction?

http://www.l2jserver.com/old-forum/thread.php?threadid=31328&hilight=dualbox+tvt

I tried but i don't know if this works.

Quote
package net.sf.l2j.gameserver.events;

import javolution.util.FastSet;
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.Announcements;
import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.datatables.MapRegionTable.TeleportWhereType;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.entity.TvTEvent;
import net.sf.l2j.gameserver.model.entity.TvTEventIPs;

/**
 *
 * @author  DrHouse
 */
public class DeathMatch extends Thread
{
   private static boolean _scheduled = false;
   private static volatile Status _status = Status.SLEEPING;
   
   private static final FastSet<L2PcInstance> _players = new FastSet<L2PcInstance>();
   private static final DeathMatch _instance = new DeathMatch();
   
   private static TvTEventIPs _participantsIPs;

   
   // config values
   private static final int MAX_PLAYERS = 100;
   private static final int X = -250403; // HERE ok
   private static final int Y = 208464;
   private static final int Z = -11957;
   private static final int EVENT_DURATION = 6; // minutes
   private static final int INITIAL_DELAY = 190000; // minutes
   private static final int PERIOD_BETWEEN_EVENTS = 190000; // minutes
   private static final int[] ON_KILL_REWARD = {57,5000};
   private static final int[] WINNER_REWARD = {57,1000000}; // REWARDS
   
   public static enum Status
   {
      SLEEPING,
      REGISTERING,
      TELEPORTING,
      RUNNING,
      REWARDING
   }
   
   public static void pulse()
   {
      _instance.notifyAll();
   }
   
   public void run()
   {
      synchronized (this)
      {
         if (_status != Status.SLEEPING)
            return;
         
         if (TvTEvent.isStarting() || TvTEvent.isStarted())
         {
            try
            {
               wait(Config.TVT_EVENT_RUNNING_TIME*60*1000);
            }
            catch (InterruptedException e)
            {}
         }
         _status = Status.REGISTERING;
      }
      
      Announcements.getInstance().announceToAll("   Wellcome to    ");
      Announcements.getInstance().announceToAll(" ");
      Announcements.getInstance().announceToAll("DEATH MATCH EVENT");
      Announcements.getInstance().announceToAll("------------------");
      Announcements.getInstance().announceToAll(" ");
      Announcements.getInstance().announceToAll("3 minutes left until registration period ends");
      Announcements.getInstance().announceToAll("Use .dmjoin to set your request Wink");
      
      try{
         Thread.sleep(120*1000);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      Announcements.getInstance().announceToAll("DM: Just 60 secs left!");
      
      try{
         Thread.sleep(45*1000);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      Announcements.getInstance().announceToAll("DM: Just 15 secs left!");
      
      try{
         Thread.sleep(15*1000);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      Announcements.getInstance().announceToAll("DM: Registration period is over. Get ready for the event!");
      
      _status = Status.TELEPORTING;
      
      try{
         Thread.sleep(5*1000);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      synchronized (_players) // against removing onlogout players etc
      {
         for (L2PcInstance player : _players)
         {
            //add reset to deaths flag
            //set status flag to true
            player.DeathMatchCount = 0;
            player.OnDeathMatch = true;
            player.teleToLocation(X, Y, Z, true);
            player.sendMessage("Teleporting, event will start in 10 seconds");
         }
      }
      
      try{
         Thread.sleep(5*1000);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      Announcements.getInstance().announceToAll("DM: 5 seconds");
      
      for (int i = 5; i > 0; i--)
      {
         Announcements.getInstance().announceToAll("DM: "+i+" seconds");
         
         try{
            Thread.sleep(1*1000);
         }
         catch (Exception e){
            e.printStackTrace();
         }
      }
      
      Announcements.getInstance().announceToAll("DM: GOOOOO!");
      
      _status = Status.RUNNING;
      
      try{
         Thread.sleep(EVENT_DURATION*60*950);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      Announcements.getInstance().announceToAll("DM: Event is about to finalize");
      
      try{
         Thread.sleep(EVENT_DURATION*60*50);
      }
      catch (Exception e){
         e.printStackTrace();
      }
      
      _status = Status.REWARDING;
      Announcements.getInstance().announceToAll("DM: Event Finalized");
      
      L2PcInstance winner = null;
      
      synchronized (_players) // against removing onlogout players etc
      {
         for (L2PcInstance player : _players)
         {
            player.teleToLocation(TeleportWhereType.Town);
            _participantsIPs.clear();
            player.OnDeathMatch = false;
            player.sendMessage("Event is done");
            
            //calculate winner
            if (winner == null)
               winner = player;
            else if (winner.DeathMatchCount < player.DeathMatchCount)
               winner = player;
         }
      }
      
      if (winner != null && winner.isOnline() == 1)
      {
         Announcements.getInstance().announceToAll(winner.getName()+" won event killing you "+winner.DeathMatchCount+" times;");
         winner.addItem("DEATHMATCHWINNER", WINNER_REWARD[0], WINNER_REWARD[1], null, true);
      }
      else
         Announcements.getInstance().announceToAll("Event ended with no winner Sad");
      
      _status = Status.SLEEPING;
   }
   
   public static boolean registerPlayer(L2PcInstance player)
   {
      if (player == null)
         return false;
      
      if (!_participantsIPs.checkAndAddPlayer(player))
         {
         player.sendMessage("DeathMatch: Only one participant per IP address allowed!");
         return false;
          }


      
      
      if (_status != Status.REGISTERING)
         return false;
      
      synchronized (_players)
      {
         if (_players.size() >= DeathMatch.MAX_PLAYERS)
            return false;
         
          _players.add(player);
          _participantsIPs.clear();
         _participantsIPs.removePlayer(player);
            return true;


         

      }
   }
   
   public static boolean onLogout(L2PcInstance player)
   {
      if (player == null)
         return false;
      
      player.DeathMatchCount = 0;
      player.OnDeathMatch = false;
      
      synchronized (_players)
      {
         _players.remove(player);
          _participantsIPs.clear();
         return true;

      }
   }
   
   public static void onKill(L2PcInstance player)
   {
      if (isRunning())
         player.addItem("DEATH MATCH", ON_KILL_REWARD[0], ON_KILL_REWARD[1], null, true);
   }
   
   public static boolean isRunning()
   {
      return (_status == Status.RUNNING);
   }
   
   public static void startEvent()
   {
      new Thread(_instance).start();
      _participantsIPs = new TvTEventIPs();

   }
   
   public static boolean stopEvent()
   {
      if (_status == Status.SLEEPING)
         return false;
      
      try
      {
         _instance.interrupt();
         return true;
      }
      catch(Exception e)
      {
         return true;
      }
      finally
      {
         synchronized(_players){
            
            for (L2PcInstance player : _players)
            {
               player.DeathMatchCount = 0;
               player.OnDeathMatch = false;
               
               player.teleToLocation(TeleportWhereType.Town);
               player.sendMessage("Event ended abnormally");
            }
            _players.clear();
            _participantsIPs.clear();
            _status = Status.SLEEPING;
         }
      }
   }
   
   public synchronized static void scheduleEventAtFixedRate()
   {
      if (_scheduled)
         return;
      
      ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
      {
         public void run()
         {
            startEvent();
      }
      }, INITIAL_DELAY*60*1000, PERIOD_BETWEEN_EVENTS*60*1000);
   }
   
   public static boolean onEscapeUse(int id)
   {
      if (_status != Status.RUNNING)
         return true;
      
      synchronized(_players)
      {
         if (_players.contains(L2World.getInstance().findObject(id)))
            return false;
      }
      
      return true;
   }
   
   public static boolean doRevive(final L2PcInstance player)
   {
      if (_status != Status.RUNNING)
         return false;
      
      if (!player.OnDeathMatch)
         return false;
      
      player.sendMessage("You will be revived within next 5 seconds");
      
      ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
      {
         public void run()
         {
            player.doRevive();
            player.setCurrentCp(player.getMaxCp());
            player.setCurrentHpMp(player.getMaxHp(),player.getMaxMp());
            player.teleToLocation(X, Y, Z, true);
         }
      }, 3000);
      
      return true;
   }
}

The part in red is the part added.
« Last Edit: September 28, 2009, 04:03:30 AM by Nefer » Logged
Pages: [1] 2 3 ... 6
Print
Jump to:  


Become a V.I.P. or Donator Member Here

Become V.I.P. with Paysafecard


SullenV2 by Maxtor Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC XHTML | CSS

Page created in 0.111 seconds with 52 queries.