Hi guys
I want to disclose a modification I made to my source to slightly improve the organization of common_drop_item.txt
As always I notice, that I am not so familiar with c++, so this tutorial may contain some problem, for this reason I want to post and receive criticisms or opinions.
I am also using google translator, I live in Brazil and I can only speak Portuguese
First, I don't know if everyone knows, the common_drop_item is divided into 24 columns separated by TAB
These columns are divided into 4 sections, from rank 0 to 3
That would be something like this
PAWN S_PAWN KNIGHT S_KNIGHT
In these sessions the first one is always ignored, because it could be some annotation or something
The second is the initial level
The third is the final level
The fourth is the percentage
The fifth is the item's VNUM
And the sixth is the number of kill's, however investigating the source, I did not see a need in the field, after all in the function that reads these drops she also ignores.
So what exactly did I do?
I modified the function that reads common_drop_item, so that it looks like the later drop files.
Separated by
Group "Group Name"
{
Rank (int) "It would be from level 0 to 3"
ID - Min Level - Max level - Percent - VNUM
}
I believe it is more organized and easy to change.
Tutorial
And common_drop_item will now look like this
The common_drop_item I used was one that I believe is not modified, and with standard drops, if anyone needs it, I posted it here too.
I put the common_drop_item files in github gits too.
[Hidden Content]
I used a script I made in nodejs, to organize this file, and put these comments at the end with the name of each item. In case someone just needs to ask.
Remembering that it is something experimental, I tested it here and it is working normally.
Any criticism or suggestion just speak.
Att: Rospirski