-
Posts
146 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by milosvamp
-
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
It's something else, not just stackable items...I already got the answer and it works... but i am just having problem with Eclipse at the moment. Thank you Porthos -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
long code.... deleted because it is fixed -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Now the code is working perfectly. Eclipse is not showing any problems.... But i can't compile anymore.... for no reason.... I compiled last night perfectly fine..... Wtf.... -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
I did that, and i showed you the problem that is eclipse showing. -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
I've found the line, but what to do with it? Where to insert this code that the guy gave me ? :X -
Hello. I added some additional loot into Treasure Chests.... a example looks like this: <npc id="21822" level="80" type="L2Chest" name="Treasure Chest"> <!-- Confirmed CT2.5 --> <race>CONSTRUCT</race> <sex>MALE</sex> <acquire expRate="1.323" sp="996" /> <stats str="40" int="21" dex="30" wit="20" con="43" men="20"> <vitals hp="3137.4936216" hpRegen="8.84" mp="1884.48" mpRegen="3.12" /> <attack physical="1005.2800576" magical="713.935000064" random="50" critical="1" accuracy="17" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" /> <defence physical="372.1819192" magical="247.802921663855" evasion="4" /> <attribute> <defence fire="20" water="20" wind="20" earth="20" holy="20" dark="20" /> </attribute> <speed> <walk ground="80" /> <run ground="165" /> </speed> <hitTime>560</hitTime> </stats> <status undying="false" /> <skillList> <skill id="4045" level="1" /> <!--Resist Full Magic Attack --> <skill id="4408" level="1" /> <!--HP Increase (1x) --> <skill id="4409" level="1" /> <!--MP Increase (1x) --> <skill id="4410" level="11" /> <!--Average P. Atk. --> <skill id="4411" level="11" /> <!--Average M. Atk. --> <skill id="4412" level="11" /> <!--Average P. Def. --> <skill id="4413" level="11" /> <!--Average M. Def. --> <skill id="4414" level="2" /> <!--Standard Type --> <skill id="4415" level="5" /> <!--Blunt Weapons --> <skill id="4416" level="2" /> <!--Magic Creatures --> <skill id="4789" level="8" /> <!--NPC High Level --> </skillList> <exCrtEffect>false</exCrtEffect> <ai aggroRange="300" clanHelpRange="300" isAggressive="false" /> <dropLists> <death> <group chance="70"> <item id="57" min="1200" max="2449" chance="100" /> <!-- Adena --> </group> <group chance="0.6787999868392944"> <item id="12268" min="1" max="1" chance="5.7237" /> <!-- Common Item - Sealed Shield of Nightmare --> <item id="5495" min="1" max="1" chance="33.5054" /> <!-- Sealed Shield of Nightmare Fragment --> <item id="12269" min="1" max="1" chance="4.0045" /> <!-- Common Item - Sealed Helm of Nightmare --> <item id="5527" min="1" max="1" chance="26.3809" /> <!-- Sealed Helm of Nightmare Design --> <item id="12261" min="1" max="1" chance="4.0045" /> <!-- Common Item - Sealed Majestic Circlet --> <item id="5528" min="1" max="1" chance="26.381" /> <!-- Sealed Majestic Circlet Design --> </group> <group chance="4.119699954986572"> <item id="1895" min="1" max="1" chance="77.9066" /> <!-- Metallic Fiber --> <item id="4040" min="1" max="1" chance="5.4535" /> <!-- Mold Lubricant --> <item id="4042" min="1" max="1" chance="4.5446" /> <!-- Enria --> <item id="4043" min="1" max="1" chance="9.0891" /> <!-- Asofe --> <item id="960" min="1" max="1" chance="0.1091" /> <!-- Scroll: Enchant Armor (S-Grade) --> <item id="8732" min="1" max="1" chance="2.2723" /> <!-- Life Stone - Level 76 --> <item id="8742" min="1" max="1" chance="0.5681" /> <!-- Mid-Grade Life Stone - Level 76 --> <item id="8752" min="1" max="1" chance="0.0567" /> <!-- High-Grade Life Stone - Level 76 --> <item id="8762" min="1" max="1" chance="0.0567" /> <!-- Top-Grade Life Stone - Level 76 --> </group> <group chance="10.8167999982833862"> <item id="8732" min="1" max="1" chance="0.2002" /> <!-- Life Stone - Level 76 --> <item id="8742" min="1" max="1" chance="0.05" /> <!-- Mid-Grade Life Stone - Level 76 --> <item id="8752" min="1" max="1" chance="0.005" /> <!-- High-Grade Life Stone - Level 76 --> <item id="8762" min="1" max="1" chance="0.005" /> <!-- Top-Grade Life Stone - Level 76 --> </group> <group chance="9.8167999982833862"> <item id="9573" min="1" max="1" chance="0.2002" /> <!-- Life Stone - Level 80 --> <item id="9574" min="1" max="1" chance="0.05" /> <!-- Mid-Grade Life Stone - Level 80 --> <item id="9575" min="1" max="1" chance="0.005" /> <!-- High-Grade Life Stone - Level 80 --> <item id="9576" min="1" max="1" chance="0.005" /> <!-- Top-Grade Life Stone - Level 80 --> </group> <group chance="5.8167999982833862"> <item id="9546" min="1" max="1" chance="10" /> <!-- Fire Stone --> <item id="9547" min="1" max="1" chance="10" /> <!-- Water Stone --> <item id="9548" min="1" max="1" chance="10" /> <!-- Earth Stone --> <item id="9549" min="1" max="1" chance="10" /> <!-- Wind Stone --> <item id="9550" min="1" max="1" chance="10" /> <!-- Dark Stone --> <item id="9551" min="1" max="1" chance="10" /> <!-- Holy Stone --> </group> <group chance="90.76509952545166"><item id="736" min="1" max="1" chance="90.3692" /> <!-- SOE --><item id="737" min="1" max="1" chance="89.3692" /> <!-- SOR --></group><group chance="70.76509952545166"><item id="5593" min="1" max="1" chance="95.3692" /> <!-- low grade sp scroll --> <item id="5594" min="1" max="1" chance="50.3692" /> <!-- medium grade sp scroll --> <item id="5595" min="1" max="1" chance="5.3692" /> <!-- highe grade sp scroll --></group><group chance="15.76509952545166"><item id="960" min="1" max="1" chance="95.3692" /> <!-- EAS --><item id="959" min="1" max="1" chance="10.3692" /> <!-- EWS --></group></death><corpse> <item id="6688" min="1" max="1" chance="0.5261" /> <!-- Forgotten Blade Edge --> <item id="6689" min="1" max="1" chance="0.5162" /> <!-- Basalt Battlehammer Head --> <item id="6690" min="1" max="1" chance="0.5271" /> <!-- Imperial Staff Head --> </corpse> </dropLists> <collision> <radius normal="8.5" /> <height normal="8.5" /> </collision> </npc> -First 2 groups of droplist are working pretty fine, because they were default ones.... -I added those under second group.... It works fine, but not how i want it to work..... It should drop the loot ONLY when you OPEN the chest with maestro's key. -But the PROBLEM is that it drops also when you just KILL the chest. -I want to make it that it doesn't drop the loot by only killing it. I want to get this loot only by OPENING the chest with the key. Any ideas ?
-
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
hm ? -
Hello. I added some additional loot into Treasure Chests.... a example looks like this: <npc id="21822" level="80" type="L2Chest" name="Treasure Chest"> <!-- Confirmed CT2.5 --> <race>CONSTRUCT</race> <sex>MALE</sex> <acquire expRate="1.323" sp="996" /> <stats str="40" int="21" dex="30" wit="20" con="43" men="20"> <vitals hp="3137.4936216" hpRegen="8.84" mp="1884.48" mpRegen="3.12" /> <attack physical="1005.2800576" magical="713.935000064" random="50" critical="1" accuracy="17" attackSpeed="253" type="BLUNT" range="40" distance="80" width="120" /> <defence physical="372.1819192" magical="247.802921663855" evasion="4" /> <attribute> <defence fire="20" water="20" wind="20" earth="20" holy="20" dark="20" /> </attribute> <speed> <walk ground="80" /> <run ground="165" /> </speed> <hitTime>560</hitTime> </stats> <status undying="false" /> <skillList> <skill id="4045" level="1" /> <!--Resist Full Magic Attack --> <skill id="4408" level="1" /> <!--HP Increase (1x) --> <skill id="4409" level="1" /> <!--MP Increase (1x) --> <skill id="4410" level="11" /> <!--Average P. Atk. --> <skill id="4411" level="11" /> <!--Average M. Atk. --> <skill id="4412" level="11" /> <!--Average P. Def. --> <skill id="4413" level="11" /> <!--Average M. Def. --> <skill id="4414" level="2" /> <!--Standard Type --> <skill id="4415" level="5" /> <!--Blunt Weapons --> <skill id="4416" level="2" /> <!--Magic Creatures --> <skill id="4789" level="8" /> <!--NPC High Level --> </skillList> <exCrtEffect>false</exCrtEffect> <ai aggroRange="300" clanHelpRange="300" isAggressive="false" /> <dropLists> <death> <group chance="70"> <item id="57" min="1200" max="2449" chance="100" /> <!-- Adena --> </group> <group chance="0.6787999868392944"> <item id="12268" min="1" max="1" chance="5.7237" /> <!-- Common Item - Sealed Shield of Nightmare --> <item id="5495" min="1" max="1" chance="33.5054" /> <!-- Sealed Shield of Nightmare Fragment --> <item id="12269" min="1" max="1" chance="4.0045" /> <!-- Common Item - Sealed Helm of Nightmare --> <item id="5527" min="1" max="1" chance="26.3809" /> <!-- Sealed Helm of Nightmare Design --> <item id="12261" min="1" max="1" chance="4.0045" /> <!-- Common Item - Sealed Majestic Circlet --> <item id="5528" min="1" max="1" chance="26.381" /> <!-- Sealed Majestic Circlet Design --> </group> <group chance="4.119699954986572"> <item id="1895" min="1" max="1" chance="77.9066" /> <!-- Metallic Fiber --> <item id="4040" min="1" max="1" chance="5.4535" /> <!-- Mold Lubricant --> <item id="4042" min="1" max="1" chance="4.5446" /> <!-- Enria --> <item id="4043" min="1" max="1" chance="9.0891" /> <!-- Asofe --> <item id="960" min="1" max="1" chance="0.1091" /> <!-- Scroll: Enchant Armor (S-Grade) --> <item id="8732" min="1" max="1" chance="2.2723" /> <!-- Life Stone - Level 76 --> <item id="8742" min="1" max="1" chance="0.5681" /> <!-- Mid-Grade Life Stone - Level 76 --> <item id="8752" min="1" max="1" chance="0.0567" /> <!-- High-Grade Life Stone - Level 76 --> <item id="8762" min="1" max="1" chance="0.0567" /> <!-- Top-Grade Life Stone - Level 76 --> </group> <group chance="10.8167999982833862"> <item id="8732" min="1" max="1" chance="0.2002" /> <!-- Life Stone - Level 76 --> <item id="8742" min="1" max="1" chance="0.05" /> <!-- Mid-Grade Life Stone - Level 76 --> <item id="8752" min="1" max="1" chance="0.005" /> <!-- High-Grade Life Stone - Level 76 --> <item id="8762" min="1" max="1" chance="0.005" /> <!-- Top-Grade Life Stone - Level 76 --> </group> <group chance="9.8167999982833862"> <item id="9573" min="1" max="1" chance="0.2002" /> <!-- Life Stone - Level 80 --> <item id="9574" min="1" max="1" chance="0.05" /> <!-- Mid-Grade Life Stone - Level 80 --> <item id="9575" min="1" max="1" chance="0.005" /> <!-- High-Grade Life Stone - Level 80 --> <item id="9576" min="1" max="1" chance="0.005" /> <!-- Top-Grade Life Stone - Level 80 --> </group> <group chance="5.8167999982833862"> <item id="9546" min="1" max="1" chance="10" /> <!-- Fire Stone --> <item id="9547" min="1" max="1" chance="10" /> <!-- Water Stone --> <item id="9548" min="1" max="1" chance="10" /> <!-- Earth Stone --> <item id="9549" min="1" max="1" chance="10" /> <!-- Wind Stone --> <item id="9550" min="1" max="1" chance="10" /> <!-- Dark Stone --> <item id="9551" min="1" max="1" chance="10" /> <!-- Holy Stone --> </group> <group chance="90.76509952545166"><item id="736" min="1" max="1" chance="90.3692" /> <!-- SOE --><item id="737" min="1" max="1" chance="89.3692" /> <!-- SOR --></group><group chance="70.76509952545166"><item id="5593" min="1" max="1" chance="95.3692" /> <!-- low grade sp scroll --> <item id="5594" min="1" max="1" chance="50.3692" /> <!-- medium grade sp scroll --> <item id="5595" min="1" max="1" chance="5.3692" /> <!-- highe grade sp scroll --></group><group chance="15.76509952545166"><item id="960" min="1" max="1" chance="95.3692" /> <!-- EAS --><item id="959" min="1" max="1" chance="10.3692" /> <!-- EWS --></group></death><corpse> <item id="6688" min="1" max="1" chance="0.5261" /> <!-- Forgotten Blade Edge --> <item id="6689" min="1" max="1" chance="0.5162" /> <!-- Basalt Battlehammer Head --> <item id="6690" min="1" max="1" chance="0.5271" /> <!-- Imperial Staff Head --> </corpse> </dropLists> <collision> <radius normal="8.5" /> <height normal="8.5" /> </collision> </npc> -First 2 groups of droplist are working pretty fine, because they were default ones.... -I added those under second group.... It works fine, but not how i want it to work..... It should drop the loot ONLY when you OPEN the chest with maestro's key. -But the PROBLEM is that it drops also when you just KILL the chest. -I want to make it that it doesn't drop the loot by only killing it. I want to get this loot only by OPENING the chest with the key. Any ideas ?
-
Find out what ID your item has by using commat ALT+G then type the name of your scroll. And then heck it's configutations in game/data/stats/items.
-
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Thank you pirama but i am having problems... 1) Problem location 2) Problem Overview 3) Solution from Eclipse ( EDIT: I tried all of these solutions...they all didn't fix anything...) What should i do :/ ? -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Idk.... this happens ... is it a good sign ? -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
I am sorry but i don't have it here.... https://i.imgsafe.org/4a/4a96d57769.jpeg -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Ok. Here it is this is all i've got: https://i.imgsafe.org/48/48d8ed97be.jpeg and here are the codes from both inside: L2PcInstanceAction.java: package handlers.actionhandlers; import com.l2jserver.gameserver.GeoData; import com.l2jserver.gameserver.ai.CtrlIntention; import com.l2jserver.gameserver.enums.InstanceType; import com.l2jserver.gameserver.enums.PrivateStoreType; import com.l2jserver.gameserver.handler.IActionHandler; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.Location; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.entity.TvTEvent; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; public class L2PcInstanceAction implements IActionHandler { private static final int CURSED_WEAPON_VICTIM_MIN_LEVEL = 21; /** * Manage actions when a player click on this L2PcInstance.<BR> * <BR> * <B><U> Actions on first click on the L2PcInstance (Select it)</U> :</B><BR> * <BR> * <li>Set the target of the player</li> <li>Send a Server->Client packet MyTargetSelected to the player (display the select window)</li><BR> * <BR> * <B><U> Actions on second click on the L2PcInstance (Follow it/Attack it/Intercat with it)</U> :</B><BR> * <BR> * <li>Send a Server->Client packet MyTargetSelected to the player (display the select window)</li> <li>If target L2PcInstance has a Private Store, notify the player AI with AI_INTENTION_INTERACT</li> <li>If target L2PcInstance is autoAttackable, notify the player AI with AI_INTENTION_ATTACK</li> * <BR> * <BR> * <li>If target L2PcInstance is NOT autoAttackable, notify the player AI with AI_INTENTION_FOLLOW</li><BR> * <BR> * <B><U> Example of use </U> :</B><BR> * <BR> * <li>Client packet : Action, AttackRequest</li><BR> * <BR> * @param activeChar The player that start an action on target L2PcInstance */ @Override public boolean action(L2PcInstance activeChar, L2Object target, boolean interact) { // See description in TvTEvent.java if (!TvTEvent.onAction(activeChar, target.getObjectId())) { return false; } // Check if the L2PcInstance is confused if (activeChar.isOutOfControl()) { return false; } // Aggression target lock effect if (activeChar.isLockedTarget() && (activeChar.getLockedTarget() != target)) { activeChar.sendPacket(SystemMessageId.FAILED_CHANGE_TARGET); return false; } // Check if the activeChar already target this L2PcInstance if (activeChar.getTarget() != target) { // Set the target of the activeChar activeChar.setTarget(target); } else if (interact) { final L2PcInstance player = target.getActingPlayer(); // Check if this L2PcInstance has a Private Store if (player.getPrivateStoreType() != PrivateStoreType.NONE) { activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, player); } else { // Check if this L2PcInstance is autoAttackable if (player.isAutoAttackable(activeChar)) { if ((player.isCursedWeaponEquipped() && (activeChar.getLevel() < CURSED_WEAPON_VICTIM_MIN_LEVEL)) // || (activeChar.isCursedWeaponEquipped() && (player.getLevel() < CURSED_WEAPON_VICTIM_MIN_LEVEL))) { activeChar.sendPacket(ActionFailed.STATIC_PACKET); } else { if (GeoData.getInstance().canSeeTarget(activeChar, player)) { activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player); } else { final Location destination = GeoData.getInstance().moveCheck(activeChar, player); activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, destination); } activeChar.onActionRequest(); } } else { // This Action Failed packet avoids activeChar getting stuck when clicking three or more times activeChar.sendPacket(ActionFailed.STATIC_PACKET); if (GeoData.getInstance().canSeeTarget(activeChar, player)) { activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, player); } else { final Location destination = GeoData.getInstance().moveCheck(activeChar, player); activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, destination); } } } } return true; } @Override public InstanceType getInstanceType() { return InstanceType.L2PcInstance; } } and the L2PcInstanceActionShift.java : package handlers.actionshifthandlers; import com.l2jserver.gameserver.enums.InstanceType; import com.l2jserver.gameserver.handler.AdminCommandHandler; import com.l2jserver.gameserver.handler.IActionShiftHandler; import com.l2jserver.gameserver.handler.IAdminCommandHandler; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; public class L2PcInstanceActionShift implements IActionShiftHandler { @Override public boolean action(L2PcInstance activeChar, L2Object target, boolean interact) { if (activeChar.isGM()) { // Check if the gm already target this l2pcinstance if (activeChar.getTarget() != target) { // Set the target of the L2PcInstance activeChar activeChar.setTarget(target); } IAdminCommandHandler ach = AdminCommandHandler.getInstance().getHandler("admin_character_info"); if (ach != null) { ach.useAdminCommand("admin_character_info " + target.getName(), activeChar); } } return true; } @Override public InstanceType getInstanceType() { return InstanceType.L2PcInstance; } } -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Open your damn fucking mind. If you can do coding it doesn't mean that you are king of 7 Worlds. -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Θα Σπασω Κουπες !!!!!!!! Dude ! You are annoying me, literally ! Nobody asked you to view or answer my questions here. If you don't wanna help, just ignore it, damn ! And i don't want anyone to enter my PC and ' fix it '. I don't have a lot of time, so i post stuff here, to see if someone can help. But i forgot to mention ' WHEN SOMEBODY CANT HELP OR WON'T, PLEASE IGNORE ' So pleaaaaaaaaaaaaaaaaaaaaaaseeeeeeeeeeeeeeeeeeee. Keep your eyes and keyboard away from my thread. THANK YOU. -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
Nobody asked you for your opionion. Thank you. -
Help Inventory Full
milosvamp replied to milosvamp's question in Request Server Development Help [L2J]
There is no option in configuration files for that ? Ty for your help. -
Fixed. Can be locked. Thanks.
-
Can be locked. Ty.
-
Can be locked. Ty.
-
Fixed. Can be locked. Thanks.
-
Fixed.... You should just say that i should use another Builder.... i used different builder, that's why it didn't work. But thank you for your time and attention. Can be locked. Ty.
-
All of them. Did you edit server.properties and LoginServer.properties ? EDIT: Oh okay, nice! Goodluck and ask us anytime !
-
Otherwise go to Help -> Eclipse Marketplace -> Search -> Gradle Integration -> then download and install it -> restart Eclipse. You are done.