about drop at eventmodrabbits

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
jamaica
Posts: 288
Joined: Sat Jan 24, 2009 5:44 pm

about drop at eventmodrabbits

Post 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
Everybody L.I.E.S
User avatar
Hitokiri
Posts: 34
Joined: Tue Oct 19, 2010 6:26 pm

Re: about drop at eventmodrabbits

Post 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
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: about drop at eventmodrabbits

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: about drop at eventmodrabbits

Post 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:
User avatar
Hitokiri
Posts: 34
Joined: Tue Oct 19, 2010 6:26 pm

Re: about drop at eventmodrabbits

Post 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
Post Reply