Jump to content
  • 0

player Consumeable item with buff icon.. Is it possible?


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   7
  • Joined:  06/29/12
  • Last Seen:  

Hello guys,

I want to confirm.. Do we can do this thing on rAthena?

1. Player eat apple (example item)
2. Player will get 10% EXP for 10 mins and shows the remaining time at buff/status on right screen.

I think I saw something like this before..

After searching doc script_commands.. Found something like this : 

Status_icon: See "Status Icon" section in 'src/map/script_constants.h'. Default is SI_BLANK (-1).

Example:
	// Apple gives you +5 Str bonus for 1 minute when it's consumed.
	512,Apple,Apple,0,15,,20,,,,,0xFFFFFFFF,63,2,,,,,,{ bonus_script "{ bonus bStr,5; }",60; },{},{}

How can I use like example Vitata 500 status icon?

12436,Vitata500,Vitata 500,0,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ sc_start2 SC_VITATA_500,500000,20,5; itemheal 0,200; },{},{}

on scripts_constants.hpp : 

	export_constant(SC_VITATA_500);



Thank you in advance..

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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