Skip to content

Set Drops For Npc

Featured Replies

How can i set NPC drops or what kind of lines must to add on the npc .xml to add items?

What pack are u using? I think u can do it in all packs before high five from shift click with gm char.

What pack are u using? I think u can do it in all packs before high five from shift click with gm char.

Not,on acis packs only from xmls

Add this before end line " </npc> "

<drops>
<category id="1">
<drop itemid="x" min="1" max="1" chance="x"/>
<drop itemid="x" min="1" max="1" chance="x"/>
</category>
<category id="2">
<drop itemid="x" min="1" max="1" chance="x"/>
<drop itemid="x" min="1" max="1" chance="x"/>
</category>
<category id="3">
<drop itemid="x" min="1" max="1" chance="x"/>
<drop itemid="x" min="1" max="1" chance="x"/>
</category>
</drops>

chance= 1 000 000 =means 100% drop rate.

500 000= 50% drop rate... Etc.

If you want to drop an entyre armor set, just add all id's in same category drop.

Or show us a normal drop from another Npc. Maybe your xml is a little different. Who knows.

It is different for H5.

Put this before line " <collision> "

<drop_lists>
<death>
<group chance="70">
<item id="57" min="100000" max="160000" chance="1000000" />
</group>
</death>
</drop_lists>

Edited by 'Baggos'

Why don't you take a look at existing npcs how they handle the drop? Huh, ppl nowadays.

  • Author

Why don't you take a look at existing npcs how they handle the drop? Huh, ppl nowadays.

 

I already do this but i have no find an NPC with droplist

 

 

LATER: L2j .xml droplist looks in this format:

<dropLists>
			<death>
				<group chance="70">
					<item id="57" min="2653" max="5416" chance="100" /> <!-- Adena -->
				</group>
				<group chance="0.2903999984264374">
					<item id="11975" min="1" max="1" chance="6.0817" /> <!-- Common Item - Soul Bow -->
					<item id="5534" min="1" max="1" chance="93.9183" /> <!-- Soul Bow Stave -->
				</group>
				<group chance="35.69779968261719">
					<item id="1895" min="1" max="1" chance="17.6723" /> <!-- Metallic Fiber -->
					<item id="4040" min="1" max="1" chance="1.2371" /> <!-- Mold Lubricant -->
					<item id="4042" min="1" max="1" chance="1.0309" /> <!-- Enria -->
					<item id="4043" min="1" max="1" chance="2.0618" /> <!-- Asofe -->
					<item id="960" min="1" max="1" chance="0.0247" /> <!-- Scroll: Enchant Armor (S-Grade) -->
					<item id="8732" min="1" max="1" chance="0.5154" /> <!-- Life Stone - Level 76 -->
					<item id="8742" min="1" max="1" chance="0.1289" /> <!-- Mid-Grade Life Stone - Level 76 -->
					<item id="8752" min="1" max="1" chance="0.0129" /> <!-- High-Grade Life Stone - Level 76 -->
					<item id="1344" min="10" max="30" chance="77.316" /> <!-- Mithril Arrow -->
				</group>
				<group chance="42.0">
					<item id="8600" min="1" max="1" chance="55" /> <!-- Herb of Life -->
					<item id="8601" min="1" max="1" chance="38" /> <!-- Greater Herb of Life -->
					<item id="8602" min="1" max="1" chance="7" /> <!-- Superior Herb of Life -->
				</group>
				<group chance="11.0">
					<item id="8603" min="1" max="1" chance="7" /> <!-- Herb of Mana -->
					<item id="8604" min="1" max="1" chance="81" /> <!-- Greater Herb of Mana -->
					<item id="8605" min="1" max="1" chance="12" /> <!-- Superior Herb of Mana -->
				</group>
				<group chance="25.0">
					<item id="8606" min="1" max="1" chance="20" /> <!-- Herb of Power -->
					<item id="8608" min="1" max="1" chance="20" /> <!-- Herb of Alacrity -->
					<item id="8610" min="1" max="1" chance="20" /> <!-- Herb of Critical Attack - Probability -->
					<item id="10655" min="1" max="1" chance="20" /> <!-- Herb of Vampiric Rage -->
					<item id="10656" min="1" max="1" chance="20" /> <!-- Herb of Critical Attack - Power -->
				</group>
				<group chance="10.0">
					<item id="8607" min="1" max="1" chance="50" /> <!-- Herb of Magic -->
					<item id="8609" min="1" max="1" chance="50" /> <!-- Herb of Casting Spd. -->
				</group>
				<group chance="1.0">
					<item id="8612" min="1" max="1" chance="33" /> <!-- Herb of the Warrior -->
					<item id="8613" min="1" max="1" chance="33" /> <!-- Herb of the Mystic -->
					<item id="8614" min="1" max="1" chance="34" /> <!-- Herb of Recovery -->
				</group>
				<group chance="11.0">
					<item id="8611" min="1" max="1" chance="94" /> <!-- Herb of Speed -->
					<item id="10657" min="1" max="1" chance="3" /> <!-- Herb of Doubt -->
					<item id="13028" min="1" max="1" chance="3" /> <!-- Vitality Replenishing Herb -->
				</group>
			</death>
			<corpse>
				<item id="6710" min="1" max="1" chance="8.7307" /> <!-- Sealed Draconic Leather Helmet Pattern -->
				<item id="6711" min="1" max="1" chance="2.6667" /> <!-- Sealed Major Arcana Robe Part -->
				<item id="6712" min="1" max="1" chance="7.6629" /> <!-- Sealed Major Arcana Gloves fabric -->
			</corpse>
		</dropLists>

Thank you for your 'Baggos' suggestion on PM.

 

Thank you too guys for trying help.

Edited by CodyRo

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.