Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tutorial] Basic Droprate guide for Beginners

Newbie Spellweaver
Joined
Dec 6, 2007
Messages
29
Reaction score
1
Hi when i first started doing droprates and i read all guides i could find but they just didnt describe it enough, and made my wonder and think even more, and i have been watching that some others have same problem as i had , so i decided to post this little guide and explain as much and as good as possible.


If you allready got your server and ur server files, you just need 2 files to edit your droprates.
- ItemGroup.txt
- InitMonster.txt

Since im guessing you are using a repack and not whole clean files, you allready got droprates but wont edition to be done.

First open your ItemGroup.txt and InitMonster.txt, minimize the initmonster,
and now i will explain how this goes in the simplest way i can, and this made me understand so i hope it will help you too.


Now for example i will use : Demon Worker, and make it drop something custom, with a specific dropchance.

I go to my itemgroup and at the bottom i write first:

(group (index 2001) (item (10 372 0) (20 373 0) (30 374 0)))
and then:
(group (index 2002) (item (50 444 0) (100 445 0) (150 446 0)))
now the index you can write any number u want just make sure the index number dosent exist anywhere else in the ItemGroup.txt.

Now i write this below:

(itemgroup (index 3001) (group (200 2001) (700 2002)))

now we made 2 groups and 1 itemgroup that relates to the groups, now minimize your ItemGroup.txt
and there i will find the Demon worker,with the index (299) and then move to the side and you see theres a little text beside the demon workers stats wich look something like (itemgroup 4001 1) or something like it, maybe theres some more , but what i do now is i delete the (itemgroup xxxx x) text and instead i write (itemgroup 3001 1) .

Now done, save the files and load them.

Now to understand what you just did this is what it does:

We got the so called itemgroup and the groups.
First in the groups and itemgroups, you must know that u cant write a group like:

(group (index 2003) (item (10 424 0) (5 134 0) (500 314 0) (3 444 0)))

because you must go atleast 1 number higher at the dropchance x , or it will give error when loading it, that means if u put (500 414 0) you must atleast make (501 414 0) at the next item you want to drop.

Another thing is, the dropchance numbers .. You must devide the number with 10 and thats the % it will drop, so if its (10 414 0) the chance of dropping item 414 is 1%, and so on, and if u want 2 items in same group to be like 1% but u thinkin "argh i cant write the number 10 twice so what do i do?" well then you allways make the distance from the numbers and thats the next dropchance, so if u want 1% at evry item in the group make the group this way: (group (index xxxx) (item (10 445 0) (20 446 0) (30 444 0)))

so first 10 is 1% dropchance at item 445, then next one is 20, distance from 10-20 is 10, so dropchance 1% also to drop item 446, and distance from 20-30 is 10 so 1% chance to drop 444 item too. and so on.


Now go ingame after you loaded the files,

And this is how it works:

evrytime you kill the demon worker you edited drops at,
it will go into your itemgroup that you placed at the initmonster.txt
and it will roll between the groups you placed in it (2001+2002) and the chance it chooses group 2001 is 20% and chance it chooses group 2002 is 50%, so it rolls and chooses one of the groups, and then if it chooses the group 2002, it goes into the group and rolls once more, and chance to drop item 445 is 5% and same with the other items, so chance is 15% that it drops one of the 3 items, and 85% chance it drops money or nothing, when it rolled the following drawed item/money/nothin will drop.

Same with the other group. if it got choosed.


Okay this might not be as simple as i thought it was in the beginning but, i hope you understand it, and spelling mistakes etc, sorry, else tell me if i forgot something.

hope it helps.


//christian.
 
Last edited:
Experienced Elementalist
Joined
Jul 15, 2008
Messages
229
Reaction score
6
Re: [Basic Droprate guide for Beginners]

hm good job but there's already guides about how to make/edit itemgroup's/group's and there's tools for it also....
 
Custom Title Activated
Loyal Member
Joined
Oct 6, 2006
Messages
1,490
Reaction score
3
Re: [Basic Droprate guide for Beginners]

everyone understand the guidss on a other way :p

so well..thanks but I hope noe we have enought guidss about this xD
 
Newbie Spellweaver
Joined
Dec 6, 2007
Messages
29
Reaction score
1
Re: [Basic Droprate guide for Beginners]

lol yea i know, but as i wrote at the top, if u didnt read, i didnt understand the guides i found so i decided to make a new one with my own *****, and u dont have to tell me theres enough guides, cuz theres never enough guides, the more guides to help the better.
 
