Jump to content

povis111

Members
  • Posts

    143
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by povis111

  1. Hello, i usually find what i'm looking for, but this time... I need those double fists shown in the title, like in the picture I have found that RelationChanged packet has to do something with it.. but didn't understood if it actually has something to do. So, if someone knows anything, even clues, please reply :-X
  2. You can add a check to add the quest whenevert player talks to a npc, if you don't work with source code, the only way to start the quest is bypass
  3. Well, i got bored of same game servers, so i started making my own kind of type l2jserver too... a server in which i would like to play :)
  4. Hi, hero weapons equiping and stuff is managed in the source code, but the weapon give is managed in a python script. Easiest way would be remaking the client side files, making hero weapons look like other weapons and be named other names. Ofcourse, statuses can be remade in gameserver/xml/stats/weapon usually. If you don't want them to have hero weapon stats. LoL i accidentally wrote in the Greek section. I'm so sorry xD
  5. that's a default code in my pack.... i could have done that... but i just didn't :D
  6. Lol, i don't think that's mutch of a code with 2. In fact, i could bet that it's related to PcKnownList.java class. I think imma make that... I don't know if this works.. but try finding 'public void refreshInfos()' in PcKnownList.java and add a check for offline traders. I don't know how to check if the player is in offline trade, just try this: public void refreshInfos() { for (L2Object object : _knownObjects.values()) { if (object instanceof L2PcInstance && ((L2PcInstance) object).inObserverMode() || ((L2PcInstance) object).getOfflineStartTime()>0) continue; sendInfoFrom(object); } } oh i misread xD it's just stores :D public void refreshInfos() { for (L2Object object : _knownObjects.values()) { if (object instanceof L2PcInstance && ((L2PcInstance) object).inObserverMode() || ((L2PcInstance) object).isInStoreMode() || ((L2PcInstance) object).isInCraftMode()) continue; sendInfoFrom(object); } }
  7. try it like this: @Override public void onSpawn() { if(this.getSpawn().getNpcid()==12345/*frintezza id*/ || this.getSpawn().getNpcid()==12345/*valakas id*/ || this.getSpawn().getNpcid()==12345/*baium id*/ || this.getSpawn().getNpcid()==12345/*antharas id*/ ) { Earthquake eq = new Earthquake(this.getSpawn().getLocx(), this.getSpawn().getLocy(), this.getSpawn().getLocz(), 14, 3); Broadcast.toAllOnlinePlayers(eq); } super.onSpawn(); if(!this.getSpawn().is_customBossInstance()) GrandBossManager.getInstance().addBoss(this); }
  8. you must have mistaken something when applying the code... it would be faster if you pm'ed me your skype
  9. Here's an answer: In your case, you're using frozen, so i downloaded l2jfrozen and made the thing, but didn't test it. As you can see, you have to replace '12345' with your boss ids. Good luck :poker face: @Override public void onSpawn() { if(this.getSpawn().getNpcid()==12345/*frintezza id*/ || this.getSpawn().getNpcid()==12345/*valakas id*/ || this.getSpawn().getNpcid()==12345/*baium id*/ || this.getSpawn().getNpcid()==12345/*antharas id*/ ) { Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3); Broadcast.toAllOnlinePlayers(eq); } super.onSpawn(); if(!this.getSpawn().is_customBossInstance()) GrandBossManager.getInstance().addBoss(this); }
  10. well, for that, you gonna have to add a boss id check somehow....
  11. what do you mean? fix what is wrong, i don't see it :poker face:
  12. Here's a quick guide that i think would work 1. Find the L2GrandBossInstance.java between gamserver/model/actor/instance 2. Find CursedWeapon.java between gamserver/model/ 3. Find this in CursedWeapon.java private void dropIt(L2Attackable attackable, L2PcInstance player, L2Character killer, boolean fromMonster) { _isActivated = false; if (fromMonster) { _item = attackable.dropItem(player, _itemId, 1); _item.setDropTime(0); // Prevent item from being removed by ItemsAutoDestroy // RedSky and Earthquake ExRedSky packet = new ExRedSky(10); Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3); Broadcast.toAllOnlinePlayers(packet); Broadcast.toAllOnlinePlayers(eq); } 4. Find this in L2GrandBossInstance.java @Override public void onSpawn() { setIsNoRndWalk(true); super.onSpawn(); } 5. Take lines from CursedWeapon.java and paste them in L2GrandBossInstance.java @Override public void onSpawn() { Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3); Broadcast.toAllOnlinePlayers(eq); setIsNoRndWalk(true); super.onSpawn(); } 6. Don't forget to paste imports in GrandBossInstance.java (should look similar) import net.sf.l2j.gameserver.network.serverpackets.Earthquake; import net.sf.l2j.gameserver.util.Broadcast; 7. I don't know if this works, but it should. Good luck :happyforever:
  13. You're a very well skilled guy, goodluck :)
  14. What do you mean by 'anything', yes, i only changed imports and textbuilder > stringbuilder. But i still changed something... Btw, i was asked to do this and thought some more people would need it ;)
  15. Hey guys, i'm going to share Grand Boss Info Manager... for aCis. Tested and works on rev. 290. The link: http://www68.zippyshare.com/v/97642276/file.html Install: 1. put BossRespawn folder into scripts/custom/ 2. add into scripts.cfg file custom/BossRespawn/BossRespawn.java 3. Change NPC_ID=30951; in BossRespawn.java into any npc id you want, just keep in mind that npc's type must be L2NpcInstance. 4. Credits to BigBoss and Dleogr. Remade to work by povis111.
  16. The topic says it has sql... so, i don't know what you downloaded...
  17. Well, when, you create a scheme, it's obviously stored somewhere. That somwhere is, in the mysql database. So, you didn't execute sql files into the database ;). That's what the error says " "db.buffsets" does not exists "
  18. Use the guide... you don't have to make any instances... it's a quest
  19. thanks ;D i had no idea how quest start works... the code was very hard for me to understand in there :)
  20. LOL not like that.... it should be st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp()) setCurrentCp/setCurrentMp
  21. When loading buffs listed in all of the types, all buffs are also loaded into a one arraylist, from which i check whether the buff is added or not... with the 'checkAvailability(id)' ...
  22. NO IT'S NOT! You should test yourself, before trying to prove such nonsense...
  23. What? no it's NOT, 1st + else if (_command.startsWith("Buffer ")) + { + try { + if (activeChar.getTarget() instanceof L2BufferInstance && activeChar.isInsideRadius(activeChar.getTarget(), L2Npc.INTERACTION_DISTANCE, false, false)) + ((L2BufferInstance) activeChar.getTarget()).onBypassFeedback(activeChar, _command.replace("Buffer ", "")); + } catch (Exception e) {_log.info(e + " / " +e.getMessage()); } + } 2nd + int type = Integer.parseInt(st.nextToken()); + int page = Integer.parseInt(st.nextToken()); + int id = Integer.parseInt(st.nextToken()); + + if(data.checkAvailability(id)) + SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)).getEffects(player, player); + public boolean checkAvailability(int id){ + try{ + if(allSkills.contains(SkillTable.getInstance().getInfo(id, SkillTable.getInstance().getMaxLevel(id)))) + return true; + }catch(Exception e){_log.info("Exception in checking skill availability: " + e);} + return false; + } but that try/catch was really unnecessary :(
  24. I have been working on this buffer for a long time, making it from 0 and slowly... a lot of necessary stuff is missing in it so count it as a tryout or beta buffer, whatever you call it... i know that if you looked at the code the first question from you would be: 'Why So Many try/catch Statements?' Well, thats because i had lots of errors... I'm not puting any video cause i want a little bit of sleep... video or screens tomorrow... tested and working fine :) lol a little bit wrong section xD i would be glad if someone moved it to l2jserver section ;D here's a vid: back to adding some neccessary features ;D (updated the link) http://www59.zippyshare.com/v/12775127/file.html UPDATE: 1. Buffs cancel 2. Current buffs save to a scheme 3. Heal all
×
×
  • Create New...