Jump to content
  • 0

Question

Posted

I'm using this event:

 

http://www.maxcheaters.com/forum/index.php?topic=131287

 

But I'm having a little trouble configuring it. I changed the droplist, but I don't know how to change the quantity. I want the drop from the squash to be max 1 for each item. Where can I change the drop quantity?

 

Edit: Oh, and I need the drop to be auto-loot. I have this enabled in my server but the items still drop on the ground.

4 answers to this question

Recommended Posts

  • 0
Posted

scripts/events/SquashEvent/SquashEvent.java

 

	{ 12774,  1060, 100 },	// Lesser Healing potion
	{ 12774,  1062,  50 },	// Haste potion
	// High Quality Squash
	{ 12775,  1539, 100 },	// Greater Healing potion
	{ 12775,  1375,  70 },	// Greater Swift Attack Potion
	{ 12775,  1459,  50 },	// Crystal c-grade
	// Low Quality Squash
	{ 12776,  1061, 100 },	// Healing potion
	{ 12776,  1062,  70 },	// Haste potion
	{ 12776,  1458,  50 },	// Crystal d-grade

	// Large Young Squash
	{ 12777,  1061, 100 },	// Healing potion
	{ 12777,  1374,  50 },	// Greater Haste potion
	// High Quality Large
	{ 12778,  1539, 100 },	// Greater Healing potion		
	{ 12778,  6036,  70 },	// Greater Magic Haste Potion
	{ 12778,  1459,  40 },	// Crystal c-grade
	// Low Quality Large
	{ 12779,  6035,  70 },	// Magic Haste Potion
	{ 12779,  1458,  50 },	// Crystal d-grade

	// King
	{ 13016,  1540, 100 },	// Quick Healing Potion
	{ 13016,  1460,  40 },	// Crystal b-grade
	{ 13016,  5234,  20 },	// Mystery Potion
	// Emperor
	{ 13017,  1540, 100 },	// Quick Healing Potion
	{ 13017, 20004,  40 },	// Energy Ginseng
	{ 13017,  1461,  20 },	// Crystal a-grade
	{ 13017,  5234,  10 }	// Mystery Potion

 

change drop... delete and leave one item per monster...

 

 

About auto loot:

 

i think need to change these lines

 

if(drop[1] > 20000)
					((L2MonsterInstance)mob).dropItem(player, drop[1], 2);
				else
					((L2MonsterInstance)mob).dropItem(player, drop[1], Rnd.get(2, 6));
				continue;

 

 

from dropItem to addItem, but its only suggest... Wait for some1 skilled in python and he answer you. :)

 

 

 

p.s. Rnd.get(2, 6)); 2 and 6 its drop count, from two to six...

 

p.s.s. delete some1 my first post.... :///

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


×
×
  • 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