Ayami- Posted February 11, 2015 Share Posted February 11, 2015 (edited) i want people not to restart near npcs if (player != null && player.isInsideRadius(player, L2NpcInstance.getInteractionDistance(), false, false)) <--- wtf i am doing { player.sendMessage("You cannot restart near this NPC."); sendPacket(RestartResponse.valueOf(false)); return; } but it doesnt work, what i do wrong? xD Edited February 11, 2015 by Ayami- Link to comment Share on other sites More sharing options...
0 Ayami- Posted February 11, 2015 Author Share Posted February 11, 2015 Fixed lock it, wtf am i doing Link to comment Share on other sites More sharing options...
0 SweeTs Posted February 11, 2015 Share Posted February 11, 2015 The null check basically is not needed :D locked. Link to comment Share on other sites More sharing options...
Question
Ayami-
i want people not to restart near npcs
but it doesnt work, what i do wrong? xD
Edited by Ayami-Link to comment
Share on other sites
2 answers to this question
Recommended Posts