Jump to content
  • 0

Reseting character's whole look


Question

Posted

what's the correct way to reset a whole style of character.

this is what i did but im getting sql error.

query_sql "UPDATE `char` SET `hair` , `hair_color` , `clothes_color` = '0' , '0' , '0' WHERE `name` = '"+getcharid

(3)+"'";

atcommand "@kick "+strcharinfo(0);

end;

2 answers to this question

Recommended Posts

Posted

If you're running the script on the attached character, you can just do it using script commands, no need for SQL/relog:

setlook 7,0;
setlook 1,0;
setlook 6,0;

You only need an SQL query to modify values for offline characters (in which case @kick would still not be needed xP).

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