Jump to content

SweeTs

Legendary Member
  • Posts

    8,941
  • Credits

  • Joined

  • Last visited

  • Days Won

    25
  • Feedback

    0%

Everything posted by SweeTs

  1. Make sure the npc instance type is default, L2Npc. If it's a custom instance, it won't work, as it is using Overriden showChatWindow, in 99% of cases. Also.. Why you add useless brackets?! String.valueOf((Config.RATE_SP)) why you added the Config inside the bracket? WHY?! Remove one bracket for our sake. With player.getName() you get the name, obviously. String.valueOf won't be necessary.
  2. The method is boolean, stupid people from MxC share return, Eclipse is throwing error, let's remove the return and wonder why my code is not working :(
  3. We alreadyu have / had, again 5 pages for ONE LINE. And you deny the knowledge. I wonder how you graduated, if you did. I won't. Simply check the code I provided, the if (checkItemGrade and your and see what's missing. Missing, the most important thing is the RETURN. If the method is a boolean, you must define true / false. So, RETURN or RETURN FALSE, TERMINATES THE CODE. So, the code is NOT processing. Sooooooooo, add that godamn RETURN FALSE after the message.
  4. I tell you what's wrong. You are trying to think and code on your own and that's your biggest issue. use FULL code I provided. Where the RETURN, why you removed all returns?!?!?!?! Atm your code ONLY throw message, the code is still EXECUTED and nothing changes. ALL CHECKS MUST HAVE RETURN to INTERRUPT / BREAK the code to proceed. All back return false in all checks where code SHOULD BREAK.
  5. useVoicedCommand { your shit code } checkItemGrade { code } If you can't understand simplest thing, trash eclipse and give us a break.
  6. 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.
  7. Bcs you paste the method God's know where. I already told you, the method MUST BE INSIDE the file you try to edit.
  8. 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.
  9. Yea, it's about brain cells or rather lack of them :D
  10. 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.
  11. God. Test, don't ask, don't wait for an answer. Yes, my code checks if you have equipped S armor and weapon.
  12. Whatever you link. You only have to register the bypass and add action to it. Eventually check how htm books work, there are items with unique handler that pops up htm window. But I'm not sure if it supports pages.
  13. No it will not be a bug, it's people choice if they want LATER equip lower grade / weaker weapon (they will not). The only restriction which is legit is to check if they should be able to enter. What they do inside, we should not care. Crappy check regarding grade equip may bring more cons than pros :D
  14. Pointless. It's supposed to be a S grade zone, so if someone choose to use A grade item or whatever, it's his stupidity, disadvantage. So, I would simply use only S check. God. Player is always L2PcInstance, after all this time you should at least understand that, manage to fix one shit on your own. Else stop doing whatever you do as your server will fail on first error and trust me, you will have them. I tho my custom is tested enough, guess what. It wasn't.
  15. Let's forget about lambdas and show him some basic crappy code, so he can understand, I hope, I hope.. if (!checkItemGrade(player, Inventory.PAPERDOLL_CHEST) || !checkItemGrade(player, Inventory.PAPERDOLL_RHAND)) { player.sendMessage("S-Grade gear is required in order to enter the zone."); return; } private static final boolean checkItemGrade(Player player, int slotId) { final ItemInstance item = player.getInventory().getPaperdollItem(slotId); if (item != null && item.getItem().getCrystalType() == CrystalType.S) return true; return false; }
  16. Then code with open eyes and active brain. If you check your code, you ONLY added a message. Why it's still processing the code? Bcs you did NOT add the return.
  17. When monster is a champion, you should see a title "Champion". Check champion settings, enable, chage chance, set proper level range. If it's broken, it's broken.
  18. Eh, you are showing us monsters.. but the config is for CHAMPION. Does those mobs are champions?! NO, I don't think so. So, until you don't find a champion monster, you can't say if it's working or not. So, simply change the line to 1 or 2, to give aura for all monsters - if you see the aura, the line is LEGIT and your champion config sux balls, you are wasting our time showing normal monster. Which means, you are...
  19. You can find tutorials on YouTube. Frozen / aCis for Interlude. On aCis forum you have tutorials how to.
  20. Or you simply edited wrong writeC, the comment says it's title color. Try editing this line writeC(_npc.getTeam().getId()); If you have it. Not sure what stands for getTeam for npc but you can try.
  21. The config have been removed. Add it back by yourself.
  22. Remove the if line, it will be ok even with 0 inside the config. Just to let you know, if the config is an int(eger), the if statement would look like: if (Config,CHAMPION_AURA_TYPE > 0) No idea what you mess up - if it was previously working.
  23. Enable the geodata and try again.
  24. If you previously could see it, then you broke the npc info with that writeC, like wrong place / you added new line which is too much. And please for God's sake. If picture is 100x100 dimension, upload it like that, don't keep size full HD.. Just cut it lol.
  25. Eh, Sherlock. Why don't you look one line above? It's clearly NPC, not npcs. Why didn't you try to put NPC there and see if error is gone? One more error, don't you see your pack parse info another way? Look one line above, its NPC.getInt
×
×
  • Create New...