theres accually a simple but useful tut on here![]()
|
|
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
underneath that add thisCode:public class client extends Player implements Runnable {
now look for magic on npcCode:public long lastAttack = 0;
right underneath that add this
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 3500Code:int hitdiff = 0; long now = System.currentTimeMillis(); if(now - lastAttack < 0000) break; lastAttack = now;
as the time to wait
hope you enjoy it
theres accually a simple but useful tut on here![]()

Thanks, very usefull![]()
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
Thanks helpful tut.So you only get 50% credit
![]()
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![]()
thanks i will use it on my server![]()
Excellent work! Simple, but effective!
Repp++;
bump bump bump
| « [tut]how to edit weapon bonuses[tut] | Selling KramerScape Source 5mil! Bought it For 10mil! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |