Page 1 of 1

about drop at eventmodrabbits

Posted: Wed Oct 20, 2010 10:57 am
by jamaica
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:-
L2JDP Revision Number:-

can some one explaind me how this works at drop cause i dropming me only quick ealing
first is item id second i guess is min drop tirth max drop but last number what should be? i`m a bit confused !


{ 22025, 2, 2, 2 }, // Powerful Healing Potion
{ 6622, 1, 1, 1 }, // Giant's Codex
{ 20034, 1, 1, 1 }, // Revita Pop
{ 20004, 1, 1, 1 }, // Energy Ginseng
{ 20004, 1, 1, 1 } // Energy Ginseng

Re: about drop at eventmodrabbits

Posted: Sat Oct 23, 2010 3:42 am
by Hitokiri
DROP TABLE IF EXISTS `droplist`;
CREATE TABLE `droplist` (
`mobId` INT NOT NULL DEFAULT '0',
`itemId` INT NOT NULL DEFAULT '0',
`min` INT NOT NULL DEFAULT '0',
`max` INT NOT NULL DEFAULT '0',
`category` INT NOT NULL DEFAULT '0',
`chance` INT NOT NULL DEFAULT '0',
PRIMARY KEY (`mobId`,`itemId`,`category`),
KEY `key_mobId` (`mobId`)
);

This is how it works

(18001,1806,1,1,-1,10868),-- Recipe: Soulshot: B-Grade

first number is mob id and so on

Re: about drop at eventmodrabbits

Posted: Sat Oct 23, 2010 7:46 am
by janiii
he was not asking about normal droplist, but about drop in the eventmodrabits.

- item id
- chance range
- min
- max


Gnacik: chance range: for example rnd. get 85. potion will be droped, and return. no other thins are checked. so its 20% to drop potion. from 80-100. if rnd will return 65 potion will be skipped, second will be dropped. so again you have 20% to drop it. from 60 to 80.

Re: about drop at eventmodrabbits

Posted: Sat Oct 23, 2010 8:28 am
by Gnacik
Ye, its my little fault sorry. I forget to change 'working version'. I will fix that in some near feature. Right now droplist is done in reverser order. 80 in fact means 20% for drop (from 80 to 100) next 60 also means 20% (from 60 to 80)

:oops:

Re: about drop at eventmodrabbits

Posted: Sat Oct 23, 2010 8:53 am
by Hitokiri
janiii wrote:he was not asking about normal droplist, but about drop in the eventmodrabits.

- item id
- chance range
- min
- max


Gnacik: chance range: for example rnd. get 85. potion will be droped, and return. no other thins are checked. so its 20% to drop potion. from 80-100. if rnd will return 65 potion will be skipped, second will be dropped. so again you have 20% to drop it. from 60 to 80.
Yeap i see now i was thinking about sql and he about eventmodRabbits.java :D

Code: Select all

// Drop data    private static final int[][] DROPLIST =    {        {  1540,  80, 10, 15 }, // Quick Healing Potion        {  1538,  60,  5, 10 }, // Blessed Scroll of Escape        {  3936,  40,  5, 10 }, // Blessed Scroll of Ressurection        {  6387,  25,  5, 10 }, // Blessed Scroll of Ressurection Pets        { 22025,  15,  5, 10 }, // Powerful Healing Potion        {  6622,  10,  1, 1 },  // Giant's Codex        { 20034,   5,  1, 1 },  // Revita Pop        { 20004,   1,  1, 1 },  // Energy Ginseng        { 20004,   0,  1, 1 }   // Energy Ginseng    };
but shouldnt it be so? :roll: ( Just a question)

- item id
- min
- max
- chance range