I just want to know if the process that I am doing is the correct to add a new custom branch into my server in the lasted version of rAthena, because I saw the others requests about the topic are really outdated.
this is my process:
for now I only have 4 mvps in the pool of the branch to summon, for test, I dont know if that is the problem
I didnt find in mob.h this variable
#define MAX_RANDOMMONSTER 5
this is my steps.
in mob.c I add this line
sv_readdb(dbsubpath2, "mob_boss_G01.txt", ',', 4, 4, -1, &mob_readdb_group, silent);
and
if (type == MOBG_Bloody_Dead_Branch && flag&RMF_MOB_NOT_BOSS)
flag = static_cast<e_random_monster_flags>(flag&~RMF_MOB_NOT_BOSS);
if (type == MOBG_G_D_Branch_01 && flag&RMF_MOB_NOT_BOSS)
flag = static_cast<e_random_monster_flags>(flag&~RMF_MOB_NOT_BOSS);
Question
f_fman
I just want to know if the process that I am doing is the correct to add a new custom branch into my server in the lasted version of rAthena, because I saw the others requests about the topic are really outdated.
this is my process:
for now I only have 4 mvps in the pool of the branch to summon, for test, I dont know if that is the problem
I didnt find in mob.h this variable
this is my steps.
in mob.c I add this line
sv_readdb(dbsubpath2, "mob_boss_G01.txt", ',', 4, 4, -1, &mob_readdb_group, silent);
and
if (type == MOBG_Bloody_Dead_Branch && flag&RMF_MOB_NOT_BOSS)
flag = static_cast<e_random_monster_flags>(flag&~RMF_MOB_NOT_BOSS);
if (type == MOBG_G_D_Branch_01 && flag&RMF_MOB_NOT_BOSS)
flag = static_cast<e_random_monster_flags>(flag&~RMF_MOB_NOT_BOSS);
in mob.h
enum e_random_monster : uint16 {
MOBG_Branch_Of_Dead_Tree = 0,
MOBG_Poring_Box,
MOBG_Bloody_Dead_Branch,
MOBG_Red_Pouch_Of_Surprise,
MOBG_ClassChange,
MOBG_Taekwon_Mission,
MOBG_G_D_Branch_01,
};
and I crete in db\re
mob_boss_G01.txt
and added the boss like this.
MOBG_G_D_Branch_01,1582,Deviling,1000000
in the mob_summon.yml I add this.
Body:
- Group: G_D_Branch_01
Default: MAYA
Summon:
- Mob: MAYA
Rate: 100000
- Mob: DEVILING
Rate: 700000
- Mob: Drake
Rate: 700000
in item_db_usable.yml
- Id: ****
AegisName: name
Name: name
Type: Usable
Buy: 10000
Weight: 200
Flags:
BuyingStore: true
DeadBranch: true
Script: |
monster "this",-1,-1,"--ja--",-1-MOBG_G_D_Branch_01,1,"";
and in item_db.txt (I dont know if this is necesary with the YML structure in use).
***,name,name,2,10000,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ monster "this",-1,-1,"--ja--",-1-MOBG_G_D_Branch_01,1,""; },{},{}
Declare in script_constants.hpp
after I did that I got this error.
mob_get_random_id: Invalid type (6) of random monster.
I want to know if that is the correct process to do that, or what is my mistake.
I remember 1 time work for me, but I couldnt edit the rate of the MVPs or add new MVPs
Edited by f_fmanLink to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.