Nipsino Posted November 4, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 218 Reputation: 16 Joined: 01/24/12 Last Seen: May 24, 2015 Share Posted November 4, 2012 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. Quote Link to comment Share on other sites More sharing options...
lekkereten Posted November 4, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 148 Reputation: 46 Joined: 11/02/11 Last Seen: November 25, 2024 Share Posted November 4, 2012 This ain't a well-made code, but it is working so far. Here's the explanation of the behavior. 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. Quote Link to comment Share on other sites More sharing options...
Question
Nipsino
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.