Jump to content
  • 0
daim

how to mass reset player variable

Question

Hi there,

 

Is there any way to MASS reset players variables. For example i would like to reset KILL variable in pvp ghost npc script to default = 0 whithout needs player online.

 

let say 10 player attached with KILL variable, i needs to reset KILL to all player without they online.

 

is this posibble?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

addrid(0); //attached all onine players , you have to install addrid command

KILL variable = 0; // reset all online players' varaible

query_sql ("UPDATE `char_reg_num_db` SET  `value` =0 WHERE  `key` = 'KILL variable' " ); //reset offline players' variable

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0
DELETE FROM `char_reg_num_db` WHERE `key` = "KILL";DELETE FROM `char_reg_num_db` WHERE `key` = "Death";DELETE FROM `char_reg_num_db` WHERE `key` = "KillingStreak";DELETE FROM `char_reg_num_db` WHERE `key` = "MultiKill";DELETE FROM `char_reg_num_db` WHERE `key` = "KillingSpree";DELETE FROM `char_reg_num_db` WHERE `key` = "Dominating";DELETE FROM `char_reg_num_db` WHERE `key` = "MegaKill";DELETE FROM `char_reg_num_db` WHERE `key` = "Unstoppable";DELETE FROM `char_reg_num_db` WHERE `key` = "WickedSick";DELETE FROM `char_reg_num_db` WHERE `key` = "MonsterKill";DELETE FROM `char_reg_num_db` WHERE `key` = "Godlike";DELETE FROM `char_reg_num_db` WHERE `key` = "BeyondGodlike";DELETE FROM `char_reg_num_db` WHERE `key` = "DoubleKill";DELETE FROM `char_reg_num_db` WHERE `key` = "TripleKill";DELETE FROM `char_reg_num_db` WHERE `key` = "UltraKill";DELETE FROM `char_reg_num_db` WHERE `key` = "Rampage";DELETE FROM `char_reg_num_db` WHERE `key` = "Ownage";DELETE FROM `char_reg_num_db` WHERE `key` = "NemesisKill";DELETE FROM `char_reg_num_db` WHERE `key` = "FeedCount";

This is what i use to clean my pvp table (using ghost's pvp script)

Share this post


Link to post
Share on other sites
  • 0

addrid(0); //attached all onine players , you have to install addrid command

KILL variable = 0; // reset all online players' varaible

query_sql ("UPDATE `char_reg_num_db` SET  `value` =0 WHERE  `key` = 'KILL variable' " ); //reset offline players' variable

thanks. This made handy.

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

×
×
  • Create New...

Important Information

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