Jump to content
  • 0

Using 2 seperate items for Enchant Deadly Poison.


Nipsino

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

Hello, rAthena. I was wondering if anybody could help me out. What I have done is go inside skill_require_db.txt and made another entry for EDP.

378,0,0,60:70:80:90:100,0,0,0,99,0,0,none,0,678,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //ASC_EDP

378,0,0,60:70:80:90:100,0,0,0,99,0,0,none,0,608,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //ASC_EDP

The first one being the original and the second one being a test.

I've @item'd 678 in game, and was able to use Enchant Deadly Poison, however when I've @item'd 608, it wouldn't work.

Please help me with my problem, thank you.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

This ain't a well-made code, but it is working so far.

Here's the explanation of the behavior.

h5KOu.jpg

Go to src/map/skill.c

Find:

req.amount[i] = skill_db[j].amount[i];

Add after:

        if (skill == ASC_EDP) {
           j = pc_search_inventory(sd, 678);
           if (j < 0) {
               j = pc_search_inventory(sd, 608);
               if (j > 0 && sd->status.inventory[j].amount >= 1) {
                   req.itemid[i] = 608;
                   req.amount[i] = 1;
               }
           }
       }

Change 608 for the item you desire to be used as an alternative to EDP in j = pc_search_inventory(sd, 608); and req.itemid = 608;

Change 1 in sd->status.inventory[j].amount >= 1 to how many 608 it will be required. Do it in req.amount = 1; as well.

Recompile and enjoy.

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