Jump to content
  • 0

Query to reset skill/stat points?


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

May I request a sql query that would reset all skill points and status points of all Lord Knights (#4008) in the server but still giving them back what should be the set skills points and stat points.

 

Thank you guys!

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1550
  • Reputation:   239
  • Joined:  08/03/12
  • Last Seen:  

up, i want to reset all players, if anyone can help ? /kis

using sql is great !

*i want to reset all character to their original status point, not remove it

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Well I just used a NPC for this.

 

Thanks.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

TRUNCATE `skill`;

UPDATE `char` SET `str` = 5,`agi` = 5,`vit` = 5,`int` = 5,`dex` = 5,`luk` = 5,`status_point` = 0,`skill_point` = 0;

some basic way that you can try.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1550
  • Reputation:   239
  • Joined:  08/03/12
  • Last Seen:  

TRUNCATE `skill`;

UPDATE `char` SET `str` = 5,`agi` = 5,`vit` = 5,`int` = 5,`dex` = 5,`luk` = 5,`status_point` = 0,`skill_point` = 0;

some basic way that you can try.

 

i want to reset so they got status point which is 3330 for 3rd job if im not mistaken, that query seems reset to novice stats ? since status point is 0

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

If you use prere load [paste=cks0m5eejyj] and execute

update `char` set status_point = ( ( select points from `status_points_prere` where `status_points_prere`.`base_level` = `char`.`base_level` )
+ IF( `class` < 4001 or `class` > 4029 and `class` < 4109 , 48, 100 ) ),
`str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 
where online = 0 and account_id not in ( select account_id from login where group_id >= 60 )

If you use renewal stat, load [paste=79h03exenzoq] and execute

EDIT : [paste=57mh2zxewaph]

update `char` set status_point = ( ( select points from `status_points_re` where `status_points_re`.`base_level` = `char`.`base_level` )
+ IF( `class` < 4001 or `class` > 4029 and `class` < 4109 , 48, 100 ) ),
`str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 
where online = 0 and account_id not in ( select account_id from login where group_id >= 60 )

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1550
  • Reputation:   239
  • Joined:  08/03/12
  • Last Seen:  

 

If you use prere load [paste=cks0m5eejyj] and execute

update `char` set status_point = ( ( select points from `status_points_prere` where `status_points_prere`.`base_level` = `char`.`base_level` )
+ IF( `class` < 4001 or `class` > 4029 and `class` < 4109 , 48, 100 ) ),
`str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 
where online = 0 and account_id not in ( select account_id from login where group_id >= 60 )

If you use renewal stat, load [paste=79h03exenzoq] and execute

update `char` set status_point = ( ( select points from `status_points_re` where `status_points_re`.`base_level` = `char`.`base_level` )
+ IF( `class` < 4001 or `class` > 4029 and `class` < 4109 , 48, 100 ) ),
`str` = 1, `agi` = 1, `vit` = 1, `int` = 1, `dex` = 1, `luk` = 1 
where online = 0 and account_id not in ( select account_id from login where group_id >= 60 )

this gonna work for all character sir ?

btw, when i @reset , 3rd job status point will be 3330 for level 175.. and as i see at that paste u given for renewal, (175,3265); 

theres a bit different, why sir

Edited by Chaos92
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Yes this gonna work for all characters. I don't know why there is a decimal in db stat however char.status_point will convert the entrie to integrer.

 

EDIT I think it's because I used an old stat db

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1550
  • Reputation:   239
  • Joined:  08/03/12
  • Last Seen:  

Yes this gonna work for all characters. I don't know why there is a decimal in db stat however char.status_point will convert the entrie to integrer.

 

EDIT I think it's because I used an old stat db

can i have the latest sir /help

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

[paste=57mh2zxewaph]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1550
  • Reputation:   239
  • Joined:  08/03/12
  • Last Seen:  

[paste=57mh2zxewaph]

work like charm /thx

Link to comment
Share on other sites

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.

×
×
  • Create New...