Jump to content
  • 0

How to make refineui random option group ?


hoolbast

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/26/20
  • Last Seen:  

how to make refine up get random option group ?

Edited by hoolbast
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

find the successrefitem(...) script commands

and add these

sd->inventory.u.items_inventory[i].option[index].id = id;
sd->inventory.u.items_inventory[i].option[index].value = value;
sd->inventory.u.items_inventory[i].option[index].param = param;

set the index, id, value, param to whatever random item bonus you want.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  03/26/20
  • Last Seen:  

On 10/15/2022 at 9:49 PM, Emistry said:

find the successrefitem(...) script commands

and add these

sd->inventory.u.items_inventory[i].option[index].id = id;
sd->inventory.u.items_inventory[i].option[index].value = value;
sd->inventory.u.items_inventory[i].option[index].param = param;

set the index, id, value, param to whatever random item bonus you want.

This is not a group 

group = id in item_randomopt_group.yml

example.

if  id->equip == EQP_ARMOR  random group 101

if  id->equip == EQP_SHIELD random group 102

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