-
Posts
1,403 -
Credits
0 -
Joined
-
Last visited
-
Days Won
32 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by melron
-
Help Fake Players
melron replied to Prostyle1990's question in Request Server Development Help [L2J]
I didn't give you the fix but some message in your console lol.. when you use your command //create_fake_players 50 just check your console and print here what appeared -
Help Fake Players
melron replied to Prostyle1990's question in Request Server Development Help [L2J]
Commands command = (Commands) comm; + System.out.println("length = " + wordList.length); + for (final String str : worldList) + System.out.println(str); + System.out.println("fullString = " + fullString); if (!activeChar.getPlayerAccess().CanReload) return false; debug it first... this command should work with value and not only the command... //create_fake_players [value] is the correct one and should work with worldList[1] as value but print em to see what is happening ArrayIndexOutOfBounds exception it means that you are trying to get element of array that not exists. -
Im not sure about what are you talking about, but if you mean you want to make an html to be not closable then you cant. at least from java part. maybe with client edit you will did it
-
Faction Server Interlude!
melron replied to Lighty's question in Request Server Development Help [Greek]
auto lew k egw -
frozen isInsideZone()
melron replied to wongerlt's question in Request Server Development Help [L2J]
just a wrong move at your calcs nothing serious :p -
Faction Server Interlude!
melron replied to Lighty's question in Request Server Development Help [Greek]
geia sou kai esena. den tha einai eukolo na vrethei kapoios na sou dwsei ena leitourgiko pack faction. parola auta uparxoun 1-2 shared alla me provlhmata, opote ean zhtas mazi kai sources tote tha se stenaxorisw. den tha pareis tipota dioti kaneis den tha dwsei toso kopo kai toso xrono tsampa ... ena leitourgiko faction apaitei polu xrono kai gnwsh gia na mhn exei bugs pou den nomizw na uparxei esto kai 1 pou na einai teleio... opote kala tha kaneis na mazepseis merika xrhmata kai na pas sto marketplace :p -
frozen isInsideZone()
melron replied to wongerlt's question in Request Server Development Help [L2J]
because you have wrong values in those zones. you have to double their value from the previous one. since the ZONE_NOSTORE = 32768 , the ZONE_MULTIFUNCTION must be ZONE_NOSTORE*2 .. 32768*2=65536 public static final int ZONE_MULTIFUNCTION = 65536; public static final int ZONE_GRAND = 131072; zone grand = multifunction * 2 and the next one will be zone_grand * 2 = 262144 -
frozen isInsideZone()
melron replied to wongerlt's question in Request Server Development Help [L2J]
it is 'hardcoded'. for better performance change it by urself. 8 |= 2 is like 8 = 8 | 2 . = 10 (see that like 8+= 2) it means 1000 (binary) | 0010 (binary) ---------- 1010 (binary)= 10 (decimal) | is bitwise OR possible results: 0,1 . return 1 as result if either of its inputs are 1 and will produce a 0 output if both of its inputs are 0. see this 0 0 = 0 0 1 = 1 1 0 = 1 1 1 = 1 8 & 2 = 0 . it means 1000 (binary) & 0010 (binary) --------- 0000 (binary)= 0 (decimal) & is bitwise AND. possible results : 0,1. to get 1 as result both of the bits must be 1. otherwise the result will be 0. see this: 0 0 = 0 0 1 = 0 1 0 = 0 1 1 = 1 8 ^= 2 is like 8 = 8 ^ 2 . = 10 it means 1000 (binary) ^ 0010 (binary) --------- 1010 (binary) = 10 (decimal) ^ is a bitwise XOR results 0,1. to get 1 as result must have only 1 of the bits the value 1. see this: 0 0 = 0 0 1 = 1 1 0 = 1 1 1 = 0 One live example: you are entering in oly zone. setIsInsideZone(ZONE_OLY); _currentZones from 0 will be 1000000000000 isInsideZone(ZONE_MOTHERTREE) ZONE_MOTHERTREE = 0000000001000 so... to get the result 1 of every pair , must both bits have value 1... the result : 4096 & 8 --------------- 0 1000000000000 (binary) = 4096 (dec) & 0000000001000 (binary) = 8 (dec) ------------------------------------ 0000000000000 (binary) = 0 (dec) isInsideZone: return (_currentZones & zone) != 0; -
convert all html from java into files (for many reasons) and then create your own method to handle byasses. see onBypassFeedBack of your instance how it works and make your own else if (command.startsWith("chat") then add your html . there are many examples for this one. in case you dont want to convert htmls you have to create methods that returning the html as a String. getHtml("data/donate/shop/dshop.htm") and on this getHtml() you have to create your own html via string builder and finally return it as string (sb.toString()).
-
Help Cannot go to town in my custom pvp zone!
melron replied to MaDu7zU's question in Request Server Development Help [L2J]
you are missing spawn location in the xml of your zone. <spawn X="your X" Y="your Y" Z="your Z" /> -
Help Drop Item Enchanted aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
Sorry i cant understand you.. if you want to drop on the floor enchanted items then you are moving wrong... -
Help Drop Item Enchanted aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
remove the for loop dude lol.. its rly useless... what exactly are you trying to do? you need for example 5 db's + 16? if ((Config.ENABLE_DROP_ITEM_ENCHANT) && ((this instanceof Monster))) { if (Config.ENABLE_DROP_ITEM_ENCHANT && this instanceof Monster && getLevel() < (player.getLevel() - 8)) return; if (Rnd.get(100) < Config.DROP_ITEM_ENCHANT[3]) { if (Config.AUTO_LOOT) for (int i = 0; i < Config.DROP_ITEM_ENCHANT[1]; i++) player.getInventory().addEnchantedItem("Reward Enchant: ", Config.DROP_ITEM_ENCHANT[0], 1, Config.DROP_ITEM_ENCHANT[2], player, null); } } } -
Help Drop Item Enchanted aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
just cant be. You won enchanted drop? I dont think so... probably you obtained retail drop but not the custom one -
Help Drop Item Enchanted aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
heh actually the check itself will allow rewards from lvl 1 to 10 without checking the player's lvl :D use the check i gave you. one line check is enough for this thing. -
Help FastList and FastMap question
melron replied to tazerman2's question in Request Server Development Help [L2J]
drop javolution -
Help Drop Item Enchanted aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
sounds logic lol . look again what you did there + if (Config.AUTO_LOOT) + player.doAutoLoot(this, item); + else + dropItem(player, item); + player.getInventory().addEnchantedItem("Reward Enchant: ", Config.DROP_ITEM_ENCHANT[0], Config.DROP_ITEM_ENCHANT[1], Config.DROP_ITEM_ENCHANT[2], player, null); you are adding an item with enchant value after the default drop. 1+1 = 2 :p also what's the logic of this? + for (int i = 1; i < 81; i++) + { + if (i > 10) + { + if (player.getLevel() == i && getLevel() < player.getLevel() - 8) + return; + } + } you can simple do one check if (Config.ENABLE_DROP_ITEM_ENCHANT && this instanceof Monster && getLevel() < (player.getLevel() - 8)) return; also, in order to make enchant system for both loot cases you need a big rework. start by reading how the values from the drop xml are working and add one more value there -
Easiest solution... 30 minute's.. I doubt something is broken in this case cause at the most cases the screen appears the error ...
-
Even if the server is autopick up the bot is not so smart to deactivate the pick up option... it needs manual configuration... So you have chances... :D. SmSmart things can be done to catch them as for example the following one: a mob when spawning in the world have some delay before a player will be able to target it (you can check that when only the full animation of it is displaying properly then you can) but the bot ignoring that and targeting mobs instant ;) so here is one more thing to catch them :D
-
I would love to see a share from someone based on bot's features.. example instant drop 25 useless items (arrow is good enough) with 40 range for each in order to make a path and check if the player will instant pick up them when the mob die and follow the path... Features like this (not only this) could be a good antibot.. captchas are terrible :D @onTopic as you updating your topic I have to say good job
-
Help How to add abnormal effect to char
melron replied to Blood Tears ♡'s question in Request Server Development Help [L2J]
find the method related to passive skill when armor is +6 set and add your effect there. ( dont forget to remove the effect in case of unequip) P.s you could say some info like what pack you are using... -
Help Vote reward system on high five
melron replied to RemX's question in Request Server Development Help [L2J]
The only error is announcements? -
mythras owning them
-
Guide Create Your Voiced Command In Java
melron replied to SamDev-Coder's topic in Server Shares & Files [L2J]
@Prostyle1990 do not spam in every single topic. Hire a dev or look again what sweets gave you. The answer is there -
Help Olympiad teleport
melron replied to Tehygun's question in Request Server Development Help [L2J]
isn't acis working like this way?