-
Posts
94 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by TGSLineage2
-
Help format html in a for() with int and string
TGSLineage2 replied to StarSCreams's question in Request Server Development Help [L2J]
I don't quite understand what you want, but there you are creating a table with 1 row and 10 columns -
Help NPC Dialogs
TGSLineage2 replied to disorder25's question in Request Server Development Help [L2J]
Any Exception in your console? -
Help Error loguinserver/gameserver JFrozen
TGSLineage2 replied to heladito's question in Request Server Development Help [L2J]
That is a permissions issue, maybe you are working on linux, go to on the folder where that file, open the console and try this: sudo chmod 775 loggerOut.log -
line.split(">")[2].split("<")[0].replace(",","");
-
Your server must be in a different state than approved, topzone has restrictions regarding the use of its api
-
For total votes count should be https://api.l2topzone.com/v1/server_here-type-your-api-key/getServerData and something like that is his answer {"ok": true,"result": {"totalVotes": "0","serverRank": null}} I think you are using a very old code and that link no longer exists on that site
-
https://l2topzone.com/totalvotes.php?id=6150 this url is no longer working.
-
Help NPC Dialogs
TGSLineage2 replied to disorder25's question in Request Server Development Help [L2J]
Have you made any changes to requestByPassToServer case "npc_"? -
Help NPC Dialogs
TGSLineage2 replied to disorder25's question in Request Server Development Help [L2J]
When you say all the npc do you mean all the npc with the same id or all the npc of the server? -
Help Error with java L2j Acis
TGSLineage2 replied to TexasJunior's question in Request Server Development Help [L2J]
It could be that you have more than one java version installed and it is currently running with a different version than the one you need. -
assuming the method you are using is void type, you should ask at the beginning. if (player.getLevel() <= 80) { player.sendMessage("You don't have the level necessary to perform this action") return; }
-
Try this player.removeExpAndSp(ExperienceData.getInstance().getExpForLevel(55), 0); player.broadcastUserInfo(); Do you want it reduced to 55 or 30 levels?
-
Boolean method that asks if the item exists and you have enough to destroy, if so destroy the item and then execute what is inside the condition.
-
Well it seems that if it is better coded.
-
if (activeChar.getInventory().getAdena() >= 1000000) { activeChar.getInventory().destroyItemByItemId("Delevel manager", 57, 1000000, activeChar, activeChar); activeChar.getInventory().addItem ("Delevel manager", itemApigaId, itemApigaAmount, activeChar, activeChar); activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S).addItemName(itemApigaId).addInt(itemApigaAmount)); activeChar.sendPacket(new ItemList(activeChar, true)); } else { activeChar.sendMessage("You don't have enought Adena"); } Just as this does not give me errors in the acis, I would only have to replace itemApigaId by the identification of that item and itemApigaAmount by the quantity.
-
I have a question, did it work or did it not work?
-
Replace activeChar by player and try the code I gave you
-
I guess it would be something like that: if(activeChar.getInventory().getAdena() >= 1000000){ activeChar.getInventory().destroyItemByItemId("Delevel manager", 57, 1000000, activeChar, activeChar); activeChar.getInventory().addItem("Delevel manager", itemApigaId, itemApigaAmount, activeChar, activeChar); activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S).addItemName(itemApigaId).addInt(itemApigaAmount)); activeChar.sendPacket(new ItemList(activeChar, true)); }else{ activeChar.sendMessage("You dont have enough Adena"); } That you must put in the method where you make the delevel and include the code of the delevel inside the condition adena> 1kk
-
Help Passive Skil
TGSLineage2 replied to HARDECORE's question in Request Server Development Help [L2J]
By a specific race or by an effect for any race it affects -
Guide Editing Html Windows
TGSLineage2 replied to vampir's topic in Server Development Discussion [L2J]
It is rare that you do not find that id in the sysstring-e file, because it seems to me that from 2265 to 2267 they are links to the site, however if it is not there you can put it and write the redirect link for example https: // lineage2. com -
WTS L2Reborn complete anti-captcha & adena
TGSLineage2 replied to Seller12334's topic in Marketplace [Items & Chars]
Does your captcha work with random characters or with images with characters? -
Do you want do it as command or npc? You want the level to go down by 1 or more than 1 or the player to specify how much he wants to go down
-
Discussion Current time and Server time
TGSLineage2 replied to Rest's topic in Server Development Discussion [L2J]
Current time, it is the time of the server at the time you made the call to that dialog, it does not have to do with the time of the siege, those hours coincide when the time of your server is the same as the siege You see, there is no problem with the times in the npc dialog, it shows you the current time of the client and the time of the siege with the time of the person who is making the request, but in the administration panel the time of the Siege according to the time of the host, but when it comes to a remote host those times differ due to the difference in the time zone There seems to be a time difference between your client pc and your server pc of 9 hours. -
ops, it's the H5 version.