summaryrefslogtreecommitdiff
path: root/npc/005-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-17 18:30:40 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-17 18:30:40 -0300
commitfe9ddbaa6acea3854f6da32b4aa47276a5fb1620 (patch)
tree46b1082f7c9d9d273b780a34dd91bba0f7946db6 /npc/005-4
parentb3481922d75c42d003b4809832131390887c0936 (diff)
downloadserverdata-fe9ddbaa6acea3854f6da32b4aa47276a5fb1620.tar.gz
serverdata-fe9ddbaa6acea3854f6da32b4aa47276a5fb1620.tar.bz2
serverdata-fe9ddbaa6acea3854f6da32b4aa47276a5fb1620.tar.xz
serverdata-fe9ddbaa6acea3854f6da32b4aa47276a5fb1620.zip
Fix possible bug at Tolchi
Diffstat (limited to 'npc/005-4')
-rw-r--r--npc/005-4/tolchi.txt5
1 files changed, 5 insertions, 0 deletions
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));