Jump to content
  • 0

reverting back refine items


Halestorm

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  11/19/16
  • Last Seen:  

Good day.. Im.wondering if there is a possible way to revert refine items once they log in.. For example.. A player has a +10 valk armor .. Then once he log in it will be reverted / down graded to + 8 valk armor.. Then if i disbale that script it will stay as + 8 as is.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

10 hours ago, Halestorm said:

Good day.. Im.wondering if there is a possible way to revert refine items once they log in.. For example.. A player has a +10 valk armor .. Then once he log in it will be reverted / down graded to + 8 valk armor.. Then if i disbale that script it will stay as + 8 as is.

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4972-L4977

In the script section of valk armor in your item database add this.
 

if( getrefine() > 8 ) downrefitem EQI_ARMOR, (getrefine() - 8);

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  11/19/16
  • Last Seen:  

Im a bit confuse on how to do this... :wacko: can you elaborate it more?? Like step by step?

 

Thanks sir in advance

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

8 hours ago, Halestorm said:

Im a bit confuse on how to do this... :wacko: can you elaborate it more?? Like step by step?

a368f16192fd2307b15940006c9cece9.gif

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