Thread: Hey guys I'm looking to make all players always skulled?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Hey guys I'm looking to make all players always skulled? 
    Registered Member
    Join Date
    Nov 2015
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hey guys so I am trying to make it so when players die they will lose all items unless the item protection prayer is activated. This already is the case if the player is skulled so, how would I make it so players are always skulled or so that even if they aren't they will have the same effect?
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Dec 2012
    Posts
    444
    Thanks given
    39
    Thanks received
    57
    Rep Power
    0
    Check the code for when someone that is skulled dies,

    Then see how its handled

    Add it to the normal death
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2015
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Would that be under player.java? Because I've looked at it just super confusing lol.
    Reply With Quote  
     

  4. #4  
    Registered Member lmaouk's Avatar
    Join Date
    Mar 2015
    Posts
    60
    Thanks given
    7
    Thanks received
    9
    Rep Power
    43
    Quote Originally Posted by you know it View Post
    Would that be under player.java? Because I've looked at it just super confusing lol.
    It will be wherever you handle player deaths. It's could be in player.java depending on what source you're using.
    Quote Originally Posted by EJVILL View Post
    Yeah because he had the fucking you fucking idiot. I found them anyway. Go fuck yourself. Shove a broomstick in your piss hole.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2015
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I can't figure it out ive gone through and changed the skull timers to a super high number, also changed all the isSkulled == false to isSkulled == true. Still doesn't work
    Reply With Quote  
     

  6. #6  
    Registered Member lmaouk's Avatar
    Join Date
    Mar 2015
    Posts
    60
    Thanks given
    7
    Thanks received
    9
    Rep Power
    43
    I'm a pretty big noob when it comes to things like this too, but this is where I would start in my server.

    See if you can find an 'itemsKept' variable, or something of the sort.


    As you can see, the items kept if the player is skulled is 0, otherwise it's 3. If you can find something like that, just change them both to 0, meaning whether or not a player is skulled, they will keep 0 items. That's what I would do, anyway.
    Quote Originally Posted by EJVILL View Post
    Yeah because he had the fucking you fucking idiot. I found them anyway. Go fuck yourself. Shove a broomstick in your piss hole.
    Reply With Quote  
     

  7. #7  
    Infinite in Mystery.

    Join Date
    Jul 2012
    Posts
    128
    Thanks given
    18
    Thanks received
    17
    Rep Power
    12
    What server base source are you using?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2011
    Posts
    327
    Thanks given
    130
    Thanks received
    17
    Rep Power
    6
    In the playerdeath method - Remove any code involving the items kept on death

    OR just make it so instantly you're skulled when entering the wild.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Nov 2013
    Posts
    162
    Thanks given
    4
    Thanks received
    4
    Rep Power
    44
    Remove keep items from death method or make a loop that checks if skull timer = 0 set it to 50000

    Message me for help with hosting server
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Oct 2015
    Posts
    136
    Thanks given
    3
    Thanks received
    7
    Rep Power
    11
    Quote Originally Posted by lmaouk View Post
    I'm a pretty big noob when it comes to things like this too, but this is where I would start in my server.

    See if you can find an 'itemsKept' variable, or something of the sort.


    As you can see, the items kept if the player is skulled is 0, otherwise it's 3. If you can find something like that, just change them both to 0, meaning whether or not a player is skulled, they will keep 0 items. That's what I would do, anyway.
    Replace the code in the picture with the code below.

    Code:
    ArrayList<Item> keptItems = new ArrayList<Item>();
    int itemsKept = 0;
    if (isUsingPrayer[Prayer.PROTECT_ITEM])
        itemsKept += 1;
    while (keptItems.size() < itemsKept && allItems.size() > 0) {
        keptItems.add(allItems.poll());
    }
    return keptItems;
    You should remove the skull above a players' head when attacking another player to avoid confusion.
    Also, quick tip: don't ever screenshot code. Makes it harder to help because we have to type the whole thing out. It isn't a big deal now because there's little code and I basicly only changed 1 thing but when there's more code it will become a big hassle.
    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. Looking to make a server with few guys
    By Rob in forum Requests
    Replies: 3
    Last Post: 08-13-2012, 03:22 AM
  2. Replies: 17
    Last Post: 01-26-2010, 11:04 PM
  3. How To MAKE all quests finished.
    By Affliction in forum Help
    Replies: 3
    Last Post: 08-24-2009, 01:42 PM
  4. Looking to make an 'old school' pk server
    By Valk in forum RS2 Server
    Replies: 11
    Last Post: 07-07-2009, 03:22 PM
  5. How to make all real defenders
    By bscape in forum Tutorials
    Replies: 26
    Last Post: 04-15-2008, 06:44 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
  •