Jump to content
  • 0

[SQL] Reset Status


Question

Posted

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

3 answers to this question

Recommended Posts

Posted

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.

  • Upvote 1

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