Vietlubu Posted January 4, 2013 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 141 Reputation: 24 Joined: 01/19/12 Last Seen: March 30 Share Posted January 4, 2013 prontera,156,176,4 Script Text 100,{ mes "Reset?"; next; menu "Yes.", yes, "No.", no; yes: mes "Reset."; Set .@stat,query_sql("update `char` set `str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 where `name` = '" + strcharinfo(0) + "'"); close; no: mes "Bye"; close; } When select "Yes" . database is change.But where logout and login again database rollback Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 4, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted January 4, 2013 why not just use this ? *resetstatus; This is a character reset command, which will reset the stats on the invoking character and give back all the stat points used to raise them previously. Nothing will happen to any other numbers about the character. Used in reset NPC's (duh!) for your case...you should kick the character out ...so that the data wont "rollback" after updated it. 1 Quote Link to comment Share on other sites More sharing options...
Vietlubu Posted January 4, 2013 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 141 Reputation: 24 Joined: 01/19/12 Last Seen: March 30 Author Share Posted January 4, 2013 thanks how to kick a character Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 4, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted January 4, 2013 atcommand "@kick "+strcharinfo(0); 1 Quote Link to comment Share on other sites More sharing options...
Question
Vietlubu
When select "Yes" . database is change.But where logout and login again database rollback
Link to comment
Share on other sites
3 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.