xNostradamus Posted January 21, 2017 Posted January 21, 2017 Hello i have add this code http://pastebin.com/sFhMMwPp But when raidboss died i got this error http://prntscr.com/dyjsmg any solution?
0 melron Posted January 21, 2017 Posted January 21, 2017 (edited) Im not expert but, this code i think its rly bad since you are using Thread.sleep and after this u trying to delete the npc (maybe its already dead) which means you ull get NPE... put Try in unspawn case to catch any errors if this is the problem... Edited January 21, 2017 by melron
0 An4rchy Posted January 21, 2017 Posted January 21, 2017 Im not expert but, this code i think its rly bad since you are using Thread.sleep and after this u trying to delete the npc (maybe its already dead) which means you ull get NPE... put Try in unspawn case to catch any errors if this is the problem... The sleep doesn't really matter since it's run on a different thread (it won't freeze the server/players). But it's better to avoid it. Really shitty code, do not use it. My guess is that when players kill the boss, it is deleted but then it tries to delete it again after the time is passed. What is the line 453 on RaidBossSpawnManager?
0 melron Posted January 21, 2017 Posted January 21, 2017 The sleep doesn't really matter since it's run on a different thread (it won't freeze the server/players). But it's better to avoid it. Really shitty code, do not use it. My guess is that when players kill the boss, it is deleted but then it tries to delete it again after the time is passed. What is the line 453 on RaidBossSpawnManager? i said exactly the same thing.... it tries to redelete it and it gives npe...
0 xNostradamus Posted January 21, 2017 Author Posted January 21, 2017 (edited) This is 453 rbmanagerspawn , can you explain what i have to change? L2RaidBossInstance boss = _bosses.get(bossId); Edited January 21, 2017 by xNostradamus
0 AccessDenied Posted January 21, 2017 Posted January 21, 2017 This is 453 rbmanagerspawn , can you explain what i have to change? Post the whole damn script here whole rbmanagerspawn i can't smell my nails and guess.
0 Accountant Posted January 21, 2017 Posted January 21, 2017 Post the whole damn script here whole rbmanagerspawn i can't smell my nails and guess. i like the way you respect people
0 xNostradamus Posted January 21, 2017 Author Posted January 21, 2017 Post the whole damn script here whole rbmanagerspawn i can't smell my nails and guess. Dude , RaidBossSpawnManager line 453 brainless people read the facking comments! oh...
0 Tryskell Posted January 21, 2017 Posted January 21, 2017 That boss id isn't registered into the map, ending with a NPE. Add it to rb table in order infos being loaded.
0 AccessDenied Posted January 21, 2017 Posted January 21, 2017 i like the way you respect people Me too. Dude , RaidBossSpawnManager line 453 brainless people read the facking comments! oh... You're so stupid. I asked you to post the RaidBossSpawnManager java file and u answered with this. I was about to help you but gtfo now i'm out. Read what people ask you before u write shit comments.
0 xNostradamus Posted January 21, 2017 Author Posted January 21, 2017 That boss id isn't registered into the map, ending with a NPE. Add it to rb table in order infos being loaded. and how can i do that?(im newbie if you can help me)
0 Tryskell Posted January 21, 2017 Posted January 21, 2017 Edit sql and add lines. If DEAD/ALIVE status is fucked up, you have to edit core too.
0 xNostradamus Posted January 21, 2017 Author Posted January 21, 2017 Edit sql and add lines. If DEAD/ALIVE status is fucked up, you have to edit core too. Can you be more spesific? :/
Question
xNostradamus
Hello i have add this code http://pastebin.com/sFhMMwPp
But when raidboss died i got this error
http://prntscr.com/dyjsmg
any solution?
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now