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.
Lineage II Classic Einhovant new project is looking for a skilled Java Developer to join our team!
If you're passionate about game development and eager to contribute to this project, we'd love to hear from you.
For more details, feel free to send us a message. Let’s create something amazing together!
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.