I have this code and try to verify the time has passed when case occurred
Example in l2pcinstance:
privateint assasins =0;switch(assasins){case2:Announcements.getInstance().announceToAll("Player "+ pk.getName()+" has killed two times"+ pk.getTarget().getName());break;case3:Announcements.getInstance().announceToAll("Player "+ pk.getName()+" has killed three times"+ pk.getTarget().getName());default:}
i need verify if the next kill (case 3) ocurred < 10 seconds. if the time passed make a different announcements..
i think how see the code with my idea...
privateint assasins =0;switch(assasins){case2:Announcements.getInstance().announceToAll("Player "+ pk.getName()+" has killed two times"+ pk.getTarget().getName());ThreadPoolManager.getInstance().schedule(assasins =3,10*1000);break;case3:Announcements.getInstance().announceToAll("Player "+ pk.getName()+" has killed"+ pk.getTarget().getName());ThreadPoolManager.getInstance().schedule(assasins =4,10*1000);break;default:}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
As I said before...
In the past, it would have been worth buying their private projects, but time passes and people become corrupted. People who act with racism toward others don't deserve respect.
I'm really glad to see there's still activity in this forum, but it saddens me to see malicious individuals trying to undermine the work of the few remaining developers we have. Their efforts deserve respect, not unnecessary criticism.
Much love & respect to @Mobius and ofcourse @BruT for his beloved character. 😄
@BruT
I believe the one who should leave is you, since I created this topic.
Go back to school, it will help you understand discussions between adults.
And don't forget to change your dirty diapers. 🤣
Question
StarSCreams
hi,
I have this code and try to verify the time has passed when case occurred
Example in l2pcinstance:
i need verify if the next kill (case 3) ocurred < 10 seconds. if the time passed make a different announcements..
i think how see the code with my idea...
sorry my bad english :3
34 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.