Jump to content
  • 0

why onClock no run?!


Question

Posted

first, tks for read this, and double tks  If it can guide

I have this stru
in scripts_athena.conf
 firs call npc: npc/aa/globalparameters.txt

in globalparameters.txt

-    script    globalparameters    -1,{

OnClock2359:
    query_sql "delete from `acc_reg_num` where `key` = '#day_event'; ";
    debugmes "delete from `acc_reg_num` where `key` = '#day_event'; ";
    announce "Events was reseted, you can use a free daily entrance",0;
end;

}

Nothing happens with this script.
Does not show debug, does not execute sql

5 answers to this question

Recommended Posts

  • 0
Posted

What's with the semi-colon within the sql statement? I don't think that needs to be there... Also, the sql key isn't goign to be #day_event ... it already knows it's an account variable beacuse it's in the acc_reg_num table... the variable is just "day_event"

 

 

  • 0
Posted
57 minutes ago, Z3R0 said:

What's with the semi-colon within the sql statement? I don't think that needs to be there... Also, the sql key isn't goign to be #day_event ... it already knows it's an account variable beacuse it's in the acc_reg_num table... the variable is just "day_event".
 

 

 

semi-colon, no necessary, but no a error, is a sql sintaxe;

key is a field (or column) and your content is #day_event, so if it's a text field and its content is #day_event, my query is correct when I use key = '#day_event'
I have no errors in the query, and even if there were, it should be listed by debugmes, nor does it appear.
 

  • 0
Posted

hmmm that is strange actually :D

you are correct and I was wrong, the key does infact include the # sign. wonder why it won't delete then?

does your debugmes run at that time?

  • 0
Posted
On 04/08/2017 at 2:55 PM, Z3R0 said:

hmmm that is strange actually :D

you are correct and I was wrong, the key does infact include the # sign. wonder why it won't delete then?

does your debugmes run at that time?

Well .... it seems that nobody knows, or is not willing to respond.

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