Eros Posted March 24, 2014 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
Euphy Posted March 24, 2014 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
Eros Posted March 24, 2014 Author 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
Kido Posted March 31, 2014 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
Missingno Posted March 31, 2014 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
Kido Posted March 31, 2014 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
Missingno Posted March 31, 2014 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
Kido Posted March 31, 2014 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
Angelisk Posted April 1, 2014 Posted April 1, 2014 I think i should say Thank You.... This helped me a lot Euphy and Missingno ~ lol Quote
Missingno Posted April 1, 2014 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
Kido Posted April 1, 2014 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
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.
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.