diff options
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/event.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 9113fac8a..44a00192a 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -14,6 +14,18 @@ function script DelItemFromEveryPlayer { return; } +// Delete an acc_reg entry from all players. Full arrays only. Affect num and str db. +// WARNING, irreversible and dangerous! +// DelAccRegFromEveryPlayer( KEY ) +function script DelAccRegFromEveryPlayer { + if (getarg(0, -1) < 0) + return; + + query_sql("DELETE FROM `acc_reg_num_db` WHERE `key`="+getarg(0)); + query_sql("DELETE FROM `acc_reg_str_db` WHERE `key`="+getarg(0)); + return; +} + // Christmas cannot be on GlobalEventMenu because it affects seasons system function script sChristmas { // Add Christmas drops |