Thread: [PI] kick but not command..

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 [PI] kick but not command.. 
    Registered Member Queer's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    781
    Thanks given
    210
    Thanks received
    33
    Rep Power
    33
    I would like it so when someone loses a duel in the dueling arena it kicks them if they lost, I tried something like this..

    Server.playerHandler.players[i].disconnected = true;

    but that doesn't work in the PlayerAssistant.java could someone help me code something that will disconnect a player after they lost if so that'd be great... I will rep+ and even add you to the credits.. if I release..



    I tried this;


    Code:
    if (c.duelStatus <= 4) {
    				c.sendMessage("Oh dear you are dead!");
                                    Server.playerHandler.players[i].disconnected = true;
    
    			} else if(c.duelStatus != 6 || !c.inArena()) {
    				c.sendMessage("You have lost the duel!");
                                    Server.playerHandler.players[i].disconnected = true;
    				/*o.getPA().movePlayer(
    						Config.DUELING_RESPAWN_X
    								+ (Misc.random(Config.RANDOM_DUELING_RESPAWN)),

    Any help would be great...
    Reply With Quote  
     

  2. #2  
    Registered Member Queer's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    781
    Thanks given
    210
    Thanks received
    33
    Rep Power
    33
    bump
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2010
    Posts
    1,730
    Thanks given
    56
    Thanks received
    97
    Rep Power
    0
    it kick em as in disconnects them?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Nov 2010
    Posts
    508
    Thanks given
    5
    Thanks received
    61
    Rep Power
    0
    shouldn't it be
    Code:
    							if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
    								Server.playerHandler.players[i].disconnected = true;
    Reply With Quote  
     

  5. #5  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    I believe there is more than one instance of the death method in duel arena

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  6. #6  
    Registered Member Queer's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    781
    Thanks given
    210
    Thanks received
    33
    Rep Power
    33
    Quote Originally Posted by Charmander View Post
    it kick em as in disconnects them?
    Yes, disconnect,.
    Reply With Quote  
     

  7. #7  
    Registered Member Queer's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    781
    Thanks given
    210
    Thanks received
    33
    Rep Power
    33
    Quote Originally Posted by Vox` View Post
    I believe there is more than one instance of the death method in duel arena
    I removed some crap that looked exactly the same.
    Reply With Quote  
     

  8. #8  
    looking for partnership

    Satan's Avatar
    Join Date
    Oct 2010
    Posts
    833
    Thanks given
    287
    Thanks received
    68
    Rep Power
    269
    c.Logout;

    [/url]
    Reply With Quote  
     

  9. #9  
    looking for partnership

    Satan's Avatar
    Join Date
    Oct 2010
    Posts
    833
    Thanks given
    287
    Thanks received
    68
    Rep Power
    269
    if (c.duelStatus <= 4) {
    c.sendMessage("Oh dear you are dead!");
    c.logout();

    } else if(c.duelStatus != 6 || !c.inArena()) {
    c.sendMessage("You have lost the duel!");
    c.logout();
    /*o.getPA().movePlayer(
    Config.DUELING_RESPAWN_X
    + (Misc.random(Config.RANDOM_DUELING_RESPAWN)),

    [/url]
    Reply With Quote  
     

  10. #10  
    Registered Member Queer's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    781
    Thanks given
    210
    Thanks received
    33
    Rep Power
    33
    Quote Originally Posted by Johan View Post
    if (c.duelStatus <= 4) {
    c.sendMessage("Oh dear you are dead!");
    c.logout();

    } else if(c.duelStatus != 6 || !c.inArena()) {
    c.sendMessage("You have lost the duel!");
    c.logout();
    /*o.getPA().movePlayer(
    Config.DUELING_RESPAWN_X
    + (Misc.random(Config.RANDOM_DUELING_RESPAWN)),
    Tried this says, cannot log out in combat I want it to disconnect them and reconnect them sort of as like kicking command.
    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. Kick all command [PI]
    By Treq in forum Help
    Replies: 3
    Last Post: 07-19-2013, 02:25 AM
  2. [PI]Kick command
    By erde0 in forum Snippets
    Replies: 9
    Last Post: 12-23-2010, 09:39 PM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. [PI] Kick Command?
    By Aristotle in forum Help
    Replies: 4
    Last Post: 07-28-2010, 08:22 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
  •