Jump to content

vampir

Legendary Member
  • Posts

    1,899
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Everything posted by vampir

  1. easy to do, create new zone, in type write NoEnchant now in zone>types create new class, name it L2NoEnchantZone, in method on enter write: character.setInsideZone(L2Character.ZONE_NOENCHANT, true); in method onExit, write: character.setInsideZone(L2Character.ZONE_NOENCHANT, false); now go to L2Character, add new type: public static final byte ZONE_NOENCHANT = 22; now go to RequestEnchantItem class, add there check: if(activeChar.isInsideZone(L2Character.ZONE_NOENCHANT)){ activeChar.sendMessage("You can not enchant here"); return; } Its for h5, no idea how will it be in interlude, hf :)
  2. It can be coded a lot better and it can be a lot more advansed but thx for sharing it here :)
  3. jesus man, if you have got no idea about something, just dont post he can ask here, its not big deal now on topic, checkUseMagicConditions in L2PcInstance is an answer, anything else? :)
  4. yeah but you can make something like that: e.executeUpdate("Drop database "+ Config.DATABASE_URL.substring(23)); check it and let me know if its working
  5. He is asking for tutorial so he dont know how. Download any interlude gm shop and just modify it for a little, changing ingredients and production items, that all u need :)
  6. So what will be sense to have nobless blessing later? pff stop posting useless shares
  7. data/scripts/handlers/chathandlers/ChatTell.java - its there
  8. Except what i can see on the screen shot, you can add skill enchants, when u hold mouse on item, you can make it to show description, enchant, augment, you something like on which place from pvp kills is that char, thats all i got Btw, "Kennen is not noble" "Kennen is a hero" WTF? :D
  9. if u are writing it in l2pcinstance just skip activeChar. so it will be setHeroAura(true) or addSkill(skillid)
  10. It was already shared, as far as i remember, you only need to delete 1 method from l2pcinstance but i cant remember the name, would need to check it out
  11. i dont rly know how this all work on IL but look for any npc, if any file should be in multisell folder, then just change there items
  12. its for sure taking info from database, and infos are updating to database only after restarting i think. but its pretty cool :)
  13. yeah maybe thats truth, anyway i am not sharing anymore, taking care of my own server :)
  14. yeah just realized that limit 4 is not working as i thought, so code would be something like that: private static void haveFun(L2PcInstance player) throws SQLException{ Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT obj_Id FROM characters ORDER BY pvpkills DESC LIMIT 4"); ResultSet chars = statement.executeQuery(); while(chars.next()){ long obj = chars.getLong("obj_Id"); if(obj == player.getObjectId()){ player.sendMessage("TOP PVP"); player.setNoble(true); } } chars.close(); statement.close(); } catch (Exception e) { System.out.println(e); } finally { con.close(); } }
  15. just find any npc with multisell and change buying item to AA and required item to stones
  16. baaaaaaaaaadly coded Same thing coded better: for (L2Effect effect : activeChar.getAllEffects()) { if(effect.getEffectType() == L2EffectType.FEAR){ activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendMessaget("you can't use unstuck right now"); return false; } }
  17. Ofc nobody respect other's ppl work here, nice share isnt counting for me... You could share some things for same reason as i did, get some karma and get known, many ppl are pming me nowadays to create something for them so it wont be problem later for me to work for money :)
  18. GL with your project, hope that u are gonna get a lot of money on it :) From that team i know that Matim is very skilled and trusted, dont know the rest so i cant tell
  19. If i understood you right, you want top 4 players in online time to be hero Here it is: Make a method in enterworld or somewhere that would look something like that: private static void haveFun(L2PcInstance player){ Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT char_name FROM characters ORDER BY onlinetime DESC LIMIT 4 where char_name = "+ player.getName()); ResultSet chars = statement.executeQuery(); if(chars.next()){ player.setHero(true); } chars.close(); statement.close(); } catch (Exception e) { System.out.println(e); } finally { L2DatabaseFactory.close(con); } } and write at main method in enterworld this: haveFun(activeChar); I didnt test it and i was writing it mainly at this textbox so i cant quarante that it will work, hf :)
  20. st.countTokens() > 1 || st.countTokens() < st.countTokens() != 1 looks better if (player.getJailPlayer() != null) + { + player.sendMessage("You have already voted for a player, "+player.getJailPlayer()+"."); + return; + } this is useless coz player.setJailPlayer isnt used anywhere and you would need to make it null in some moment so there wont be something like they can vote for jail only once forever Anyway saving vote count is useless, if 1 guy would start making bots, sooner or later he would jail that player, better to make list which would contain votes just untill restart, same with jailplayer. Also you can make restrictions for level etc Also its possible to jail player that is on olympiad or such kind of shi ts Also what if there is siege, whole clan is voting for enemy clan leader? Or just hero is writing on hero chat to vote for some1 :) Its not that stupid, just need to work on it a little bit :) Edit: :S Fanky, i thought you can code something better and share it with us :)
  21. there was already something like that shared, even more than once as i remember :)
  22. There wont be lineage 3, project was stolen and its called tera
  23. Earthquake eq = new Earthquake(activeChar.getX(), activeChar.getY(), activeChar.getZ(), intensity, duration); activeChar.broadcastPacket(eq);
  24. he said freya What is wrong with those skills?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock