summaryrefslogtreecommitdiff
path: root/npc/003-0
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-0')
-rw-r--r--npc/003-0/trickmaster.txt36
1 files changed, 33 insertions, 3 deletions
diff --git a/npc/003-0/trickmaster.txt b/npc/003-0/trickmaster.txt
index fc6b1c29c..473ce2a84 100644
--- a/npc/003-0/trickmaster.txt
+++ b/npc/003-0/trickmaster.txt
@@ -7,13 +7,43 @@
003-0,40,30,0 script Trickmaster NPC_BLACKALCHEMIST,{
if (!MAGIC_LVL) goto L_NoMagic;
mesn;
- mesq l("You are a noob.");
- mesc l("You have @@/@@ magic skill points available", sk_maxpoints()-MAGIC_PTS, sk_maxpoints());
+ mesc l("You have @@/@@ magic skill points available", sk_points(), sk_maxpoints());
+ mesc l("If the \"Learn\" button doesn't works, it means you cannot learn/upgrade the skill in question (or it is a bug).");
+ do {
next;
setskin "academy_trickster";
// TODO: Use a menuint with the skill ID
- select ("freecast:Cancel");
+ menuint
+ "freecast", SA_FREECAST,
+ "backslide", TF_BACKSLIDING,
+ "Cancel", 0;
+ mes "";
setskin "";
+
+ switch (@menuret) {
+ case TF_BACKSLIDING:
+ if (getskilllv(TF_BACKSLIDING) >= 1) {
+ mesc l("You've reached the maximum level for this skill."), 1;
+ break;
+ }
+ mesc l("To learn backsliding you'll need @@/@@ point(s).", 1, sk_points());
+ mesc l("You'll also need the Trickmaster fee, 1x @@", getitemlink(Lockpicks));
+ next;
+ if (askyesno() == ASK_YES) {
+ if (!sk_canlvup(Lockpicks, 1)) {
+ mesc l("Requisites not met");
+ break;
+ }
+ delitem Lockpicks, 1;
+ sk_lvup(TF_BACKSLIDING, 1);
+ mesc l("Success!");
+ }
+ break;
+ default:
+ mesc l("ERROR");
+ break;
+ }
+ } while (@menuret);
close;
L_NoMagic: