Jump to content
  • 0

Hello please help how to delete sc_data of SC_BOSSMAPINFO everytime to login


Question

Posted

-    script    delete_scbossmapinfo    FAKE_NPC,{

OnPCLoginEvent:
query_sql(DELETE FROM `sc_data` WHERE `type` = 123456
end;
}

Help how can i correct this script

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Hello,

what do you exactly want to achieve with this script?

If you want to simply remove SC_BOSSMAPINFO state from a player on login, you can use this:

-    script    delete_scbossmapinfo    FAKE_NPC,{
    OnPCLoginEvent:
        sc_end(SC_BOSSMAPINFO);
}

 

Edited by Winterfox
  • 0
Posted
9 hours ago, Dev j said:

-    script    delete_scbossmapinfo    FAKE_NPC,{

OnPCLoginEvent:
query_sql(DELETE FROM `sc_data` WHERE `type` = 123456
end;
}

Help how can i correct this script

try this

query_sql("DELETE FROM `sc_data` WHERE `type` = 123456");

 

  • 0
Posted
On 6/26/2023 at 7:22 PM, Winterfox said:

Hello,

what do you exactly want to achieve with this script?

If you want to simply remove SC_BOSSMAPINFO state from a player on login, you can use this:

-    script    delete_scbossmapinfo    FAKE_NPC,{
    OnPCLoginEvent:
        sc_end(SC_BOSSMAPINFO);
}

 

Thank you i will try.

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