summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-12-12 17:46:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-12-12 17:46:21 -0300
commita3623bfd96a44650ca7e8f684a054d312f1af92a (patch)
tree2b98f9821f317ccd6a2ab159133f822a09d0f8f4
parent82839e7d1d2b8429dcbbac97a6b75e347c3b0476 (diff)
downloadserverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.tar.gz
serverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.tar.bz2
serverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.tar.xz
serverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.zip
The bug: a missing return
-rw-r--r--npc/commands/ucp.txt4
-rw-r--r--npc/functions/main.txt1
-rw-r--r--sql-files/main.sql14
3 files changed, 17 insertions, 2 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 89d533b78..00e46af92 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -161,7 +161,7 @@ function script UserCtrlPanel {
// GSET_LONGMENU_DENSITY
// How many nexts should be queued in a density list
// (use higher values if you have few recipes or can scroll)
- if (GSET_LONGMENU_DENSITY)
+ if (!GSET_LONGMENU_DENSITY)
mes l("Long Text Wall Density: ") + col(l("Normal"), 1);
else
mes l("Long Text Wall Density: ") + col(l("Compact")+": "+GSET_LONGMENU_DENSITY, 2);
@@ -214,7 +214,7 @@ function script UserCtrlPanel {
case 3:
GSET_DAILYREWARD_SILENT=!GSET_DAILYREWARD_SILENT; break;
case 4:
- if (GSET_LONGMENU_DENSITY > 5)
+ if (GSET_LONGMENU_DENSITY >= 5)
GSET_LONGMENU_DENSITY=0;
else
GSET_LONGMENU_DENSITY+=1;
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 95587aa70..5df1999d2 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -19,6 +19,7 @@ function script dnext {
} else {
@dnext+=1;
}
+ return;
}
function script menuaction {
diff --git a/sql-files/main.sql b/sql-files/main.sql
index a6e6c1a06..6810f74a6 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -315,6 +315,20 @@ CREATE TABLE IF NOT EXISTS `discord` (
) ENGINE=MyISAM;
--
+-- Table structure for table `patreon`
+--
+
+-- account_id (Game issued)
+-- client_id (Patreon issued)
+CREATE TABLE IF NOT EXISTS `patreon` (
+ `account_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
+ `client_id` VARCHAR(255) NOT NULL DEFAULT '',
+ `access_token` VARCHAR(255) NOT NULL DEFAULT '',
+ `currently_entitled_amount_cents` INT(11) DEFAULT '0',
+ `verified` ENUM('0', '1') NOT NULL DEFAULT '0'
+) ENGINE=MyISAM;
+
+--
-- Table structure for table `elemental`
--