Jump to content
  • 0

[?​​​​​​​​​​​​​​] Understanding Index in mob_db.yml


norightinfo

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   1
  • Joined:  07/15/20
  • Last Seen:  

 

Hi Everyone,
 

I just want to understand how Index work? I am unable to find any documentation on how this works.

I am utilizing "\db\import\mob_db.yml" and I want to replace a certain drop item on the mob in "\db\pre-re\mob_db.yml" like replacing a card drop item on MVP's

Example: I wan't to replace Baphomet, Card drop to something else 
"db\pre-re\mob_db.yml"

  - Id: 1929
    AegisName: BAPHOMET_I
    Name: Great Demon Baphomet
    Level: 98
    Hp: 4520000
    BaseExp: 4520000
    JobExp: 2520000
    Attack: 16000
    Attack2: 16001
    Defense: 35
    MagicDefense: 45
    Agi: 152
    Vit: 5
    Int: 85
    Dex: 200
    Luk: 95
    AttackRange: 2
    SkillRange: 10
    ChaseRange: 12
    Size: Large
    Race: Demon
    Element: Dark
    ElementLevel: 3
    WalkSpeed: 100
    AttackDelay: 768
    AttackMotion: 768
    DamageMotion: 576
    Ai: 21
    Class: Boss
    Drops:
      - Item: Bapho_Doll
        Rate: 500
      - Item: Pauldron
        Rate: 7000
      - Item: Tae_Goo_Lyeon
        Rate: 5000
      - Item: Bloody_Iron_Ball
        Rate: 100
      - Item: Celestial_Robe
        Rate: 7000
      - Item: Holy_Robe
        Rate: 7000
      - Item: Crescent_Scythe
        Rate: 9000
      - Item: Baphomet_Card
        Rate: 1
        StealProtected: true

On my "\db\import\mob_db.yml"

  - Id: 1929
    Drops:
      - Item: Replace  With Something Else
        Rate: 1
        StealProtected: true
      - Index: 8

Is this possible?

Quote
#   MvpDrops:               List of possible MVP prize items. Max of MAX_MVP_DROP. (Optional)
#     - Item                Item name.
#       Rate                Drop rate of item.
#       RandomOptionGroup   Random Option Group applied to item on drop. (Default: None)
#       Index               Index used for overwriting item. (Optional)
#   Drops:                  List of possible normal item drops. Max of MAX_MOB_DROP. (Optional)
#     - Item                Item name.
#       Rate                Drop rate of item.
#       StealProtected      If the item is shielded from TF_STEAL. (Default: false)
#       RandomOptionGroup   Random Option Group applied to item on drop. (Default: None)
#       Index               Index used for overwriting item. (Optional)

 

Problem: checking using @mi the list of drops doesn't change. It just added. Is there any way to overwrite the drop without modifying the actual "\db\pre-re\mob_db.yml"?

Thank you in advance.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Try add Index to normal card drop and then use same Index in custom card drop.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   1
  • Joined:  07/15/20
  • Last Seen:  

2 hours ago, Start_ said:

Try add Index to normal card drop and then use same Index in custom card drop.

Hi Start_, thank you for responding.

You mean like this?
On: \db\pre-re\mob_db.yml

  - Id: 1929
    AegisName: BAPHOMET_I
    Name: Great Demon Baphomet
    Level: 98
    Hp: 4520000
    BaseExp: 4520000
    JobExp: 2520000
    Attack: 16000
    Attack2: 16001
    Defense: 35
    MagicDefense: 45
    Agi: 152
    Vit: 5
    Int: 85
    Dex: 200
    Luk: 95
    AttackRange: 2
    SkillRange: 10
    ChaseRange: 12
    Size: Large
    Race: Demon
    Element: Dark
    ElementLevel: 3
    WalkSpeed: 100
    AttackDelay: 768
    AttackMotion: 768
    DamageMotion: 576
    Ai: 21
    Class: Boss
    Drops:
      - Item: Bapho_Doll
        Rate: 500
      - Item: Pauldron
        Rate: 7000
      - Item: Tae_Goo_Lyeon
        Rate: 5000
      - Item: Bloody_Iron_Ball
        Rate: 100
      - Item: Celestial_Robe
        Rate: 7000
      - Item: Holy_Robe
        Rate: 7000
      - Item: Crescent_Scythe
        Rate: 9000
      - Item: Baphomet_Card
        Rate: 1
        StealProtected: true
        Index: 8

and then On: \db\import\mob_db.yml

  - Id: 1929
    Drops:
      - Item: Replace_Item
        Rate: 1
        StealProtected: true
      - Index: 8

I tried that and it is not working. I also tried below and it is still not working.

  - Id: 1929
    Drops:
      - Item: Baphomet_Card
        Rate: 1
        StealProtected: true
        Index: 8
      - Item: Replace_Item
        Rate: 1
        StealProtected: true
        Index: 8

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   1
  • Joined:  07/15/20
  • Last Seen:  

Update: I got it working now, Index starts at 0, I've been counting starting at 1.

Another Question though,
- How do we remove a Drop from the mob? using the "import" instead of modifying the actual mob_db.yml?

Edited by norightinfo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Maybe use rate 0?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...