Thread: Stop mass mageing problem

Results 1 to 9 of 9
  1. #1 Stop mass mageing problem 
    rukia
    Guest
    Purpose: to stop those noobs from spamming mage every 2 seconds

    Assumed Knowledge: copy + paste / reading

    Server Base: P16 should work on all tho

    Diffuculty: 1/10

    Credits: 50% winten and 50% me

    ok to start go into your client.java and look for

    Code:
    public class client extends Player implements Runnable {
    underneath that add this

    Code:
    public long lastAttack = 0;
    now look for magic on npc

    right underneath that add this

    Code:
    int hitdiff = 0; 
    long now = System.currentTimeMillis(); 
    if(now - lastAttack < 0000) break; 
    lastAttack = now;
    gratz your done, to change how long the player has to wait before casting the spell change the "0000" to the seconds (milliseconds), so if you want 3.5 second wait add 3500
    as the time to wait

    hope you enjoy it
     

  2. #2  
    Registered Member
    Join Date
    Jul 2006
    Posts
    95
    Thanks given
    0
    Thanks received
    1
    Rep Power
    4
    theres accually a simple but useful tut on here
    This is a signature.
     

  3. #3  
    I'm unique


    Join Date
    Oct 2006
    Age
    29
    Posts
    708
    Thanks given
    0
    Thanks received
    1
    Rep Power
    82
    Thanks, very usefull
    Sincerly yours,
    Simox.
     

  4. #4  
    project-rs owner
    Join Date
    Sep 2006
    Age
    29
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    actually this is bad. because this will stop the packets and send it later when timer is 0
    that will mean's more lags wolf posted something like this to but it does the same
    it is better to make a void of process
     

  5. #5  
    daneo
    Guest
    Thanks helpful tut. So you only get 50% credit
     

  6. #6  
    rukia
    Guest
    laruens your wrong, it does nothing like that.

    i use it on my server (codian) and there is absolutly no lag at all so even if it did when the timer is 0 it wouldnt lag.

    but as i said before that doesnt happen because i use it and have the timer set at 3.5 seconds and it works perfect and thanks for the comments guys


    EDIT: me like rep
     

  7. #7  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    28
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    thanks i will use it on my server
     

  8. #8  
    Zekkalkan
    Guest
    Excellent work! Simple, but effective!
    Repp++;
     

  9. #9  
    blastoise
    Guest
    bump bump bump
     


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. mass ban?
    By pHametic in forum Media
    Replies: 21
    Last Post: 01-21-2011, 06:23 PM
  2. Replies: 80
    Last Post: 11-30-2008, 12:54 AM
  3. Stop With the Mass Posting.
    By Inside Sin in forum Showcase
    Replies: 5
    Last Post: 10-31-2007, 12:56 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
  •