diff options
-rw-r--r-- | npc/005-4/tolchi.txt | 5 |
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)); |