diff options
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r-- | npc/functions/clientversion.txt | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index c4cca2467..59098ee15 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -8,6 +8,18 @@ // This also handles all updates, and usually have priority. function script clientupdater { + // GM Reset Util + if (is_staff()) { + if (BaseLevel > 20 || Zeny > 50000 || JobLevel > 20) { + resetlvl(1); + Zeny=0; + clearitem(); + adddefaultskills(); + dispbottom col("GM Account detected - Automatic Char Reset successful.", 1); + debugmes "GM Account %s reset successful", strcharinfo(0); + } + } + // Skip any update for newcomers if (getmap() ~= "000-0*") { UPDATE=gettimetick(2); @@ -368,7 +380,16 @@ function script clientupdater { // Cleanup deletearray RNGTREASURE_DATE; } - + // Test Server Updates + // seg jul 22 21:23:00 -03 2019 + if (UPDATE < 1563841380) { + UPDATE=1563841380; + // If you have TMW2_CRAFT skill, you need the bonus recipe + if (getskilllv(TMW2_CRAFT)) { + RECIPES_EQUIPMENT[CraftDagger]=true; + dispbottom l("Dagger Crafting recipe learnt."); + } + } // #ADD_LVL means the user have to right to get some levels. This is a sketch. The code might be deleted. if (#ADD_LVL) { |