From 093645d7b7477189080fdc537eeeb91d57167c59 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 20 May 2019 12:53:23 -0300 Subject: Fix bugs --- db/re/item_db.conf | 12 +++++++----- npc/items/rand_sc_heal.txt | 11 ----------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 26c4b5855..3ae57b552 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -192,7 +192,7 @@ item_db: ( monster(.@map$, .@x, .@y, l("Not An Oak"), SpringSquirrel, 1); } } else { - @type = 1; + @type = 0; @rarity=1; doevent "rand_sc_heal::OnUse"; } @@ -453,6 +453,7 @@ item_db: ( doevent "legacy_heal::OnUse"; "> }, +// ID 516 missing { Id: 517 AegisName: "DeliciousCookie" @@ -651,7 +652,7 @@ item_db: ( @min = 30; @max = 50; @delay = 4; - doevent "rand_sc_heal::OnUse"; + doevent "legacy_heal::OnUse"; "> }, { @@ -685,7 +686,8 @@ item_db: ( Delay: 1000 UseEffect: "EFFECT_HEAL" Script: <" - sc_start SC_ATTHASTE_POTION1, 30000, 5; + sc_start SC_INCATKRATE, 30000, 10; + //sc_start SC_ATTHASTE_POTION1, 30000, 5; sc_end SC_POISON; @type = 1; @rarity=9; @@ -844,7 +846,7 @@ item_db: ( UseEffect: "EFFECT_HEAL" Script: <" @type = 1; - @rarity=3; + @rarity=4; doevent "rand_sc_heal::OnUse"; "> }, @@ -862,7 +864,7 @@ item_db: ( UseEffect: "EFFECT_HEAL" Script: <" @type = 1; - @rarity=4; + @rarity=3; doevent "rand_sc_heal::OnUse"; "> }, diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index fdfcb5cd2..533a92d1b 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -66,17 +66,6 @@ */ OnUse: -// @type -// 0 - Sweeties (lowest) -// 1 - Vegetables -// 2 - Proteins -// 3 - Proccessed -// 4 - Magical (highest) -// @delay -// Overrides the lasting time -// @rarity -// How rare the item is (how much should it effect) -// Ranges from 1 to 10. if (@rarity <= 0) { Exception("Invalid healing item, deleting without healing effect."); end; -- cgit v1.2.3-60-g2f50