Jump to content
  • 0

Reset Account Variables


Question

Posted

hello. i wanna reset account variables automatically, without clicking an npc or some else.

so well, i want an reset every day at 14:00 PM.. would be nice if the player dosent have to be online.

i guess the onhour event wont work for this, right? because the variables wont reset if the player is not online? so are there another ways to delete variables?

5 answers to this question

Recommended Posts

Posted (edited)

uhm, are they located in global_reg_value? i think i will just fail to find them and make a script for this, but i will it try some things now.

so yeah i found them i global_reg.. is there any example script to query sql them?

Edited by Nokia
Posted (edited)

uhm, are they located in global_reg_value? i think i will just fail to find them and make a script for this, but i will it try some things now.

Yes. You could use the OnHour trigger but you can't reference any player. You'd have to make iterations starting from the first accountID (the last column in global_reg_value) and either use the DELETE or SET commands in an sql query (depending on what your definition of 'reset' is).

Note that no On[whatever] scripts actually have to be attached to a RID to execute themselves unless they do RID specific things.

Edited by Elliott

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