Thread: Mod Lock

Results 1 to 10 of 10
  1. #1 Mod Lock 
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    hello when i fight npcs in my pvp server i get the timer and ppl can att me or players how do i make it so when u fight npcs it just stay like if u are in home fighting an npc i realy need this
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2010
    Age
    21
    Posts
    407
    Thanks given
    17
    Thanks received
    17
    Rep Power
    8
    If you're going to make a pvp server don't add NPC combat...
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Check if the player's target has a valid player ID.
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by Bansil View Post
    If you're going to make a pvp server don't add NPC combat...
    its a pickup server but i just want it so u cant pickup minigame items..
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by Jarba View Post
    Check if the player's target has a valid player ID.
    And where do i find that? im not that good in coding
    Reply With Quote  
     

  6. #6  
    Registered Member Yodoxin's Avatar
    Join Date
    Sep 2008
    Age
    33
    Posts
    190
    Thanks given
    0
    Thanks received
    10
    Rep Power
    54
    Create a separate boolean for combat with NPC from combat with players; what'll be happening is that your PvP system will be reading the player as being in combat so giving them the PvP timer and making them attackable because of this, despite the fact that it's an NPC rather than a player that they're fighting.
    *Ahem* I will not be doing that again...
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    this one is for PvP right?

    Code:
    	private boolean AttackPvP() {
    client AttackingOn2 = (client) server.playerHandler.players[AttackingOn];
    		int EnemyX = PlayerHandler.players[AttackingOn].absX;
    		int EnemyY = PlayerHandler.players[AttackingOn].absY;
    				int offsetX = (absY - EnemyY) * -1;
    				int offsetY = (absX - EnemyX) * -1;
    
                                                            actionlog = 10;
    AttackingOn2.actionlog = 10;
    
    if(AttackingOn2.uber) {
    sM("You cannot attack a staff.");
    ResetAttack();
    return false;
    }
    Reply With Quote  
     

  8. #8  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    bump
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    another bump
    Reply With Quote  
     

  10. #10  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    fixed that ucant pk players now so mod please lock
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •