From 870b7df973bdac59201649cca58ff8c7f6e50120 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sun, 19 Apr 2020 12:36:39 +0300 Subject: [PATCH] fix rashid, fix spells, add znote sql schema --- data/globalevents/scripts/startup.lua | 2 +- data/spells/spells.xml | 2 ++ sabrehaven_znote.sql | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sabrehaven_znote.sql diff --git a/data/globalevents/scripts/startup.lua b/data/globalevents/scripts/startup.lua index e577281..c927620 100644 --- a/data/globalevents/scripts/startup.lua +++ b/data/globalevents/scripts/startup.lua @@ -10,7 +10,7 @@ local function spawnRashid() } local position = rashidSpawns[os.date("%A")] - local rashid = Game.createNpc("Rashid", position) + local rashid = Game.createNpc("rashid", position) if rashid ~= nil then rashid:setMasterPos(position) position:sendMagicEffect(CONST_ME_MAGIC_RED) diff --git a/data/spells/spells.xml b/data/spells/spells.xml index 55ded86..0fee664 100644 --- a/data/spells/spells.xml +++ b/data/spells/spells.xml @@ -4,6 +4,8 @@ + + diff --git a/sabrehaven_znote.sql b/sabrehaven_znote.sql new file mode 100644 index 0000000..694fcd2 --- /dev/null +++ b/sabrehaven_znote.sql @@ -0,0 +1,17 @@ +ALTER TABLE znote_accounts +ADD twitchuser varchar(256); + +ALTER TABLE znote_accounts +ADD affiliatecode varchar(256); + +ALTER TABLE znote_accounts +ADD affiliated varchar(256); + +CREATE TABLE IF NOT EXISTS `znote_affiliate_logs` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `affiliator_account_id` int(11) NOT NULL, + `affiliated_account_id` int(11) NOT NULL, + `points_given` int(10) NOT NULL, + `paid_money` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB; \ No newline at end of file