Jump to content
  • 0

#KAFRAPOINTS #CASHPOINTS where this is being stored?


laonglaing

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/12/16
  • Last Seen:  

hello!
Im pretty new in making script, and i have this idea wherein players will have a certain points daily and will be reset the value if not used or anything was left and im thinking to use either #KAFRAPOINTS or #CASHPOINTS. I just wanted to ask where are these values being stored? in the database which table?
how can i implement this in a script? 

Link to comment
Share on other sites

3 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:  

acc_reg_num

its stored in this table.

however to reset it, its a bit tricky

  • if there are no player online, you can safely execute the sql script to remove it from database
  • if there are player currently online, you have to manually select each user to reset their points (of course this can be done is numerous ways)
    then run SQL script to remove points from those who aren't online.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/12/16
  • Last Seen:  

40 minutes ago, Emistry said:
acc_reg_num

its stored in this table.

however to reset it, its a bit tricky

  • if there are no player online, you can safely execute the sql script to remove it from database
  • if there are player currently online, you have to manually select each user to reset their points (of course this can be done is numerous ways)
    then run SQL script to remove points from those who aren't online.

 

thanks for this. so its imposible to reset ingame. i see. so what about limit the usage of kafrapoints for a day. example. you have given 1000 kafrapoints for the week. and you only want the players to use upto 100 points per day. is it possible?
if its imposible to reset the kafra points of players while they are online, im thinking now to reset it every weekly maintenance. 

 

also, if i want to define custom points, is this the only where i define them and does it automatically usable ingame?
or should define it in other part of the emulator?

pc.hpp
image.png.2db09c8946edebd6c175260719efb004.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/12/16
  • Last Seen:  

okay i was able to implement the daily kafrapoints and reset it @12mn server time.  can i dm you for some other question? @Emistry

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