Jump to content

melron

Legendary Member
  • Posts

    1,399
  • Credits

  • Joined

  • Last visited

  • Days Won

    28
  • Feedback

    0%

Everything posted by melron

  1. Yea u found it! as im saying.... Edit: Actually i havent something to show you.. i just want to create this code i havent ready code to show you im just want find this way to split... To explain it again: players using the command .example When the list 'players' collect 50 people the registration will close. after that i want to split the players in these 2 vectors randomly so i can continue work with them... i think you can understand what i mean.. i wanna start making something... atm the code is here but as i said isnt showing something... You dont need these.. Open registrations check registrations Event.java Say2.java checkCommand in Say2.java And in shuffle i want to make this split... So??
  2. What code do you need? i havent ready code that working thats why im asking for help... players = 50 players vec1 = 0 vec2 = 0; how i can randomly split the players to vec1 & vec2. Sorry for no posting my code but i think its rly useless since im looking the way for a split Correct me if im wrong Edit: Actually i havent something to show you.. i just want to create this code
  3. Hello guys! Im trying to find the best way to split 3 Vectors... example: public static Vector<L2PcInstance> players = new Vector<>(); Contains 50 players. I want to split them to 25 - 25 but not taking 1 by 1 .. i want randomly selection in the next 2 vectors public static Vector<L2PcInstance> vec1 = new Vector<>(); public static Vector<L2PcInstance> vec2 = new Vector<>(); Im always missing something and the result isnt correct. Someone can help me? Thank you!!!
  4. Καλές γιορτές και σε εσένα φίλε μου! Καλή χρονιά σε ολους!
  5. Compile problem. isnt update the new changes. check it out
  6. drop the message, player.logout(true);
  7. before player.store() add this player.getAppearance().setSex(newGenre)
  8. con = L2DatabaseFactory.getInstance().getConnection(None) // delete none
  9. create one more array like FORBIDDEN and insert your custom weapons ids CUSTOM = [6367,22] and paste these lines in 73 line (in case u deleted) if idtest in CUSTOM: htmltext += "<tr><td><img src=\""+str(icon)+"\" width=32 height=32></td><td><a action=\"bypass -h Quest q8015_Enchex step1next_" + str(Item.getObjectId()) +"\">" + itemTemplate.getName() + " ["+str(pgrade)+"] " + enchant + "</a></td></tr>" else: htmltext += "<tr><td><img src=\"Icon."+str(icon)+"\" width=32 height=32></td><td><a action=\"bypass -h Quest q8015_Enchex step1next_" + str(Item.getObjectId()) +"\">" + itemTemplate.getName() + " ["+str(pgrade)+"] " + enchant + "</a></td></tr>"
  10. just lol... i mean you have to edit this line bro... Make an array named CUSTOM = [you,ids,here,for,example] and before the line 73 use an if statement for example if idtest not in CUSTOM: .... else: ....
  11. As you can see your icon path is: ct1icon.weapon_dynasty_hammer_i01 if u look closer in line 73 of init.py <img src=\"Icon."+str(icon)+"\" width=32 it load icons with the string of your path and before this string puts Icon. So in this case trying to load the path : Icon.ct1icon.weapon_dynasty_hammer_i01 ....
  12. The code is using one if before it takes the icon from z_market_icons. Did you check the conditions? 1# Your weapon musnt be in FORBIDDEN array (look @ the start) 2# Your weapon template must have duration -1 (db part) 3# Your weapon grade must be 5 (S grade) 4# Your weapon type must be in Types TYPES = ["Sword","Blunt","Dagger","Bow","Etc","Pole","Fist","Dual Sword","Dual Fist","Big Sword","Big Blunt"] 5# Your weapon enchant must be more than 0. if idtest not in FORBIDDEN and itemTemplate.getDuration() == -1 and grade == 5 and itype in TYPES and Item.getEnchantLevel() > 0:
  13. activeChar.getKnownTypeInRadius(L2PcInstance.class, 1250)
  14. i think these errors are showing because activeChar is Character. add a cast or change it to L2PcInstance..
  15. Did u add the configs properly in npcs.properties?
  16. replace _log to LOGGER: LOGGER.info("Error saving showNpcCrest for castle " + getName() + ": " + e.getMessage());
  17. Hello there, Im trying to find a way to change the skill description for example when a character have 1kkk adenas.. example: adena < 1kkk adena >= 1kkk I have to create one more skill like hydro in skillname-e with the new description? if yes how can i switch the link to appear the new skill? ive searched in enchantskill file how the icon is replacing but i didnt get what i need because this is for changing the whole icon (+1 etc)... Edit: if i have to do the same as any enchanted skill with the new description i have to change enchant_skills_tree and plus one more enchant for all those skills? Any suggestion?
  18. You just have to set the quest in every new char in characters_quest table.. p.s i didnt test this but i think this is the right way to do this since it loads from tables ...
  19. what pack you have? find the function that inserting data in characters table when new char created and after that connection add one more that inserting the specific quest to character
×
×
  • Create New...