Thread: [PI] Clicking on Accept Duel request

Results 1 to 4 of 4
  1. #1 [PI] Clicking on Accept Duel request 
    Registered Member Harambe_'s Avatar
    Join Date
    Jul 2007
    Posts
    504
    Thanks given
    15
    Thanks received
    22
    Rep Power
    13
    Where can i find this? I have a problem in my server where when someone requests to duel many times and if you click on 1 then put an item to stake then click on another request you will loose your items.

    Example player A (person asked to be dueled) and player B (person requesting a duel)

    Player A: Received multiple requests from Player B to duel
    Player A or B: puts item in stake box
    Player A: Click on another duel request

    Player A or B: looses all their items that they put in stake box by opening another stake window
    Reply With Quote  
     

  2. #2  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    998
    Thanks given
    188
    Thanks received
    213
    Rep Power
    37
    search for the id in your clickingbuttons.java or tradeanddual.java
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Posts
    393
    Thanks given
    3
    Thanks received
    19
    Rep Power
    5
    Quote Originally Posted by Aintaro. View Post
    search for the id in your clickingbuttons.java or tradeanddual.java
    yes and dont forget ActionHandler.java
    Reply With Quote  
     

  4. #4  
    Registered Member Harambe_'s Avatar
    Join Date
    Jul 2007
    Posts
    504
    Thanks given
    15
    Thanks received
    22
    Rep Power
    13
    Alright ill take a look but i have been trying to change in requestduel where it resets your items once you request then realized i wasted my time thanks for help

    I found where it open its here: But everything i have tried has failed. It will probably work where it won't let you accept another duel while in the duel screen but i am not sure how i can make it do that.

    Code:
    public void requestDuel(int id) {
    		try {
    			
    			if (id == c.playerId)
    				return;
    			resetDuel();
    			resetDuelItems();
    			
    			c.duelingWith = id;
    			Client o = (Client) Server.playerHandler.players[id];
    			if(o == null) {
    				return;
    			}
    			c.duelRequested = true;
    			if(c.duelStatus == 0 && o.duelStatus == 0 && c.duelRequested && o.duelRequested && c.duelingWith == o.getId() && o.duelingWith == c.getId()) {
    				if(c.goodDistance(c.getX(), c.getY(), o.getX(), o.getY(), 1)) {			
    					
    		
    				
    				c.getTradeAndDuel().openDuel();
    				o.getTradeAndDuel().openDuel();
    				
    					c.sendMessage("REMEMBER Dueling is glitchy report any glitch on the topic under announcements");
    				} else {
    					c.sendMessage("You need to get closer to your opponent to start the duel.");
    				}
    
    			} else {
    			
    				c.sendMessage("Sending duel request...");
    				o.sendMessage(c.playerName+":duelreq:");		
    			}
    		} catch (Exception e) {
    			Misc.println("Error requesting duel.");
    		}
    	}
    Reply With Quote  
     


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. [Shard]Duel Request
    By Cody. in forum Help
    Replies: 3
    Last Post: 12-29-2011, 10:55 PM
  2. Replies: 0
    Last Post: 10-05-2009, 11:54 PM
  3. Duel Request
    By Swarfega in forum Help
    Replies: 5
    Last Post: 04-25-2009, 11:15 PM
  4. Duel Request problem
    By Your Name in forum Help
    Replies: 6
    Last Post: 01-08-2009, 03:40 PM
  5. Replies: 22
    Last Post: 09-08-2007, 02:24 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •