summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-07-28 17:53:31 -0300
committerJesusaves <cpntb1@ymail.com>2023-07-28 17:53:31 -0300
commit3e0f1b061279cf28679a73886e349580aa6bfd40 (patch)
tree9052d7a1e0a99ff73c1b6ee16b9313828fb8298c
parent6dadde38a3b2aa0d2acdcdca0bcbc160cf3cb043 (diff)
downloadserverdata-3e0f1b061279cf28679a73886e349580aa6bfd40.tar.gz
serverdata-3e0f1b061279cf28679a73886e349580aa6bfd40.tar.bz2
serverdata-3e0f1b061279cf28679a73886e349580aa6bfd40.tar.xz
serverdata-3e0f1b061279cf28679a73886e349580aa6bfd40.zip
Get rid of garbage and support TMW rEvolt healing
-rw-r--r--npc/001-3/_import.txt1
-rw-r--r--npc/001-3/ctrl.txt23
-rw-r--r--npc/items/rand_sc_heal.txt6
3 files changed, 3 insertions, 27 deletions
diff --git a/npc/001-3/_import.txt b/npc/001-3/_import.txt
index 38587a4..b5df581 100644
--- a/npc/001-3/_import.txt
+++ b/npc/001-3/_import.txt
@@ -1,4 +1,3 @@
// Map 001-3: Dark Forest
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/001-3/_warps.txt",
-"npc/001-3/ctrl.txt",
diff --git a/npc/001-3/ctrl.txt b/npc/001-3/ctrl.txt
deleted file mode 100644
index 99c6d1f..0000000
--- a/npc/001-3/ctrl.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-// TMW2 Script.
-// Author:
-// Jesusalva
-// Description:
-// None
-
-001-3,127,64,0 script #PatreonTower NPC_HIDDEN,0,0,{
- end;
-OnTouch:
- if (is_sponsor()) warp "003-0-2", 35, 42;
- end;
-}
-
-001-3,103,69,0 script Copper Chest#Saulc NPC_CHEST,{
- // Like common chest but up to +3% bonus
- TreasureBox(rand2(150, 300), CopperKey);
- specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
- close;
-OnInit:
- .distance=2;
- end;
-}
-
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 41ea3b3..5a9a915 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -97,10 +97,10 @@ function script ItHeal2 {
end;
OnUse:
if (@rarity <= 0) {
- Exception("Invalid healing item, deleting without healing effect.");
- end;
+ ItHeal();
+ } else {
+ ItHeal2(@type, @rarity, @delay);
}
- ItHeal2(@type, @rarity, @delay);
// Clear stuff
// @val1 must be preserved for cross-reading