Jump to content

Recommended Posts

Posted (edited)

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 ? 

Edited by milosvamp
Posted

Why dont u pay a developer 5 euro to implement this for u? There is no way u can do it ur self.. u must dig java part and add in part where it load npc's

another field called "uponOpen" as boolean and read if group is just for loot and then go check if the skill casted is trigger as key or skill to give the group

else upon drop ignore the group. 

  • 2 weeks later...
Posted
11 hours ago, Sdw said:

shit i don't know how to activate them, i have them alrdy but they don't drop anything.... whyyyyyyyyy ?

 

  • 2 weeks later...
Posted
On 8/26/2017 at 4:30 PM, Sdw said:

L2J have moved all drop in AI it should be on H5, just reuse it.

how to 'reuse it' ? I have it but it doesn't work in game.....why............

Posted
5 minutes ago, Rootware said:

You are registered this AI script or just added?

how do you mean ? When i compile i have TreasureChest.java in  game/data/scripts/ai/group_template

Posted
1 hour ago, milosvamp said:

how do you mean ? When i compile i have TreasureChest.java in  game/data/scripts/ai/group_template

https://bitbucket.org/l2jserver/l2j_datapack/src/cc1988f374fd55490700d398d112ef1e950d5201/dist/game/data/scripts.cfg?at=develop&fileviewer=file-view-default

Posted
59 minutes ago, Rootware said:

ahaaaaaaaaa this is another thing. No there is no Treasure Chest inside....

Posted
1 hour ago, Rootware said:

i ' registered ' it but still nothing.....

ai/group_template/TresureChest.java

 

and here is also the TresureChest.java file from ai/group_template ...

 

https://pastebin.com/iEHWgiJz

 

but NONE of these drops are showed inside game....even after this registration that u said......pffff

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • @Seamless  find this guy , is the best guy that u can find , plus is ULTRA trusted , rare to find trusted in maxcheaters
    • Looking for someone to setup a website for me with account panel and donate panel, I require to explain me how to setup the account panel to be working with player's emails and my lineage2 server and donate panel in order to be working with my paypal and my lineage2 server. Contact me here in forum, I will pick the best offert. Thank you.
    • TILL START - LEFT 3 DAYS ! GRAND OPENING FROM - 12/052025, FRIDAY, 20:00 +3 GMT !
    • SOCNET — BIRTHDAY! Thank you for staying with us! A week of maximum gifts, bonuses, and discounts! Today we celebrate the SOCNET project’s birthday — and YOU get the gifts! We’ve prepared powerful promotions across all our services: ⭐ SOCNET STORE — SHOP (website/telegram) 1. Promo code BIRTHDAY — 20% discount Use it for any product purchase! 2. Gift for a large purchase Spend $200 on any products and choose any item up to $10 — for free! 3. Gift balance for a comment in our store threads "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. ➡ 1 forum = $1 to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. ⭐ SOCNET SMM PANEL 1. Top-up = bonus Top up your balance by $100 and get +$5 to your balance. After topping up — create a ticket in the panel. 2. Gift balance for a comment in our SMM Panel threads "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. ➡ 1 forum = $1 to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. ⭐SOCNET STARS — BOT FOR BUYING TELEGRAM STARS/PREMIUM 1. Large purchase = huge bonus Buy >1000 Stars in one transaction and get +100 Stars as a gift! After purchase, write to support. 2. Gift balance for a comment in our bot threads for star purchases "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. Leave a comment: ➡ 1 forum = +50 Stars to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. ⭐SOCNET SMS SERVICE OF VIRTUAL NUMBERS 1. Top-up with bonus Top up your balance by $50 and get +$10 as a gift. After topping up — simply write to support. 2. Gift balance for a comment in our SMS service threads "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. ➡ 1 forum = $1 to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. Let’s celebrate together! Promotions are valid from 02.12.2025 to 07.12.2025 inclusive. Don’t miss it — these are the best conditions of the year! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • SOCNET — BIRTHDAY! Thank you for staying with us! A week of maximum gifts, bonuses, and discounts! Today we celebrate the SOCNET project’s birthday — and YOU get the gifts! We’ve prepared powerful promotions across all our services: ⭐ SOCNET STORE — SHOP (website/telegram) 1. Promo code BIRTHDAY — 20% discount Use it for any product purchase! 2. Gift for a large purchase Spend $200 on any products and choose any item up to $10 — for free! 3. Gift balance for a comment in our store threads "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. ➡ 1 forum = $1 to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. ⭐ SOCNET SMM PANEL 1. Top-up = bonus Top up your balance by $100 and get +$5 to your balance. After topping up — create a ticket in the panel. 2. Gift balance for a comment in our SMM Panel threads "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. ➡ 1 forum = $1 to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. ⭐SOCNET STARS — BOT FOR BUYING TELEGRAM STARS/PREMIUM 1. Large purchase = huge bonus Buy >1000 Stars in one transaction and get +100 Stars as a gift! After purchase, write to support. 2. Gift balance for a comment in our bot threads for star purchases "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. Leave a comment: ➡ 1 forum = +50 Stars to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. ⭐SOCNET SMS SERVICE OF VIRTUAL NUMBERS 1. Top-up with bonus Top up your balance by $50 and get +$10 as a gift. After topping up — simply write to support. 2. Gift balance for a comment in our SMS service threads "Happy Birthday, SOCNET. My username/email is": BHW, BFD, voided, nulled, and patched forums. ➡ 1 forum = $1 to your balance! Send screenshots of your posts to support through the listed contacts, include your login/email, and receive the bonus on your account. Let’s celebrate together! Promotions are valid from 02.12.2025 to 07.12.2025 inclusive. Don’t miss it — these are the best conditions of the year! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock