Jump to content
  • 0

INSERT data into SQL in SRC


Onairda

Question


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  179
  • Reputation:   9
  • Joined:  12/30/16
  • Last Seen:  

I have a custom skills in map/skill.cpp

Could someone give me a syntax to insert data in SQL 

Table Name: CustomMonster
Fields: id, char_id, mob_id, mob_name

what sysntax I can use to insert the data?
 

Quote

    case SG_CUSTOMMMONSTER:  
    {
        if (!sd || !bl || bl->type != BL_MOB)
            break;

        struct mob_data* md = (TBL_MOB*)bl;

        // Check if monster is if custom
        if (md->db->mexp != 999999) {
            clif_displaymessage(sd->fd, "This monster custom!.");
            
        //INSERT TO SQL  PLEASE GIVE SYNTAX THAT will insert the char_id, mob_id, and mob_name to Table CustomMonster

            break
        }

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  179
  • Reputation:   9
  • Joined:  12/30/16
  • Last Seen:  

ERROR RECVING LINK2001

SOVLED! Just get the format in Vending.cpp

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