Newbie Spellweaver
Joined
Jul 19, 2008
Messages
29
Reaction score
0
Re: [Basic Droprate guide for Beginners]

thx man it rly helped me!
 
Newbie Spellweaver
Joined
Jul 23, 2008
Messages
19
Reaction score
0
Re: [Basic Droprate guide for Beginners]

plz correct me if iam wrong^^ just to make sure i understood it:
initmonster:
(itemgroup x y)
x= index of itemgroup
y= how many times the group will be dropped?

itemgroup:
(group (index x) (money (y z)) (item (a b c ))
x = index, directed to initmonster
y = chance to drop the group (if itemgroup is dropped there is always money with it)
a = chance to drop the item (chance is devided by the percentage of drop in money) e.g. :
(group (index x) (money (1000 z)) (item (500 b c ))
chance to drop money 100% and to drop item too 50% ??
b = index of item in inititem
c = dont know ^^ please help
 
Newbie Spellweaver
Joined
Oct 28, 2006
Messages
84
Reaction score
21
Re: [Basic Droprate guide for Beginners]

hmm i know how to write a droplist etc. but i dont understand this guide o_O

i think it way to long for the small knowledge how to write itemgroups

to general:

(itemgroup x y)

x=itemgroup
y= amount whats possible to drop

(group (index x) (money (y z)) (item (a b c ))

x=index what you put into your itemgroup
y= the chance to drop
z= amount of money
a= chance to drop the item
b= index of the item (itemlist/init.item)
c= prefix of the item ( like Expert )
 
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
72
Reaction score
0
Re: [Basic Droprate guide for Beginners]

Hey.

I tried to understand it... i partially got it^^

But i finished and then i load mainsrvt and get this attached error.

My ItemGroup is the following:

PHP:
(itemgroup (index 3001) (item (200 5001) (700 5002)))

And my 2 Groups are:

PHP:
(group (index 5001) (money 999 1000000000) (item (1000 8020 0) (2000 8021 0) (3000 8022 0) (4000 8023 0) (5000 8024 0)))
(group (index 5002) (item (1000 3009 0) (2000 3011 0) (3000 3012 0)))

Whats the problem?

AAH I forgot to say... the line from itemgroup is the line 1529...

pls help
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Dec 6, 2007
Messages
29
Reaction score
1
Re: [Basic Droprate guide for Beginners]

(group (index a) (money (b c) (d e)))

a= the number for the itemgroup.
b= chance of drop the x amount of money, that means if u write 100 theres 10% chance of dropping the x amount.
c= the amount of money to drop.
d= same as b,
e= same as c

so if its (group (index 3000) (money (100 5000) (600 2500)))

index 3000= to put in the itemgroup.
(100 5000) = 10% chance of drop 5000 geons.
(600 2500) = 50% chance to drop 2500 geons, (distance from 100-600 is 500 and 500/10 is 50%

(group (index a) (item (b c d) (e f g) (h i j)))

a= number for itemgroup.
b= chance to drop.
c= index number of the item u want to drop.
d= prefix, means if u want the dropped item to be pimped, (like Kings,legendary etc) just write 0 if u want it to drop clean
e,f,g,h,i,j= same as the upper ones,.

(itemgroup (index a) (group (b c) (d e)))

a= index number for initmonster
b= chance of dropping group.
c= the group index u want to drop,
d= chance of dropping group
e= the group index u want to drop.

so if we say we have 2 groups ;

(group (index 3000) (item (100 272 0) (200 273 0) (300 274 0)))
(group (index 3001) (item (50 444 0) (100 445 0)))

then we want to put them into the itemgroup
(itemgroup (index 4000) (group (100 3000) (200 3001)))

10% chance of choosing the group index 3000 and 10% chaance of choosing group index 3001.
 
Newbie Spellweaver
Joined
Dec 6, 2007
Messages
29
Reaction score
1
Re: [Basic Droprate guide for Beginners]

Hey.

I tried to understand it... i partially got it^^

But i finished and then i load mainsrvt and get this attached error.

My ItemGroup is the following:

PHP:
(itemgroup (index 3001) (item (200 5001) (700 5002)))
And my 2 Groups are:

PHP:
(group (index 5001) (money 999 1000000000) (item (1000 8020 0) (2000 8021 0) (3000 8022 0) (4000 8023 0) (5000 8024 0)))
(group (index 5002) (item (1000 3009 0) (2000 3011 0) (3000 3012 0)))
Whats the problem?

AAH I forgot to say... the line from itemgroup is the line 1529...

pls help



no errors in your itemgroup-

edit your group 5001, u forgot the paranteeze, (money (999 1000000000)
still got errors? post again.

btw, u know that all the items got 100% chance of dropping?
 
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
72
Reaction score
0
Re: [Basic Droprate guide for Beginners]

OK I edited it now that the first only drop money and the second only items.
now its like this:

PHP:
(group (index 5001) (money (1000 50000000) (2000 50000000)))
(group (index 5002) (item (1000 3009 0) (2000 3011 0) (3000 3012 0)))

And itemgroup:
PHP:
(itemgroup (index 3001) (item (100 5001) (600 5002)))

Its still the same error... hmm...

And btw yea i know its 100 % chance... but i wanted to see if its working an then i gonna edit it^^ But thx for advertisment :p
 
Newbie Spellweaver
Joined
Dec 6, 2007
Messages
29
Reaction score
1
Re: [Basic Droprate guide for Beginners]

try change the 100% chance to 10% make it 100, 200,300 instead of 1000,2000 etc..
 
Newbie Spellweaver
Joined
Oct 28, 2006
Messages
84
Reaction score
21
Re: [Basic Droprate guide for Beginners]

(group (index 5001) (money (900 50000000)))
(group (index 5002) (item (100 3009 0) (200 3011 0) (300 3012 0)))

(itemgroup (index 3001) (group (100 5001) (600 5002)))

try it once like this and say if it works please :D

and check if you got maybe duplicated group/itemgroups
 
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
72
Reaction score
0
Re: [Basic Droprate guide for Beginners]

(group (index 5001) (money (900 50000000)))
(group (index 5002) (item (100 3009 0) (200 3011 0) (300 3012 0)))

(itemgroup (index 3001) (group (100 5001) (600 5002)))

try it once like this and say if it works please :D

and check if you got maybe duplicated group/itemgroups

:D It works :D

I start server... NO ERROR... xD

I killed lord cause i gave him "(itemgroup 3001 1)",

but he droped like 20 g53 weps and much 24k money bags...^^

But its not the itemgroup i (you:p) have written... why?
 
Newbie Spellweaver
Joined
Oct 28, 2006
Messages
84
Reaction score
21
Re: [Basic Droprate guide for Beginners]

i dont know i just used copie/paste the lines and changed it to work :D maybe you forgot to add it to init.monster? idk what happens
 
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
72
Reaction score
0
Re: [Basic Droprate guide for Beginners]

Hmmm... u know whats the (itemgroup 3001 1) ?

Whats the 1 for ?
 
Newbie Spellweaver
Joined
Oct 28, 2006
Messages
84
Reaction score
21
Re: [Basic Droprate guide for Beginners]

its the amount how much items are dropable from this group
 
Newbie Spellweaver
Joined
Dec 6, 2007
Messages
29
Reaction score
1
Re: [Basic Droprate guide for Beginners]

the 1 is the number of bags it drops from the itemgroup 3001, and yea i was just writing what the error was and w00t told you ;) the error you made was "(itemgroup (index 3001) (item (

the "item" should be "group", cuz the itemgroup is choosing from groups, and not items:p thats the difference also from groups and item groups,

and go to initmonster, then where you pasted the (itemgroup 3001 1) is there any other (itemgroups) wroten there? if there is, delete em. cuz its most likely the old drops.
 
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
72
Reaction score
0
Re: [Basic Droprate guide for Beginners]

the 1 is the number of bags it drops from the itemgroup 3001, and yea i was just writing what the error was and w00t told you ;) the error you made was "(itemgroup (index 3001) (item (

the "item" should be "group", cuz the itemgroup is choosing from groups, and not items:p thats the difference also from groups and item groups,

and go to initmonster, then where you pasted the (itemgroup 3001 1) is there any other (itemgroups) wroten there? if there is, delete em. cuz its most likely the old drops.

I deleted the old itemgroup...

Now he is dropping rare :p But he is dropping the right things...

killed him 1 time he droped 1 bag with 60kk and killed him again he droped 2 bags with 60kk^^
But i written in initmonster (itemgroup 3001 1) so why he droped 2 bags? ^^

im gonna sleep now^^

If u could answer on last question would be fine.

CYa tomorrow.
 
Back
Top