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:}
Dear friends!
There will be one more event on our server.
Any clan that has these specs will get a reward.
Minimum Clan members: 15.
Each clan must consist of unique players.
Members of your clan must successfully attain level 76+.
Website: https://l2metawars.com
Discord: https://discord.gg/23XVfPZB6Z
DISCORD :
utchiha_market
telegram
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha-market.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihamkt
Hello,
When I try to run L2Server i get the error "m_QueueItems is NULL". This only happens inside virtual machine. Tried on host and worked fine.
Does anyone know what's that error?
Ty
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
Link to comment
Share on other sites
34 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now