Jump to content
  • 0

sql query that counts/checks how many key are already inserted


Question

Posted

Hello Guys, I'm trying to modify a script for max level reward

but I'm stuck on sql query.

regarding checking if how many key entry are already inside acc_reg_num_db

like for example it will check if there is already 50 entry of #99reward

 

 

 

Thanks in advance.

6 answers to this question

Recommended Posts

Posted

I'm doing this for my race to lvl 99 reward because it's only for 1 claim per account., and it's only meant for 100 players else if 100 players already claimed the npc will hide. that's why I'm using #99reward because I restrict for account.

Posted

So use a global variable ($var) to keep track of how many players have gotten the reward, i.e. increment it every time you give one. Much simpler than counting database entries.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...