Jump to content
  • 0

Implementing Conditional HP Boost Based on Item Possession


HenryCroslan

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.02
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/12/24
  • Last Seen:  

Hello rAthena Community! suika game

I've been inspired by a recent discussion on granting players extra HP if they possess a certain item. I'm looking to implement a similar feature but with a twist. Here's what I aim to achieve:

•  Players should receive a temporary HP boost when they have a specific item in their inventory.

•  This boost should only be active during certain server events or specific times.

•  I want to ensure that the boost is removed once the item is no longer in the player's inventory or when the event ends.

Could anyone guide me on how to modify the script to check for the item and apply these conditions effectively? Any examples or snippets would be greatly appreciated!
 

Edited by HenryCroslan
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1188
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

12 hours ago, HenryCroslan said:

Hello rAthena Community! suika game

I've been inspired by a recent discussion on granting players extra HP if they possess a certain item. I'm looking to implement a similar feature but with a twist. Here's what I aim to achieve:

•  Players should receive a temporary HP boost when they have a specific item in their inventory.

•  This boost should only be active during certain server events or specific times.

•  I want to ensure that the boost is removed once the item is no longer in the player's inventory or when the event ends.

Could anyone guide me on how to modify the script to check for the item and apply these conditions effectively? Any examples or snippets would be greatly appreciated!
 

maybe you can try this 

put the iteam as rental or delete it when the event already end.

  • Upvote 1
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...