Jump to content

Mob_drop_item.txt VnumRange


Go to solution Solved by Dex,

Recommended Posts

I have a question: how can I make it so that I can specify subject ids, for example?

40000~40005

In this case, I would need the metinstone to drop any of the IDs 40000-40005, but only ever drop one, which is selected by the code. 

Mob_drop_item example:

Group Metinstone
{
    type    drop
    mob    8001
    1    40000~40005    1    200
    2    10    1    200
    3    71084    1    200
    4    71085    1    200
}

If someone could write this for me, for money, please send me a private message! Thanks! 

Edited by xGalardo
  • Eyes 1
Link to comment
Share on other sites

  • Active Member

Yes, you have to use std::pair as @ Dex said, besides, if you have the "Drop info system" you have to adapt the code in item_manager.cpp because you replace that function and use another method in its coding, once I managed to do it but I didn't save backup and I haven't managed to do it since xD! but the few times I tried it, that system was great, by the way, if you have modifications from other systems in item_manager.cpp, item_manager_private_types.h i item_manager_read_tables.cpp try to adapt it, not just replace, and don't forget to add public_tables.cpp in makefile, after that no more modifications required in principle as far as I remember, but try to read the "HowTo.txt" file is very easy to commit problems when editing common_drop, etc.

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

43 minutes ago, nazox said:

Yes, you have to use std::pair as @ Dex said, besides, if you have the "Drop info system" you have to adapt the code in item_manager.cpp because you replace that function and use another method in its coding, once I managed to do it but I didn't save backup and I haven't managed to do it since xD! but the few times I tried it, that system was great, by the way, if you have modifications from other systems in item_manager.cpp, item_manager_private_types.h i item_manager_read_tables.cpp try to adapt it, not just replace, and don't forget to add public_tables.cpp in makefile, after that no more modifications required in principle as far as I remember, but try to read the "HowTo.txt" file is very easy to commit problems when editing common_drop, etc.

After this system will be used, then all drops should be written as e.g.: 30000~30000, so I can't just write an ID of 30000 in mob_drop_item.txt?

Example:

Group metinstone
{
    type drop
    mob 8001
    1 30000~30002 1 100
    2 20000~20000 1 100
}
So all IDs should be included so that ~ should be separated?

Link to comment
Share on other sites

  • Active Member
5 hours ago, xGalardo said:

Después de utilizar este sistema, todas las gotas deben escribirse como, por ejemplo: 30000 ~ 30000, por lo que no puedo simplemente escribir una ID de 30000 en mob_drop_item.txt.

Ejemplo:

Grupo metinstone
{
    escriba drop
    mob 8001
    1 30000~30002 1 100
    2 20000~20000 1 100
}
Entonces, ¿se deben incluir todas las identificaciones para que ~ se separe?

Sorry if I don't understand it well, you mean if it's necessary or mandatory to use the "~" in all?, as far as I remember you could still do the normal drop, only this allows you to add a lot of mobs or items saving you to create a huge list, here I leave you an example of how I used it, although I don't have a copy of the system, I should have an old copy of the mob_drop, if I find it and show you how I used it, if you didn't mean it, tell me something more detailed, I'll try to explain you :), this is example:

Quote

    Group Nazox
    {
        Mob 101~102 <--Wild dog and dog
        Type drop
        1    11290~11290 1 10 <-War Weapon +0 or +9 random
        2    10~219 1 95 <--Sword +0 or +9 random
        3    50    1    20 <--Sword lv20 +0
        4    55    1    50 <--Sword lv20 +5
    }
    Group Nazox2
    {
        Mob 101,102,691,2598  <--Wild dog, dog, Orc Chief, Azrael
        Type drop
        1    11210~11290 1 10 <-War Weapon lv1 to lv 70 +0 random
        2    10~219 1 95 <--Sword +0 or +9 random
        3    50    1    20 <--Sword lv20 +0
        4    55    1    50 <--Sword lv20 +5
    }

    Group Nazox3
    {
        Mob 691  <--Orc Chief
        Type drop
        1    11210~11290 1 10 <-War Weapon lv1 to lv 70 +0 random
        2    10~219 1 95 <--Sword +0 or +9 random
        3    50    1    20 <--Sword lv20 +0
        4    55    1    50 <--Sword lv20 +5
    }

 

Edited by nazox

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

  • Active Member

Edit: in the end I decided to go for it and as I liked it, I adapted it and fixed it for my server.

As I told you in the other message, you can use the normal drop, with the range you want, now I will attach a fragment of my mob_drop_item, where I made several tests that you can see in the video. By the way, remember that it works also for common_drop_item, greetings, and I hope I solved your question.

Mob_drop_item old code example (using the warrior armour lv70);

Quote

Group    City1
{
    Mob    171    --Dog
    Type    drop
    1    11290    1 50
    2    11291    1 50
    3    11292    1 50
    4    11293    1 50
    5    11294    1 50
    6    11295    1 50
    7    11296    1 50
    8    11297    1 50
    9    11298    1 50
    10    11299    1 50
}

New code with the system:

Quote

Group    City1
{
    Mob    171 --Dog
    Type    drop
    1    11290~11299    1    100
}

Examples using mob_drop_item:

Quote

Group    City1
{
    Mob    171    --Dog
    Type    drop
    1    10    1    100 --Sword
}
Group    City1
{
    Mob    8001~8005    --Metin Stone
    Type    drop
    1    11400    1    100 --Blue Ninja Armour
}
Group    City1
{
    Mob    171,691,101 --Dog, Chief Orc, Dog2
    Type    drop
    1    11290~11299    1    100 --Warrior Armour +0 to +9 random

    2   150     1   100  --Sword <-New example

   3    11295 1   50   --Warrior Armour +5 <--New example
}

You can also add a mob randomly in another group, as you can see, I use 2 times the id "171" and I will receive both the item in group 1 and the item in group 2 containing that mob.

https://metin2.download/picture/fY1LkOYQr87TVjL0L10cv1ZYK66SF389/.gif

 

Edited by nazox
Core X - External 2 Internal

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.