Jump to content
  • 0

function to check global_reg_value variable?


Vy Low

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  298
  • Reputation:   47
  • Joined:  03/30/13
  • Last Seen:  

im using pc_readaccountreg but for some reason it doesnt check the global_reg_value

        case IT_HEALING:
            if(sd && pc_readaccountreg(sd, "#isVIP") >= 1) {
            rate_adjust = (status->mode&MD_BOSS) ? (battle_config.item_rate_heal_boss + battle_config.vip_drop_inc) : (battle_config.item_rate_heal + battle_config.vip_drop_inc);
            }else{
            rate_adjust = (status->mode&MD_BOSS) ? battle_config.item_rate_heal_boss : battle_config.item_rate_heal;
                }
            ratemin = battle_config.item_drop_heal_min;
            ratemax = battle_config.item_drop_heal_max;            
            break;

 

Edited by Vy Low
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  298
  • Reputation:   47
  • Joined:  03/30/13
  • Last Seen:  

it seems mob_parse_dbrow doesnt attach player thats why it doesnt read the pc_readaccountreg, any workaround wherein i can attach player on it?

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