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.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
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.