Eros Posted March 24, 2014 Group: Members Topic Count: 76 Topics Per Day: 0.02 Content Count: 202 Reputation: 2 Joined: 07/09/12 Last Seen: June 7, 2023 Share Posted March 24, 2014 A potion script that when i use a certain potion the ammount will not decrease so i just need to put 1 potion in my inventory. Quote Link to comment Share on other sites More sharing options...
Euphy Posted March 24, 2014 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted March 24, 2014 doc/item_db.txt Type: ... 11 Usable with delayed consumption (intended for 'itemskill') Items using the 'itemskill' script command are consumed after selecting a target. Any other command will NOT consume the item. Quote Link to comment Share on other sites More sharing options...
Eros Posted March 24, 2014 Group: Members Topic Count: 76 Topics Per Day: 0.02 Content Count: 202 Reputation: 2 Joined: 07/09/12 Last Seen: June 7, 2023 Author Share Posted March 24, 2014 i made it 11 but it wont heal 12270,Cold_Medicine,Cold Medicine,11,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; },{},{}That's the script Quote Link to comment Share on other sites More sharing options...
Kido Posted March 31, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted March 31, 2014 try this o:! it will consumbe but also give you another potion, so basiclly no consume lol 11501,Light_White_Pot,Light White Potion,0,1200,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 25,0; getitem 11501,1; },{},{} Quote Link to comment Share on other sites More sharing options...
Missingno Posted March 31, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted March 31, 2014 Type 11 runs the script and won't consume the item if an "itemskill" command isn't issued. As it was written, this is the correct entry: 12270,Cold_Medicine,Cold Medicine,11,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; },{},{} It does in fact heal, but a healing effect is not shown. Add this to the item script if you want the special effect: specialeffect2 EF_HEAL; Tested just a moment ago; if this isn't working for you, try it on a fresh copy of rAthena. *Moved to Database Requests Quote Link to comment Share on other sites More sharing options...
Kido Posted March 31, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted March 31, 2014 may i ask, why not just this? 12270,Cold_Medicine,Cold Medicine,0,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; specialeffect2 EF_HEAL; getitem 12270,1;},{},{} so at the end, the item is not "decreasing" ? just asking o:! Quote Link to comment Share on other sites More sharing options...
Missingno Posted March 31, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted March 31, 2014 may i ask, why not just this? 12270,Cold_Medicine,Cold Medicine,0,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; specialeffect2 EF_HEAL; getitem 12270,1;},{},{} so at the end, the item is not "decreasing" ? just asking o:! Type 11 items are not consumed unless an "itemskill" command is issued when used; they simply stay in your inventory. Your method is a nice workaround, if you disregard the message displayed every time the item is consumed (example: You got 1 Infinite Fly Wing. You got 1 Infinite Fly Wing. You got 1 Infinite Fly Wing.) and the risk of item loss (example: Player has autoloot enabled and becomes overweight or exceeds inventory capacity; You dropped 1 Infinite Fly Wing.). Quote Link to comment Share on other sites More sharing options...
Kido Posted March 31, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted March 31, 2014 oh how cool o:! i will make a super pot for my server then like him requested o:! this should just work then? 12270,Cold_Medicine,Cold Medicine,11,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; specialeffect2 EF_HEAL; },{},{} well i don't like the heal effect, i think many players using it in woe would cause lag @.@ huh i believe there was an option to turn off when you want to notice that you got or dropped an item o:! 12270,Cold_Medicine,Cold Medicine,11,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; },{},{} Quote Link to comment Share on other sites More sharing options...
Angelisk Posted April 1, 2014 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 128 Reputation: 33 Joined: 01/21/13 Last Seen: November 8, 2024 Share Posted April 1, 2014 I think i should say Thank You.... This helped me a lot Euphy and Missingno ~ lol Quote Link to comment Share on other sites More sharing options...
Missingno Posted April 1, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted April 1, 2014 huh i believe there was an option to turn off when you want to notice that you got or dropped an item o:! 12270,Cold_Medicine,Cold Medicine,11,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; },{},{} This is true, but players shouldn't be forced to turn off all pick messages just because one item is spamming their message log. I think i should say Thank You.... This helped me a lot Euphy and Missingno ~ lol You're very welcome! Quote Link to comment Share on other sites More sharing options...
Kido Posted April 1, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted April 1, 2014 huh i believe there was an option to turn off when you want to notice that you got or dropped an item o:! 12270,Cold_Medicine,Cold Medicine,11,20,,10,,,,,0xFFFFFFFF,7,2,,,50,,,{ percentheal 25,25; },{},{} This is true, but players shouldn't be forced to turn off all pick messages just because one item is spamming their message log. I think i should say Thank You.... This helped me a lot Euphy and Missingno ~ lol You're very welcome! you are right o:! better not turn that off for security o:! Quote Link to comment Share on other sites More sharing options...
Question
Eros
A potion script that when i use a certain potion the ammount will not decrease so i just need to put 1 potion in my inventory.
Link to comment
Share on other sites
10 answers 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.