Thread: [PI] duel arena bug.

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [PI] duel arena bug. 
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    can anybody help me fix staking? and also when you kill someone in duel you get stuck in duel arena until you log out..can somebody fix it for me? i know its been released 10000x but none of the fixes work for me :\ heres my apply dead.

    Code:
    	/**
    	* Dieing
    	**/
    	
    	public void applyDead() {	
    		c.respawnTimer = 10;
    		c.isDead = true;
    
    		if(c.duelStatus != 6) {
    			//c.killerId = c.getCombat().getKillerId(c.playerId);
    			c.killerId = findKiller();
    			Client o = (Client) Server.playerHandler.players[c.killerId];
    			if(o != null) {
    				if (c.killerId != c.playerId)
    				o.sendMessage(Killmessage());
    if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
    	PlayerKilling.addHostToList(o, c.connectedFrom);
    	if (c.killerId != c.playerId && c.inWild() && !c.inFunPk() && !c.inDuelArena() && !c.inPits)
    	if ((c.inFunPk()) || (c.inDuelArena()) || (c.inPits))
    	return;
    	 else 
    	o.pkPoints++;
    	o.sendMessage("You have received a point, you now have "+o.pkPoints+" pk points.");
    } else {
    	if ((c.inFunPk()) || (c.inDuelArena()) || (c.inPits))
    	return;
    	 else 
    if (c.killerId != c.playerId)
    	o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
    }
    
    				c.playerKilled = c.playerId;
    				if(o.duelStatus == 5) {
    					o.duelStatus++;
    				}
    			}
    		}
    		c.faceUpdate(0);
    			EventManager.getSingleton().addEvent(new Event() {
    			public void execute(EventContainer b) {
    				c.npcIndex = 0;
    				c.playerIndex = 0;
    			b.stop();
    			}
    			}, 2500);
    		c.stopMovement();
    		if (c.duelStatus <= 4) {
    			//c.frame74(512);//death music
    			c.sendMessage(Config.DEATH_MESSAGE);
    		} else if(c.duelStatus != 6) {
    			Client o = (Client) Server.playerHandler.players[c.killerId];
    			//c.frame74(512);//death music
    			c.sendMessage("You have lost the duel!");
    			o.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
    			c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
    				PlayerSave.saveGame(o);
    				PlayerSave.saveGame(c);
    		}
    		resetDamageDone();
    		c.specAmount = 10;
    		c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    		c.lastVeng = 0;
    		c.vengOn = false;
    		resetFollowers();
    		c.attackTimer = 10;
    	}
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  2. #2  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    bumpity bumpity bumppp
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  3. #3  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    bump
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  4. #4  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Actually I think its only been released once. It's not sending the duel victory properly. Just go through applydead and remove sending the duel status and in givelife where it moves the player after the duel send the duel victory there.
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    well i got them both to move and get max hp etc. now i just need to make it so it actually finishes the duel. one player says that its finished(one who died) and the one who won, still shows attack :\ anyone know the fix?
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  7. #6  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    bump
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  8. #7  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    bump. anyone know how to make it end the duel for both people when teleported? it still says attack for the winner afterward :\
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  9. #8  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    bumppp
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

  10. #9  
    Banned

    Join Date
    Jan 2012
    Age
    28
    Posts
    1,217
    Thanks given
    110
    Thanks received
    681
    Rep Power
    0
    5 bumps isnt enough
    Reply With Quote  
     

  11. #10  
    « Pokémon Master »
    Ash Ketchum's Avatar
    Join Date
    Jun 2011
    Age
    29
    Posts
    1,423
    Thanks given
    275
    Thanks received
    153
    Rep Power
    39
    i know someones gotta have this >.>
    Attached image
    Spoiler for Galkon:

    Spoiler for Great Quotes:
    Quote Originally Posted by i am prod View Post
    **** YOU this just erased everyones passwords and no one can log in!!!
    Quote Originally Posted by blade2 View Post
    did i ****ing say it was a ****ing virus u dip shit i said virus scan dont scan java files i didn't say its a virus... l2****ingreadkid
    Spoiler for (╯°□°)╯︵┻━┻:
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Duel Arena Bug
    By MrClassic in forum Help
    Replies: 14
    Last Post: 07-02-2011, 09:38 AM
  2. [PI][10$]Duel Arena Bug
    By Division in forum Help
    Replies: 9
    Last Post: 09-06-2010, 07:51 AM
  3. Serious Duel Arena bug
    By Homie Pimpson in forum Help
    Replies: 7
    Last Post: 03-15-2009, 08:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •