summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-11 16:25:51 +0000
committerMicksha <ms-shaman@gmx.de>2020-10-11 16:25:51 +0000
commitdbde28d58750225c967796e0c39ab4d4b709a4a2 (patch)
tree57c1392d62d9b00d796e32e07ddab18b9dfa648b /db
parent39536b4781e689c19ee2dd5a99cfd83e62bce126 (diff)
downloadserverdata-dbde28d58750225c967796e0c39ab4d4b709a4a2.tar.gz
serverdata-dbde28d58750225c967796e0c39ab4d4b709a4a2.tar.bz2
serverdata-dbde28d58750225c967796e0c39ab4d4b709a4a2.tar.xz
serverdata-dbde28d58750225c967796e0c39ab4d4b709a4a2.zip
AFKing System
Implemented at the Rusty Pick Inn (Hurnscald) only. Red Plush Inn will be next. Right now, beer/red plush wine/etc. do not affect EXP gain, only players nearby do. MAX_IDLE is using the same variable form as Moubootaur Legends. It can be set to a constant if needed. Wandering storytellers not yet implemented, I believe @toams will use Kfahr and Janus to do that laterâ„¢ ---- close evol-all#108
Diffstat (limited to 'db')
-rw-r--r--db/constants.conf5
-rw-r--r--db/re/item_db.conf14
-rw-r--r--db/sc_config.conf7
3 files changed, 16 insertions, 10 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 56657b1a..551da2c3 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4763,6 +4763,11 @@ more than one separator can be used in a row (so 12_3___456 is illegal).
SI_SUHIDE: 933
SI_SPRITEMABLE: 937
SI_MADOGEAR: 1149
+ // Hercules SI end at 1150 and our start right after
+ // (Which is annoying because they may be saved to SQL)
+ // So expect we jumping from 1151 to 1500 in future
+ SI_CONFUSION: 1151
+
/* ==================================================== */
/** evol constants **/
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index a2045f69..f3519779 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -711,11 +711,8 @@ item_db: (
Delay: 500
UseEffect: "EFFECT_HEAL"
Script: <"
- @min = 40;
- @max = 90;
- @delay = 5;
- @type = 1;
- doevent "rand_sc_heal::OnUse";
+ // 30 minutes
+ sc_start(SC_CONFUSION, 1800000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK);
">
},
{
@@ -898,11 +895,8 @@ item_db: (
Delay: 750
UseEffect: "EFFECT_HEAL"
Script: <"
- @min = 60;
- @max = 110;
- @delay = 8;
- @type = 1;
- doevent "rand_sc_heal::OnUse";
+ // 15 minutes
+ sc_start(SC_CONFUSION, 900000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK);
">
},
{
diff --git a/db/sc_config.conf b/db/sc_config.conf
index 46f89308..b6cf8530 100644
--- a/db/sc_config.conf
+++ b/db/sc_config.conf
@@ -47,6 +47,13 @@ SC_TYPE: {
Icon: (string, defaults to SI_BLANK) The status icon attached to the SC
}
**************************************************************************/
+SC_CONFUSION: {
+ Flags: {
+ NoSave: true
+ NoBoss: true
+ }
+ Icon: "SI_CONFUSION"
+}
SC_PROVOKE: {
Flags: {
Debuff: true