it will be a less.. cause 1 cycle is 6 so it will be 36 seconds in your case.
|
|
This tut is short and sweet. I take no credits for this, I just took it off w00tsc4p3 source and am showing you how to add it to your server.
First, add this
To your Player class. I would add it belowCode:if(serverMess > 0){ serverMess--; } if(serverMess == 0 && serverMess1 == 0){ serverMess1 = 1; sm("[SERVER]: Join up at the W00tSc4p3 Forums at w00tsc4p3.smfforfree3.com and apply!"); serverMess = 60; } if(serverMess == 0 && serverMess1 == 1){ serverMess1 = 2; sm("[SERVER]: Vote for W00tSc4p3 on the ********* Status page, we are on the toplist!"); serverMess = 60; } if(serverMess == 0 && serverMess1 == 2){ serverMess1 = 3; sm("[SERVER]: Please do not abuse any glitchs or you will be resetted."); serverMess = 60; } if(serverMess == 0 && serverMess1 == 3){ serverMess1 = 4; sm("[SERVER]: Respect all mods and admins, don't obey this and have a consiquence!"); serverMess = 60; } if(serverMess == 0 && serverMess1 == 4){ serverMess1 = 0; sm("[SERVER]: For Non-Safe PKing type ::edge"); serverMess = 60; }
Because that's where it is in w00tsc4p3 LoL.Code:if(dfs > 0){ dfs--;
Next, put
belowCode:public int serverMess = 60; public int serverMess1 = 0;
And you're done. Each 30 seconds a message will go out saying what you put in the quotations.Code:public int protRange = 0;

WOW
And not in a good way.




lol no forum links![]()
Lol?
I am very tiered but I would have used a different way to make it..... something like
methodCode:javax.swing.Timer t = new javax.swing.Timer(60000, new ActionListener() { public void actionPerformed(ActionEvent e) { sendMessageToServer(Misc.random(3)); } }); t.start();
Code:public String sendMessageToServer(int msgNumb) { switch (msgNumb) { case 1: return "This is message one"; case 2: return "This is message two"; case 3: return "this is message three"; default return ""; } }
Mind your as I said I am tiered so this is not done right, but you get my idea lol good night

shorter and better
Code:public void message(final Player p){ Timer timer = new Timer(60000, new ActionListener() { public void actionPerformed(ActionEvent evt) { String[] msg = new String[]{"This is message one","This is message two","this is message three"}; p.frames.sendMessage(p,msg[Misc.random(msg.length)]); } }); timer.setRepeats(true); timer.start(); }
Again Serenity, I am tiered and not in the right mind for this atm, plus I am rushing through it.
I write that off the top of my head![]()
Lol I made this on my w00tsc4p3 source a while ago, do not judge me. >.>
ehhh...thx
stuff needs to be getting released for 525 nao :/
I think I'm doing a 525 again, a fresh one.
| « Items dropped on death[508] | Control Panel (Any source, 508,525,554) » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
| Tags for this Thread |