Jump to content
  • 0

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


Dev j

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  79
  • Reputation:   1
  • Joined:  06/22/23
  • Last Seen:  

-    script    delete_scbossmapinfo    FAKE_NPC,{

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

Help how can i correct this script

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   87
  • Joined:  06/30/18
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/24/18
  • Last Seen:  

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");

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  79
  • Reputation:   1
  • Joined:  06/22/23
  • Last Seen:  

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.

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