Csands
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Csands
-
-
I believe your issue is with your entry in mob_drop.txt, const.txt, and your item_randomopt_group.txt
Const.txt should be:
RDMOPTG_KNIFE<tab>1(the number may change if you have other groups defined already)
Mob_drop.txt should be:
1002,1201,10000,RDMOPTG_KNIFE(This option group is whatever you have defined in const.txt)
Your entry in item_randopt_group.txt should be:
RDMOPTG_KNIFE,10000,RDMOPT_VAR_MAXHPAMOUNT,100,0
This will add 100 max HP... change the 100 to desired value.
**PS** poring(1002) drops knife[4](1202)
You are adding a drop to the poring that usually comes from a soldier skeleton(1028). Knife[3](1201)
- 1
-
Hello,
I've been modifying my option groups... and I went hard with it. I am trying to define about 400 option groups.
My problem is coming from const.txt where upon server start it is not reading my constants for random option groups beyond 255
rdmoptg_xxx 1...
rdmoptg_xxx 255
rdmoptg_xxx 256 (wont read)
This leaves me with an error telling me the group id cannot be found. Is there a way for me to increase the number of option groups I am able to define?
-
Just as a heads up to anyone grabbing this release. And no judgment passed on the creator, so a heads up to him as well.
The item_randomop_group.txt in this was built using permutations instead of combinations.
Example: options a,b,c
Permutations(incorrect use of this database) of 2:
A,B; A,C; B,A; B,C; C,A; C,B
Combinations(correct use of this database) of 2:
A,B; A,C; BC
This results in thousands of repeat groups. I'm going to go out on a limb here and make the assumption that it skews the odds in favor of the db groups towards the top of the database when calculating the result group based on the rate given for each group. I'm cleaning it up in some free time... though to be honest the random item options feature is fairly cumbersome since it does not allow for a rand function within a database. This ultimately waits on a source update to be reasonably manageable.
Seeking Help regarding Invalid 'rand_groupid'
in Database Support
Posted · Edited by Csands
Now get creative with your option groups! Common monsters, minibosses, champions can all have separate option groups assigned to them in mob_drop.txt. limited by your creativity!
Consider these lines as an example for item_randomopt_group.txt
RDMOPTG_KNIFE,7000,RDMOPT_VAR_MAXHPAMOUNT,100,0
RDMOPTG_KNIFE,3000,RDMOPT_VAR_MAXHPAMOUNT,100,0,RDMOPT_VAR_ATKPERCENT,500,0
this would give a 70% chance to have +100 hp option, and a 30% chance to have +100 hp and +500% atk
this can get as complicated as you would like it to be!
small example.txt