Jump to content
  • 0
Sign in to follow this  
jpnazar

How can i reset all the skills of all the characters in the servers?

Question

6 answers to this question

Recommended Posts

  • 0

Don't know of an easy way of doing this except for making a NPC:

-	script	resetskill	-1,{OnPCLoginEvent:	if (!resetted) {		resetskill;		set resetted, 1;	}	end;}

 

You could also truncate the skill table, but that won't refund the used skill points to the players.

Share this post


Link to post
Share on other sites
  • 0

Don't know of an easy way of doing this except for making a NPC:

-	script	resetskill	-1,{OnPCLoginEvent:	if (!resetted) {		resetskill;		set resetted, 1;	}	end;}

 

You could also truncate the skill table, but that won't refund the used skill points to the players.

how to truncate?

Share this post


Link to post
Share on other sites
  • 0

NOTE!! All used skillpoints WILL be gone if you do that, so you may experience buggyness on your server if you decide to proceed doing this.

 

For truncating the table you should issue the following command on your ragnarok database:

TRUNCATE TABLE `skill`;

If you don't have enough permissions for doing this, you could issue this command, which is slower but will do the job:

DELETE FROM `skill`;

 

Remember that all data will be gone and you can't undo these statements. A backup of the database is highly reccommended before doing this.

 

Hope I helped.

Share this post


Link to post
Share on other sites
  • 0

Don't know of an easy way of doing this except for making a NPC:

-	script	resetskill	-1,{OnPCLoginEvent:	if (!resetted) {		resetskill;		set resetted, 1;	}	end;}

 

You could also truncate the skill table, but that won't refund the used skill points to the players.

This will, however, not reset skills of all characters on the server, just all characters that fully logged in to the game.

Share this post


Link to post
Share on other sites
  • 0

Well, it's a hotfix and if you're in a pserver open to public this will work for any active users, which is what you want and will do the job if you keep that NPC on the server forever, providing you won't unset that resetted var.

 

The TRUNCATE method works for every character on the server but all used skill points won't be back.

Share this post


Link to post
Share on other sites
  • 0

I think that NPC solution is good enough, but I also thought it's worth pointing out that it's not the exact solution to OP's question, just to avoid confusion. It might not be obvious to everyone that this script only works if player logs in (but it should be ;))

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.