Jump to content
  • 0

SQL Ingame Control Panel


Question

Posted

This NPC can be use to reset char location to default town by login into game using another char within the same account.

Else to reset errored equipment /hairstyle /card.

Else change password.

11 answers to this question

Recommended Posts

Posted

[info]: 'OnNplay' logged in. (AID/CID: '2000006/150002', Packet Ver: '25', IP: '180.73.172.999').
[sql]: DB error - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `hair_color` , `clothes_color` = '0' , '0' , '0' WHERE `name` = 'Testchar' at line 1
[Debug]: at script.c:12753 - UPDATE `char` SET `hair` , `hair_color` , `clothes_color` = '0' , '0' , '0' WHERE `name` = 'Testchar'
[Debug]: Source (NPC): Control Panel at prontera (166,206)
[info]: Character 'OnNplay' logged off.

How to correct this error?

Posted

Um your error is your not setting the values when needed. It should be like this if i'm not mistaken:

query_sql"UPDATE `char` SET `hair`='0', `hair_color`='0', `clothes_color`='0' WHERE `name`='Testchar'";
//OR
query_sql"UPDATE `char` SET `hair`='0', `hair_color`='0', `clothes_color`='0' WHERE `name`='"+strcharinfo(0)+"'";
//OR
query_sql"UPDATE `char` SET `hair`='0', `hair_color`='0', `clothes_color`='0' WHERE `name`='"+string_variable$+"'";

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