Thread: (z508) making mod+ not losing stuff :)

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 (z508) making mod+ not losing stuff :) 
    Registered Member
    Join Date
    Sep 2009
    Posts
    171
    Thanks given
    44
    Thanks received
    1
    Rep Power
    1
    My first tut, didnt see this anywhere so i decided to post to help peeps

    OK so open up player.java

    and search
    Code:
     public void appendDeath() {
    and change your death delay method to this
    Code:
     	if (deathDelay == 0 && isDead) {
    			Player opp = Server.engine.players[hitIndex];
    
    			try {
    				if (rights < 1) {
    					dropStuff(opp.username);
    				}
    there u go
    Reply With Quote  
     

  2. #2  
    Sexy Donator
    Downfall's Avatar
    Join Date
    Oct 2008
    Age
    26
    Posts
    1,084
    Thanks given
    10
    Thanks received
    1
    Rep Power
    393
    u lose stuff when u become mod? lol

    Edit: nvm , u mean when u die during combat and ur mod u dont lose stuff, i dont think this should be implemented as the drop system in z508 is based on what u have on, so when u kill a mod u will get bs drops? which should be the EXACT opposite

    [Only registered and activated users can see links. ]
    Did you know?
    - JaGeX has enough money to buy 8,000,000 tons of SuperCrack.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Apr 2009
    Posts
    675
    Thanks given
    707
    Thanks received
    32
    Rep Power
    1131
    Quote Originally Posted by NUBS View Post
    u lose stuff when u become mod? lol

    Edit: nvm , u mean when u die during combat and ur mod u dont lose stuff, i dont think this should be implemented as the drop system in z508 is based on what u have on, so when u kill a mod u will get bs drops? which should be the EXACT opposite
    lmfao, but I think this automatically kills you when you become a mod o.O
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2009
    Posts
    171
    Thanks given
    44
    Thanks received
    1
    Rep Power
    1
    Quote Originally Posted by K0 pur3 View Post
    lmfao, but I think this automatically kills you when you become a mod o.O
    no, when u kill a mod+ u dont get a drop because of no risk, but if ur a mod n u kill a normal player u'll still get normal drop its tested on my server
    Reply With Quote  
     

  5. #5  
    Registered Member
    Underoath's Avatar
    Join Date
    Sep 2008
    Posts
    2,943
    Thanks given
    826
    Thanks received
    582
    Rep Power
    853
    Soz but this is too easy to even be on here.


    Special thanks to Payton :trollface:
    Spoiler for People I respect:

    Definitely not you, faggot.

    Reply With Quote  
     

  6. #6  
    Gfx/Coder


    Join Date
    Dec 2008
    Posts
    1,965
    Thanks given
    38
    Thanks received
    48
    Rep Power
    320
    If this wasnt your first tut and you werent a new pseron, you would be the biggest noob ever...
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2009
    Posts
    171
    Thanks given
    44
    Thanks received
    1
    Rep Power
    1
    Quote Originally Posted by EnterSandman View Post
    If this wasnt your first tut and you werent a new pseron, you would be the biggest noob ever...
    You use the word "noob" as a insult ?
    Reply With Quote  
     

  8. #8  
    Registered Member Juanes's Avatar
    Join Date
    Sep 2009
    Posts
    55
    Thanks given
    1
    Thanks received
    1
    Rep Power
    18
    Quote Originally Posted by ChrissyDee View Post
    You use the word "noob" as a insult ?
    Basicly in z508's its were admins don't lose items, rights 2. what hes implying is that you leeched the code of a server and pasted on to here as rights 1, were mods don't lose items..
    Reply With Quote  
     

  9. #9  
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    Quote Originally Posted by ChrissyDee View Post
    My first tut, didnt see this anywhere so i decided to post to help peeps

    OK so open up player.java

    and search
    Code:
     public void appendDeath() {
    and change your death delay method to this
    Code:
     	if (deathDelay == 0 && isDead) {
    			Player opp = Server.engine.players[hitIndex];
    
    			try {
    				if (rights < 1) {
    					dropStuff(opp.username);
    				}

    there u go
    lol, you have just changed p.right to "1" from "2" and now that code will make admins loose all item, i just addd p right for admins too:

    Code:
    	public void appendDeath() {
    		if (deathDelay == 0 && isDead) {
    			Player opp = Server.engine.players[hitIndex];
    
    			try {
    				if (rights < 1) {
    					dropStuff(opp.username);
    				}
    				if (rights < 2) {
    					dropStuff(opp.username);
    				}
    If there is a pro coder who can help me, then could you see this and help me.. it kind of related to this...
    [Only registered and activated users can see links. ]
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Sep 2009
    Posts
    171
    Thanks given
    44
    Thanks received
    1
    Rep Power
    1
    Quote Originally Posted by pranavninja1 View Post
    lol, you have just changed p.right to "1" from "2" and now that code will make admins loose all item, i just addd p right for admins too:

    Code:
    	public void appendDeath() {
    		if (deathDelay == 0 && isDead) {
    			Player opp = Server.engine.players[hitIndex];
    
    			try {
    				if (rights < 1) {
    					dropStuff(opp.username);
    				}
    				if (rights < 2) {
    					dropStuff(opp.username);
    				}
    nah admins dont lose stuff with tht code too lol idk how it works....=\
    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

Tags for this Thread

View Tag Cloud

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