Jump to content
  • 0

[WTA] Change max refine on certain item


DK77

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  06/30/17
  • Last Seen:  

Hi guys, its been a month/years not active on this forum . Im not sure it is right section or not . My Question is i want to change max refine on certain item . For Example like , 2 Item , Bow A and Bow B . 
Bow A = normal max refine which is 10 
Bow B = i want to change max refine to 6 or 7 only . 

Isit possible to make it ? or need to change on src ? 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

It's possible with source modification. 

My only idea right now is creating a new Weapon Level so you can modify any weapon as you want.

So.... you need edit next:

Search in src/common/mmo.hpp

#define MAX_WEAPON_LEVEL 4

and replace with

#define MAX_WEAPON_LEVEL 6

src/map/clif.cpp

refine_item[3] = refine_item[4] = pc_search_inventory( sd, ITEMID_ORIDECON );

and add below

refine_item[6] = pc_search_inventory( sd, ITEMID_ORIDECON );

src/map/pc.cpp

if (sd->status.base_level > 96 && item->equip & EQP_ARMS && item->type == IT_WEAPON && item->weapon_level == 4)

replace number 4 to 6

if (sd->status.base_level > 96 && item->equip & EQP_ARMS && item->type == IT_WEAPON && item->weapon_level == 6)

db/pre-re/refine.yml put below Weapon Level 4

      - Level: 6
        RefineLevels:
          - Level: 1
            Bonus: 1500
            Chances:
              - Type: Normal
                Rate: 10000
                Price: 20000
                Material: Phracon
              - Type: Enriched
                Rate: 10000
                Price: 2000
                Material: Enriched_Oridecon

It should look like this:

image.png.aa962b8aa6db6dfdf3ff002bcf0a456d.png

So you can edit any item for example Knife (ID: 1201) which is Weapon Level 6.

  - Id: 1201
    AegisName: Knife
    Name: Knife
    Type: Weapon
    SubType: Dagger
    Buy: 50
    Weight: 400
    Attack: 17
    Range: 1
    Slots: 3
    Jobs:
      Alchemist: true
      Archer: true
      Assassin: true
      BardDancer: true
      Blacksmith: true
      Crusader: true
      Hunter: true
      Knight: true
      Mage: true
      Merchant: true
      Ninja: true
      Novice: true
      Rogue: true
      Sage: true
      SoulLinker: true
      SuperNovice: true
      Swordman: true
      Thief: true
      Wizard: true
    Locations:
      Right_Hand: true
    WeaponLevel: 6
    EquipLevelMin: 1
    Refineable: true

 

You can put refine limit in refine.yml make sure you have your desired weapon is Weapon Level 6.

Additional comments:

- Refine Skill is not working for level 6 weapons.

- If your refine item limit is 7 you can refine more if you use command.

Edited by EIysium
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  06/30/17
  • Last Seen:  

Nice idea bro , the only issue is we got custom script refiner , which can make instant +10 . isit gonna bypass max refine limit that you set to 6 ? 

Edited by DK77
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  455
  • Reputation:   57
  • Joined:  08/28/12
  • Last Seen:  

Should work with a check. Something like 'getiteminfo(<item ID>,ITEMINFO_WEAPONLEVEL)'

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...