Judgement Posted September 5, 2009 Share Posted September 5, 2009 The NPC.sql is correct; if I change it to a different class, like L2NPC, it'll spawn, but it just becomes a regular NPC, not the buffer. And yeah, those lines are there. Sorry for troubling you all with this problem... =/ Link to comment Share on other sites More sharing options...
Emrys Posted September 13, 2009 Share Posted September 13, 2009 I havent read the code... i want toask, It heals your mana and HP every time you take the buffs? Link to comment Share on other sites More sharing options...
DrHouse__ Posted September 13, 2009 Author Share Posted September 13, 2009 yep Link to comment Share on other sites More sharing options...
Emrys Posted September 13, 2009 Share Posted September 13, 2009 yep Thanks for your answer, I download it... Iread 3 times all the Java files and I cant find where it heals HP because I want to remove it) Maybe I am Blind? where it is? Link to comment Share on other sites More sharing options...
DrHouse__ Posted September 13, 2009 Author Share Posted September 13, 2009 Cant remember, try following givebuffs bypass Link to comment Share on other sites More sharing options...
Emrys Posted September 13, 2009 Share Posted September 13, 2009 That's what i did and I can say that you have donwa great job! But Just look:: if (currentCommand.startsWith("givebuffs")) { String targettype = st.nextToken(); String scheme_key = st.nextToken(); int cost = Integer.parseInt(st.nextToken()); if (cost == 0 || cost <= player.getInventory().getAdena()) { L2Character target = player; if (targettype.equalsIgnoreCase("pet")) target = player.getPet(); else if (target != null) { for (L2Skill sk : CharSchemesTable.getInstance().getScheme(player.getObjectId(), scheme_key)) { sk.getEffects(this, target); } player.reduceAdena("NPC Buffer", cost, this, true); } else { player.sendMessage("Incorrect Pet"); // go to main menu NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile(PARENT_DIR+"menu.htm"); sendHtmlMessage(player, html); } } else { player.sendMessage("Not enough adena"); showGiveBuffsWindow(player, targettype); } } Link to comment Share on other sites More sharing options...
Emrys Posted September 14, 2009 Share Posted September 14, 2009 bump Link to comment Share on other sites More sharing options...
politsopoulos Posted September 15, 2009 Share Posted September 15, 2009 thanx mate Link to comment Share on other sites More sharing options...
Chrome Posted October 5, 2009 Share Posted October 5, 2009 sry, delete this post, i've just found the answer Link to comment Share on other sites More sharing options...
evilgenx Posted October 6, 2009 Share Posted October 6, 2009 Very cool. Tnx! Link to comment Share on other sites More sharing options...
MaxPowerGR Posted October 12, 2009 Share Posted October 12, 2009 can i ask something ? is there a way to make this buffer without the schemes ? just a window with htm buttons for buffs and non-closed window while clicking each buff.. ? i mean a core buffer without schemes ^^ thanks :) Link to comment Share on other sites More sharing options...
~GeFriDo~ Posted October 21, 2009 Share Posted October 21, 2009 Dude the buffer rocks...! Thank you for this.. Link to comment Share on other sites More sharing options...
repxl Posted November 28, 2009 Share Posted November 28, 2009 no work for me :( and i dont know then what do with the .java files this i cannot apply patch it write me error. at the begin check it out Link to comment Share on other sites More sharing options...
Intrepid Posted November 28, 2009 Share Posted November 28, 2009 no work for me :( and i dont know then what do with the .java files this i cannot apply patch it write me error. at the begin check it out insert it by hand rofl... Link to comment Share on other sites More sharing options...
stefanis Posted January 11, 2010 Share Posted January 11, 2010 that's a nice share... thanks man :) Link to comment Share on other sites More sharing options...
Recommended Posts