From ab1816bb8401dbafc9a63eb27cf811f89448d090 Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:35:32 +0300 Subject: [PATCH] Update powergamers.lua --- LUA/TFS_10/other.md/powergamers.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index d340bcb..09bd19e 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -6,6 +6,19 @@ function onThink(interval, lastExecution, thinkInterval) return true end -TFS 1.0 (globalevents.xml) - - +-- TFS 1.0 (globalevents.xml) +-- +-- + +-- SQL (remember to remove all -- before executing)-- +--ALTER TABLE `players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist1` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist2` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist3` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist4` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist5` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist6` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist7` BIGINT( 255 ) NOT NULL DEFAULT '0', + +-- after that execute -- +-- UPDATE `players` SET `exphist_lastexp`=`players`.`experience`