InFocus Posted October 4, 2018 Posted October 4, 2018 Hi all, i have just a question. It is possible to restrict all items (armor,weapons,etc etc) and leave just 1 type or armor to access in zone? I mean for VoiceCommand teleport?
0 Kara Posted October 5, 2018 Posted October 5, 2018 6 minutes ago, InFocus said: I change with L2PcInstance that `player` , now error is in ItemInstance http:// Don't click the "Change to L2ItemInstance" cause your PC will explode.
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 After Change to L2ItemInstance another kind of error http://
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 3 minutes ago, Kara` said: Don't click the "Change to L2ItemInstance" cause your PC will explode. Wel wel, i have laptop I7 Gen 7 :) octa core? :)
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 (edited) I can replace with CheckItemManipulation or CheckItemExist? Edited October 5, 2018 by InFocus
0 SweeTs Posted October 5, 2018 Posted October 5, 2018 God. Don't change anything. You have/had the warning - information, because you didn't used the method anywhere. So eclipse is marking it as not used, pointless, meaning you can remove it. Once you use the method, warning is gone. That method is supposed to be inside your voiced command file. If you plan to use it globally, paste it inside pcinstance and make it public.
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 Yup, now i understand. I check now if it's working
0 SweeTs Posted October 5, 2018 Posted October 5, 2018 27 minutes ago, Kara` said: SweeTs for fucking god sake do something.. the guy is amateur as fuck its not about java anymore 2 pages we tell him to change Player to L2PcInstance and he can't realise it. Yea, it's about brain cells or rather lack of them :D
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 What's now? http:// I try to put L2PcInstance but don't work :)
0 SweeTs Posted October 5, 2018 Posted October 5, 2018 God.. Can't you see the file uses activeChar word? Open you eyes, look on other lines. You are not learning. God x2, you changed player to activeChar for message and you didn't find out that you should change player to activeChar for the method call. Face palm. And again, why the fack you have after that check bracket {} without an if statement?! You are creating brackets and errors like crazy. God help this guy.
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 http:// and i have in L2PcInstance private static final boolean checkItemGrade(L2PcInstance player, int slotId) { final L2ItemInstance item = player.getInventory().getPaperdollItem(slotId); if ((item != null) && (item.getItem().getCrystalType() == CrystalType.S)) { return true; } return false; } Why it not complete?
0 SweeTs Posted October 5, 2018 Posted October 5, 2018 Bcs you paste the method God's know where. I already told you, the method MUST BE INSIDE the file you try to edit.
0 InFocus Posted October 5, 2018 Author Posted October 5, 2018 1 minute ago, SweeTs said: Bcs you paste the method God's know where. I already told you, the method MUST BE INSIDE the file you try to edit. I put command Here 1 if (command.startsWith("easy")) I put command Here 2 { if (!activeChar.isNoble()) { activeChar.destroyItemByItemId("consume", 57, 50000, activeChar, true); } I Put Command Here 3 if (!(activeChar.getLevel() < 80)) { activeChar.sendMessage("You have been teleported to easy zone "); activeChar.teleToLocation(89006, 27373, -15691); } _reuse.put(activeChar.getObjectId(), System.currentTimeMillis() + delay); } Or I Put command Here 4? Can tell me please?
0 SweeTs Posted October 5, 2018 Posted October 5, 2018 Wtf... It's a method, God. Paste it out of bypass. Rofl. If you fail doing it i won't help you anymore as it's waste of time, TOTAL waste of time. Worse than a 10 y old kid.
0 SweeTs Posted October 5, 2018 Posted October 5, 2018 useVoicedCommand { your shit code } checkItemGrade { code } If you can't understand simplest thing, trash eclipse and give us a break.
0 Kara Posted October 5, 2018 Posted October 5, 2018 (edited) SweeT's is about to rage quit ROLF i give him max 5-6 min more Edited October 5, 2018 by Kara`
Question
InFocus
Hi all, i have just a question. It is possible to restrict all items (armor,weapons,etc etc) and leave just 1 type or armor to access in zone? I mean for VoiceCommand teleport?
70 answers to this question
Recommended Posts