From 9c7bc9144eaf91eaca08d46686eaa50d0804c940 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Aug 2019 18:13:06 -0300 Subject: FIX THE PVP BUG --- npc/functions/clientversion.txt | 6 ++++++ npc/functions/hub.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'npc/functions') diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 9108e9689..e4f6a034b 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -526,6 +526,12 @@ function script clientupdater { } // if ranking } + // Negative Karma = good. And positive karma allows PvP. So... + // sex ago 9 18:10:20 -03 201 + if (UPDATE < 1565385020) { + UPDATE=1565385020; + Karma=0; + } // #ADD_LVL means the user have to right to get some levels. This is a sketch. The code might be deleted. diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 553d0955a..eb535d9f6 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -117,7 +117,7 @@ function script HUB_Logout { sc_end SC_OVERLAPEXPUP; sc_start SC_OVERLAPEXPUP, 300000, -20; dispbottom l("For cowardingly killing in a \"secure\" area, you will be severely punished."); - Karma-=1; + //Karma+=1; sc_start SC_STUN, 15000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK; addtimer(15000, "#mobptsys::OnUnlock"); percentheal -88, -100; -- cgit v1.2.3-60-g2f50