Jump to content

@itemoption Command


Keitenai

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

File Name: itemoption
File Submitter: keitenai
File Submitted: 21 Nov 2016
File Category: Utilities
Content Author: keitenai

 

@ command itemoption

Script Information:
     This script allows you to apply random option on a selected equipped item.
 

  • The Option types can be found in const.txt : LINK!!
  • The Value is the rate of the option type effect.
    • eg: `10` = 10% bonus attack
  • Index location is the Option Slot location.
    • 0 = First item option slot
    • 1 = Second item option slot
    • 2 = Third item option slot
    • 3 = Fourth item option slot
    • 4 = Fifth item option slot
      • NOTE that you will not see the Option type's description (Client Side) if the Option Slots are not filled by sequence (missed a slot).
      • With this i added a security check that if you missed/jump an index slot, the script will automatically fix it for you.

 

@ itemoption makes it easier to apply random option in your item quite easily.

 

Compatible with : rAthena  633a642

Download : itemoption.txt 

itemoption-1.PNG      itemoption-2.PNG

Hope you find this useful ^_^

 

itemoption.txt

Edited by Keitenai
  • Upvote 1
  • Love 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

Cleaned up the script.

Got rid of some eA-style code.

Removed the index selection dialogue and made the script automatically detect free option slot.

itemoption.txt

  • Love 1
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   23
  • Joined:  06/14/16
  • Last Seen:  

I can't make this work :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   23
  • Joined:  06/14/16
  • Last Seen:  

[Error]: buildin_setrandomoption: Random option ID 9 does not exists.
[Debug]: Source (NPC): OptCmd (invisible/not on a map)
[Error]: buildin_setrandomoption: Random option ID 3 does not exists.
[Debug]: Source (NPC): OptCmd (invisible/not on a map)
[Error]: buildin_setrandomoption: Random option ID 0 does not exists.
[Debug]: Source (NPC): OptCmd (invisible/not on a map)
[Error]: buildin_setrandomoption: Random option ID 94 does not exists.
[Debug]: Source (NPC): OptCmd (invisible/not on a map)

 

Fixed it. I copied the item_randomopt_db.txt from renewal to pre-renewal :)

 

Link to comment
Share on other sites

  • 8 months later...

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

thnx to this one

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/14/18
  • Last Seen:  

Hi. Sorry I'm a noob at this. Where shoudl I place these codes? thx

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  06/19/22
  • Last Seen:  

Thank you for this.

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
Reply to this topic...

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