How does the random generation of prefix and postfix attributes work for an equipment

Results 1 to 9 of 9
  1. #1
    Valued Member wxk0248 is offline
    MemberRank
    Jan 2015 Join Date
    114Posts

    happy How does the random generation of prefix and postfix attributes work for an equipment

    1.png2.png
    How does the random generation of prefix and postfix attributes work for an equipment?
    we knows:if
    random_quality_affix=1
    ID_prefix_addon_package=0
    ID_postfix_addon_package=0
    then It will automatically generate the prefix and postfix attributes using ADDON_PACKAGE_CONFIG,but I don't understand how it works.
    Key attributes:
    affix_level //unknown
    character_combo_ID //Role occupation
    equip_mask //position of wearing equipment
    pet_race_mask //useless
    petquip_mask //useless
    equip_usingtype_mask //unknown
    weight //random weight

    How to make the prefix and suffix attributes of an equipment random within the specified attributes?


  2. #2
    Enthusiast Denval69 is offline
    MemberRank
    Aug 2018 Join Date
    46Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    1.png

  3. #3
    Account Upgraded | Title Enabled! fazotron712 is offline
    MemberRank
    Jul 2012 Join Date
    -Location
    222Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    https://codeshare.io/5Dq4e3

    Old function to get list of affixes.
    Maybe could help you to understand.

    https://pasteboard.co/IMIv2lx.jpg

    If that what you need ofc)
    Last edited by fazotron712; 24-12-19 at 11:16 AM.

  4. #4
    Valued Member wxk0248 is offline
    MemberRank
    Jan 2015 Join Date
    114Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    Quote Originally Posted by fazotron712 View Post
    https://codeshare.io/5Dq4e3

    Old function to get list of affixes.
    Maybe could help you to understand.

    https://pasteboard.co/IMIv2lx.jpg

    If that what you need ofc)
    I understand,thanks a lot.

    - - - Updated - - -

    Quote Originally Posted by fazotron712 View Post
    https://codeshare.io/5Dq4e3

    Old function to get list of affixes.
    Maybe could help you to understand.

    https://pasteboard.co/IMIv2lx.jpg

    If that what you need ofc)
    3.png
    I found that when affix = 6, it controls the generation of identify attributes. Do you have the code for generating identify attributes? Is it possible that the number of identify attributes exceeds 4?
    Last edited by wxk0248; 24-12-19 at 02:44 PM.

  5. #5
    Account Upgraded | Title Enabled! fazotron712 is offline
    MemberRank
    Jul 2012 Join Date
    -Location
    222Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip


  6. #6
    Valued Member wxk0248 is offline
    MemberRank
    Jan 2015 Join Date
    114Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    Quote Originally Posted by fazotron712 View Post
    thx

  7. #7
    Valued Member wxk0248 is offline
    MemberRank
    Jan 2015 Join Date
    114Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    Quote Originally Posted by fazotron712 View Post
    https://codeshare.io/5Dq4e3

    Old function to get list of affixes.
    Maybe could help you to understand.

    https://pasteboard.co/IMIv2lx.jpg

    If that what you need ofc)
    4.pngI tested it and found that there are still some incomprehensible points.For example, what is the function of affix_prop_1_1 to affix_prop_2_2?
    if affix_prop_2_2=1 then only postfix attributes are generated,i change their values and sometimes even generate equipment without prefix and postfix attributes.

  8. #8
    Account Upgraded | Title Enabled! fazotron712 is offline
    MemberRank
    Jul 2012 Join Date
    -Location
    222Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    Quote Originally Posted by wxk0248 View Post
    4.pngI tested it and found that there are still some incomprehensible points.For example, what is the function of affix_prop_1_1 to affix_prop_2_2?
    if affix_prop_2_2=1 then only postfix attributes are generated,i change their values and sometimes even generate equipment without prefix and postfix attributes.
    affix_prop stores probs to generate: non of affixes, prefix only, postfix only, prefix+postfix

  9. #9
    Valued Member wxk0248 is offline
    MemberRank
    Jan 2015 Join Date
    114Posts

    Re: How does the random generation of prefix and postfix attributes work for an equip

    Quote Originally Posted by fazotron712 View Post
    affix_prop stores probs to generate: non of affixes, prefix only, postfix only, prefix+postfix
    Thanks a lot!
    I tried to set 4 equipment and 4 attributes respectively, and I got the same conclusion as you,thanks again.



Advertisement