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
about drop at eventmodrabbits
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 288
- Joined: Sat Jan 24, 2009 5:44 pm
about drop at eventmodrabbits
Everybody L.I.E.S
- Hitokiri
- Posts: 34
- Joined: Tue Oct 19, 2010 6:26 pm
Re: about drop at eventmodrabbits
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
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
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: about drop at eventmodrabbits
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.
- 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- Gnacik
- L2j Veteran
- Posts: 925
- Joined: Tue Dec 16, 2008 3:49 pm
- Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
- Contact:
Re: about drop at eventmodrabbits
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)


- Hitokiri
- Posts: 34
- Joined: Tue Oct 19, 2010 6:26 pm
Re: about drop at eventmodrabbits
Yeap i see now i was thinking about sql and he about eventmodRabbits.javajaniii 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.

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 };

- item id
- min
- max
- chance range