Jump to content
  • 0

Does anyone know this ?


Eros

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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; },{},{}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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:!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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; },{},{}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   32
  • Joined:  01/21/13
  • Last Seen:  

I think i should say Thank You.... This helped me a lot Euphy and Missingno ~

 

lol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

 

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:!

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