Search the Community
Showing results for tags 'Code'.
-
Pretty self explanatory. This is a new Packet in order to open any url that you want to the user's pc. Can be used in vote rewards and shit like that. It is for Interlude. package net.sf.l2j.gameserver.network.serverpackets; /** * @author Elfocrash * */ public class OpenUrl extends L2GameServerPacket { private final String _url; public OpenUrl(String url) { _url = url; } @Override protected final void writeImpl() { writeC(0x70); writeS(_url); } } Usage: activeChar.sendPacket(new OpenUrl("https://www.google.co.uk/")); Client side: entry.dll Engine.dll in case j
-
How does it works? our system automatically pop-up validation window to characters oscillating around specified number of killed monsters, in order to verify possible bots use. player have to match randomly generated colours within <also> randomly chosen patterns (time is limited). forgive me guys, but since now any instant changes or system updates will be available only for acis customers. authors: credits: @Agent @Rootware @Caparso @Hasha @SweeTs
-
<?php // // Crest read from database by nightwolf // // Description // Usage 1: show a crest stored in database by using a clan id (form or var) // Usage 2: save a crest in a file "crests/[clanid].png" (where [clanid] is the clan id in database) // // Notes // 1: Cannot be SQL injected, this system uses prepared statements and PDO driver. // 2: Checks only for integer values if not then nothing happens // 3: Make sure you have in same level of this file a folder named "crests" with write permissions // Database values $ip = ""; $dbname = ""; $user = ""; $pass = ""; // show directly image
-
Hi guys. I have just one question regarding core side and using the SQL statements to update/insert datas into the database. How could i implement the following query when a new character is created? ("UPDATE characters SET botprev_fail_account = (SELECT botprev_fail_account FROM accounts WHERE account_name=login") I want that the new character that's created on the same account to have the botprev_fail_account value taken from the ACCOUNTS table and inserted into botprev_fail_account from CHARACTERS table. The account_name and login have the same va
-
I come to share something I did for my server. improvements please can comment, please remove the part of Event code : https://pastebin.com/raw/Xa9dU7zd
-
Hello young people, Here is a simple protection. Block skill use equipped ward during territory war. In -> l2jserver/gameserver/network/clientpackets/RequestMagicSkillUse.java method -> runImpl() search for: // Check the validity of the skill if (skill != null) { Add: + if (activeChar.isInSiege()) + { + //Block Shadow Step, Blink and Warp with Ward + if (skill.getId() == 628 || skill.getId() == 1448 || skill.getId() == 821) + { + //check player equiped ward +
-
Hello Friends, well here I come to share the event of PC Bang Point Interlude DP: L2JaCis REV: 354 Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 9) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -164,6 +164,7 @@ import net.sf.l2j.gameserver.network.serverpackets.ExFishingEnd; import net.sf.l2j.gameserver.network.serverpackets.ExFishingStart; import net.sf.l2j.g
-
Good night, I come to share a code that I made for my project, I will give a simple tutorial how to use the music part of it. Code: https://pastebin.com/raw/ezfEX1kJ Well I made the code simple and very easy to edit, you only need to edit in one place to add messages, music, PVP amount !! The format is PVP, Message and Music quantity. PVP amount = 2 Generated Message = Double Kill Music = "" here the music. DOUBLE_KILL (2, "Double Kill", "YOUR MUSIC"), The song is on you, I hope you like it and don't forget
-
Good evening, I come to share a code that I made for my project. Code : https://pastebin.com/raw/sWbUMqiG Good as I do not like to use these ready made codes I made this, as aCis is clean and light, I will explain how to use my code. I took Draconic as an example. <item id="7575" type="Weapon" name="Draconic Bow"> <set name="icon" val="icon.weapon_draconic_bow_i00" /> <set name="default_action" val="equip" /> <set name="weapon_type" val="BOW" /> <set name="bodypart" val="lrhand" /> <set name="r
-
I come to share a code that I made. It is intended for clan leaders to leave a message for their members. código : https://pastebin.com/raw/YACt3bjn Add this to your system in commandname-e.dat 115 114 notice htm message by clan owner message if a member tries to create a news story
-
Event Demo Procure por commandname-e em seu sistema e adicione no final dele 115 114 register 116 115 unregister /** restrictions for event */ * Cannot Potion in Event. * Cannot Summon in Event. * Cannot Restart in Event. * Cannot Logout in Event. * Cannot attack same team. code v1 : https://pastebin.com/YRaCbU9T code v2 : * added event prize name announcement. Thank you @StinkyMadness * CopyOnWriteArrayList moved to ConcurrentHashMap.newKeySet, for better performance. Thank you @Tryskell
-
+++ java/net/sf/l2j/gameserver/network/clientpackets/RequestRecipeShopListSet.java +import net.sf.l2j.gameserver.model.zone.type.L2MultiFunctionZone; @@ -62,6 +63,12 @@ return; } + if (player.isInsideZone(ZoneId.MULTI_FUNCTION) && !L2MultiFunctionZone.store_zone) + { + player.sendMessage("You cannot craft while inside Multifunction zone."); + return; + } + if (!player.isInsideZone(ZoneId.NO_STORE))
-
Hello, i was searching for this command but i didnt found it in our forum so i decided to share it, below you can preview the html's How to install it? EASY: 1. GameServer\data\html\mods (add here the repair FOLDER not only the files) 2. GameServer\data\scripts\handlers\voicedcommandhandlers (only the file Repair.java) (dont forget to edit your masterhandler.java script) [Hidden Content] Credits: Szponiasty
-
Currently using L2j Acis and I saw ppl trying to find out how to put the starting adena code back in . So what i did was , take the code from an another project and put it back on L2jAcis . Simple , yet some ppl still searching for it ... so go to net.sf.l2j.gameserver.network.clientpackets open CharacterCreate.java Use crtl+F and search for the line without the + then paste the code and remove the +. newChar.setCurrentMp(newChar.getMaxMp()); + +// Starting Items +if (Config.STARTING_ADENA > 0) + newChar.addAdena("Init", Config.STARTING_ADENA, nul
-
My first code 2 days work. so this is a L2Chaotic zone with change map, The maps is change random and he teleport players in town before change map he can't go or stay in old map becuase he teleport him in change map maybe need more work. but i try ;D So get it! @author L2jLuna Dev. Base: L2jFrozen http://pastebin.com/HdZFXE8b
-
Hello chaters, - With currect code you can setup and event with spawning raidbosses on specific times. - You can use the @melron code to create easy that zones (Code Here ). Code (Updated 03/01/2019) : [Hidden Content] Credits : StinkyMadness
-
https://pastebin.com/epSa6FQw credits : Williams
-
-
hello..i have made this right now and i will share it..tested and works... but you have to restart to change the sex of the Character Have a nice Day.. ps.add a New item and register you handler and like this <set name="handler" val="ChangeSexItem" /> ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/handler/ItemHandler.java =================================================================== --- java/net/sf/l2j/gameserver/handler/ItemHandler.java (revision 4) +++ java/net/sf/l2j/gameserver/handler/ItemHandler.java (working copy) @@ -24,6 +24,
-
I saw a guy trying to sell this code for 20E.... I thing you get what it is right? You have a chance to craft items with enchant. the only thing you have to do is to add 2 values in recipes.xml. example: <recipe alias="mk_leather_boots" id="69" material="1931-4;1882-8;1885-1;2130-1" product="40-1" itemId="2176" level="2" mpConsume="84" successRate="100" isDwarven="true"/> You can add enchant by adding enchantChance="70" enchant="4-19" (means you have 70% chance to get a random value from 4 - 19 as enchant) in case you want a constant
-
Hey, correct me if i am wrong, but what i have noticed that 99% interlude packs still have this bug. I saw this in Acis, Frozen, Mobius and actually in all older packs. DIFF: Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java =================================================================== --- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (revision 5) +++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (working copy) @@ -34,7 +34,7 @@ writeD(_activeChar.getX()); writeD(_activeChar.getY()); writeD(_activeChar.getZ()
-
Hello, I created this vote manager when I needed it for my server.Basically,you have to type /vote go get this html window: Then by clicking on any of the buttons will give you 60seconds to vote for the server. /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warra
-
Hi guys, I created a vote reminder that remind players if they can vote every X minutes. Its working with this vote manager, but its easy to add your own vote manager. http://pastebin.com/VbhkfHVD It is for acis Config/VoteReminder.properties Image: ============================================================ Reminder with command: .votes http://pastebin.com/8m0qe3hB img:
-
### Eclipse Workspace Patch 1.0 #P L2J_Server Index: Dist/game/data/handlers\voicedcommandhandler\PvP.java =================================================================== --- Dist/game/data/handlers\voicedcommandhandler\PvP.java (revision 0) +++ Dist/game/data/handlers\voicedcommandhandler\PvP.java (working copy) @@ -0,0 +1,48 @@ +/* +*This program is free software; you can redistribute it and/or modify +*it under the terms of the GNU General Public License as published by +*the Free Software Foundation; either version 2, or (at your option) +*any later version. +* +*This program is distri
-
This little code will shows the real diff range of async between server and client position. By default, this code was maked for aCis but can be use for any L2J forks. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java (revision 1133) +++ java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java (working copy) @@ -2,6 +2,8 @@ import