Thread: PVP Minigame

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,819
    Thanks received
    1,767
    Rep Power
    2438
    This is a cool & simple idea. Here's a suggestion though

    Code:
    	@Override
    	public void moved() {
    		player.setCanPvp(true);
    		player.getPVPMinigame().sendInters();
    	}
    this is called every time the player moves. Do you want to make the player be able to attack other people every time they move? (see Player#setCanPvp) No you only want to do it once; so

    Code:
    		player.setCanPvp(true);
    should only be sent when the player starts the controller.

    Also the interface is an overlay; it won't close when they move regardless. So moved() doesn't need either of those methods.

    Pls show a pic of interface 731, dunno what it looks like & kinda interested [i don't have any rs kits open as i type this].
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  2. Thankful users:


  3. #12  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    Quote Originally Posted by Tyluur View Post
    This is a cool & simple idea. Here's a suggestion though

    Code:
        @Override
        public void moved() {
            player.setCanPvp(true);
            player.getPVPMinigame().sendInters();
        }
    this is called every time the player moves. Do you want to make the player be able to attack other people every time they move? (see Player#setCanPvp) No you only want to do it once; so

    Code:
            player.setCanPvp(true);
    should only be sent when the player starts the controller.

    Also the interface is an overlay; it won't close when they move regardless. So moved() doesn't need either of those methods.

    Pls show a pic of interface 731, dunno what it looks like & kinda interested [i don't have any rs kits open as i type this].
    731 is the fist of guthix interface if I am not mistaken

    good job man love ur work :*
    Reply With Quote  
     

  4. #13  
    Registered Member

    Join Date
    Sep 2014
    Posts
    300
    Thanks given
    122
    Thanks received
    91
    Rep Power
    158
    Quote Originally Posted by Tyluur View Post
    This is a cool & simple idea. Here's a suggestion though

    Code:
    	@Override
    	public void moved() {
    		player.setCanPvp(true);
    		player.getPVPMinigame().sendInters();
    	}
    this is called every time the player moves. Do you want to make the player be able to attack other people every time they move? (see Player#setCanPvp) No you only want to do it once; so

    Code:
    		player.setCanPvp(true);
    should only be sent when the player starts the controller.

    Also the interface is an overlay; it won't close when they move regardless. So moved() doesn't need either of those methods.

    Pls show a pic of interface 731, dunno what it looks like & kinda interested [i don't have any rs kits open as i type this].
    Attached image
    Attached image
    That's interface 731.
    Reply With Quote  
     

  5. #14  
    Forum Moderator


    Join Date
    Dec 2016
    Posts
    312
    Thanks given
    166
    Thanks received
    177
    Rep Power
    1089
    Quote Originally Posted by Tyluur View Post
    This is a cool & simple idea. Here's a suggestion though

    Code:
    	@Override
    	public void moved() {
    		player.setCanPvp(true);
    		player.getPVPMinigame().sendInters();
    	}
    this is called every time the player moves. Do you want to make the player be able to attack other people every time they move? (see Player#setCanPvp) No you only want to do it once; so

    Code:
    		player.setCanPvp(true);
    should only be sent when the player starts the controller.

    Also the interface is an overlay; it won't close when they move regardless. So moved() doesn't need either of those methods.

    Pls show a pic of interface 731, dunno what it looks like & kinda interested [i don't have any rs kits open as i type this].
    Appreciate the feed back
    Attached image
    Reply With Quote  
     

  6. #15  
    #ProjectShield
    PhantomRSPS's Avatar
    Join Date
    Apr 2016
    Posts
    173
    Thanks given
    103
    Thanks received
    17
    Rep Power
    16
    Looks nice, Good job on the snippet.
    Reply With Quote  
     

  7. #16  
    Forum Moderator


    Join Date
    Dec 2016
    Posts
    312
    Thanks given
    166
    Thanks received
    177
    Rep Power
    1089
    Quote Originally Posted by PhantomRSPS View Post
    Looks nice, Good job on the snippet.
    hope you enjoy
    Attached image
    Reply With Quote  
     

  8. #17  
    Registered Member
    Join Date
    May 2018
    Posts
    20
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    Whats the npc code?
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. Replies: 4
    Last Post: 12-31-2012, 12:53 AM
  2. Replies: 19
    Last Post: 10-04-2012, 03:02 AM
  3. [614]PVP Minigame Teleport
    By chilleno in forum Help
    Replies: 4
    Last Post: 01-03-2011, 02:36 PM
  4. Pvp Minigame
    By Moofens in forum Projects
    Replies: 9
    Last Post: 01-16-2010, 07:12 PM
  5. Pvp minigame [base]
    By Moofens in forum Show-off
    Replies: 0
    Last Post: 01-10-2010, 12:59 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
  •