Jump to content
  • 0

Question

Posted

Hello, as the title says, how can i truncate a table like picklog in script command? like query_sql? 

 

its like making a menu in NPC like:

 

"Reset Picklog"

"Reset Zenylog"

 

if click the picklog the whole picklog table will reset or truncate.

 

anyone can help me please? thank you in advance!

 

6 answers to this question

Recommended Posts

Posted


prontera,150,150,5 script jopijip 75,{

setarray .@table$, "zenylog", "picklog";

.@s = select( "truncate zenylog", "truncate picklog" ) -1;

query_logsql "truncate table `"+ .@table$[.@s] +"`";

mes "you truncate table "+ .@table$[.@s];

close;

}

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