Jump to content

Question

Posted

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
        }

1 answer to this question

Recommended Posts

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