xmaniacx Posted January 21, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 110 Reputation: 1 Joined: 04/03/12 Last Seen: April 29, 2019 Share Posted January 21, 2013 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; Quote Link to comment Share on other sites More sharing options...
Euphy Posted January 22, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted January 22, 2013 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). Quote Link to comment Share on other sites More sharing options...
xmaniacx Posted January 22, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 110 Reputation: 1 Joined: 04/03/12 Last Seen: April 29, 2019 Author Share Posted January 22, 2013 thank you euphy. Quote Link to comment Share on other sites More sharing options...
Question
xmaniacx
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;
Link to comment
Share on other sites
2 answers 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.