diff options
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r-- | npc/commands/event.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 6ee100cfe..82862e01a 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -26,6 +26,17 @@ function script DelAccRegFromEveryPlayer { return; } +// Delete a quest entry from all players. This includes all counters. Use with caution. +// WARNING, irreversible and dangerous! +// DelQuestFromEveryPlayer( ID ) +function script DelQuestFromEveryPlayer { + if (getarg(0, -1) < 0) + return; + + query_sql("DELETE FROM `quest` WHERE `quest_id`="+getarg(0)); + return; +} + // Christmas cannot be on GlobalEventMenu because it affects seasons system function script sChristmas { // Add Christmas drops |