diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-10 03:00:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-10 03:00:20 -0300 |
commit | ba1e827b6b4c17c35a163e6b55be8c122de632b8 (patch) | |
tree | 819f93d0ffee3697e336471710afb9681f0b8d86 /db | |
parent | 6e7f3113c0faad9edd4367d100ba9dd77e8d3130 (diff) | |
download | serverdata-ba1e827b6b4c17c35a163e6b55be8c122de632b8.tar.gz serverdata-ba1e827b6b4c17c35a163e6b55be8c122de632b8.tar.bz2 serverdata-ba1e827b6b4c17c35a163e6b55be8c122de632b8.tar.xz serverdata-ba1e827b6b4c17c35a163e6b55be8c122de632b8.zip |
Add several convenience functions. Fix some bugs regarding misuse of readparam()
Diffstat (limited to 'db')
-rw-r--r-- | db/constants.conf | 9 | ||||
-rw-r--r-- | db/pre-re/item_db.conf | 16 |
2 files changed, 14 insertions, 11 deletions
diff --git a/db/constants.conf b/db/constants.conf index f73ee858..a339559a 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -5216,10 +5216,11 @@ more than one separator can be used in a row (so 12_3___456 is illegal). comment__: "Language constants" LANG_EN: 0 - LANG_FR: 1 - LANG_ES: 2 + LANG_PTBR: 1 + LANG_FR: 2 LANG_DE: 3 - MAX_LANG: 3 + LANG_ES: 4 + MAX_LANG: 4 comment__: "Daily Constants" DAILY_LOWLEVEL: 0 @@ -5634,6 +5635,7 @@ more than one separator can be used in a row (so 12_3___456 is illegal). AMMO_BOW:1 AMMO_SLING:2 AMMO_WAND:3 + // tmw npcs NPC45:45 NPC100:100 @@ -5814,6 +5816,7 @@ more than one separator can be used in a row (so 12_3___456 is illegal). NPC384:384 NPC385:385 NPC386:386 + NPC393:393 NPC394:394 NPC395:395 NPC400:400 diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf index 9c31d7a7..d4b46dd2 100644 --- a/db/pre-re/item_db.conf +++ b/db/pre-re/item_db.conf @@ -874,7 +874,7 @@ item_db: ( BindOnEquip: false Subtype: "W_2HSTAFF" OnEquipScript: <" - set @bStat, Int; + set @bStat, readparam(bInt); set @minbStatVal, 60; callfunc "RequireStat"; "> @@ -900,7 +900,7 @@ item_db: ( BindOnEquip: false Subtype: "W_STAFF" OnEquipScript: <" - set @bStat, Int; + set @bStat, readparam(bInt); set @minbStatVal, 5; callfunc "RequireStat"; "> @@ -973,7 +973,7 @@ item_db: ( BindOnEquip: false Subtype: "W_BOW" OnEquipScript: <" - set @bStat, Dex; + set @bStat, readparam(bDex); set @minbStatVal, 80; callfunc "RequireStat"; bonus2 bHPDrainRate, 100, -2; @@ -6251,10 +6251,10 @@ item_db: ( BindOnEquip: false Delay: 0 OnEquipScript: <" - set @bStat, Int; + set @bStat, readparam(bInt); set @minbStatVal, 70; callfunc "RequireStat"; - set @bStat, Vit; + set @bStat, readparam(bVit); set @minbStatVal, 40; callfunc "RequireStat"; bonus bSpeedAddRate, -15; @@ -10923,13 +10923,13 @@ item_db: ( BindOnEquip: false Delay: 0 OnEquipScript: <" - set @bStat, Str; + set @bStat, readparam(bStr); set @minbStatVal, 70; callfunc "RequireStat"; - set @bStat, Vit; + set @bStat, readparam(bVit); set @minbStatVal, 50; callfunc "RequireStat"; - set @bStat, Luk; + set @bStat, readparam(bLuk); set @minbStatVal, 50; callfunc "RequireStat"; bonus bAtkRange, -10; |