Jump to content
  • 0

why onClock no run?!


baro

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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"

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

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.
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

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.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

U didn't answer my question does ur debug message run? 

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