From fe9ddbaa6acea3854f6da32b4aa47276a5fb1620 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 17 Mar 2021 18:30:40 -0300 Subject: Fix possible bug at Tolchi --- npc/005-4/tolchi.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'npc/005-4') diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt index 8f07a612b..05096b9e2 100644 --- a/npc/005-4/tolchi.txt +++ b/npc/005-4/tolchi.txt @@ -293,6 +293,11 @@ function tolchi_tweaks { .@price=.@lv**3; // Cubic function to determine price. // Lv 1: 3 GP | Lv 10: 1kGP | Lv 20: 8kGP | Lv 40: 64kGP | Lv 60: 216kGP // Lv 80: 512k GP | Lv 100: 1 Million GP! + if (isequipped(.@handle)) { + mesn; + mesq l("Please unequip your %s first.", getitemlink(.@handle)); + close; + } mesn; mesc l("Tweaking: %s", getitemlink(.@handle));//getinvindexlink(.@id)); mesq l("That will be %s GP. Are you sure?", col(format_number(.@price), 1)); -- cgit v1.2.3-70-g09d2