From e088bd4ed38da102aead2e66a2866c1a8f3548c4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 12 Apr 2021 12:45:10 -0300 Subject: Remove now useless/deprecated ammo checking function --- npc/commands/debug.txt | 2 ++ npc/items/launcher_ammo.txt | 19 ------------------- npc/scripts.conf | 1 - 3 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 npc/items/launcher_ammo.txt (limited to 'npc') diff --git a/npc/commands/debug.txt b/npc/commands/debug.txt index c02472ea..975470ee 100644 --- a/npc/commands/debug.txt +++ b/npc/commands/debug.txt @@ -7,6 +7,8 @@ L_Begin: @debug_shift = 0; @mexp = ((MAGIC_EXPERIENCE & @debug_mask) >> @debug_shift); mes "What do you want to do?"; + mes "Your range: "+readbattleparam(getcharid(3), UDT_ATKRANGE); + mes "Bow range: "+getiteminfo(Bow, ITEMINFO_RANGE); menu "Reset stat points.", L_Level, "Change my level.", L_Level, diff --git a/npc/items/launcher_ammo.txt b/npc/items/launcher_ammo.txt deleted file mode 100644 index 4c84e950..00000000 --- a/npc/items/launcher_ammo.txt +++ /dev/null @@ -1,19 +0,0 @@ - -function script CheckLauncher { - if (getequipid(equip_arrow) == -1) - @LauncherType = 0; - return; -} - -function script CheckAmmo { - if ((@LauncherType == @AmmoType) || (!@LauncherType)) - goto L_Return; - - callfunc "UnequipLater"; - goto L_Return; - -L_Return: - @LauncherType = 0; - @AmmoType = 0; - return; -} diff --git a/npc/scripts.conf b/npc/scripts.conf index 5d6d995d..55a337b4 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -59,7 +59,6 @@ "npc/items/restricted_item.txt", "npc/items/warpTowels.txt", "npc/items/unequipcb.txt", -"npc/items/launcher_ammo.txt", "npc/items/check_wand.txt", "npc/items/mirror.txt", "npc/items/rubber_bat.txt", -- cgit v1.2.3-60-g2f50