// TMW2 Script
// Author:
// Jesusalva
// Description:
// Trickmaster of Tricksters Class
003-0,40,30,0 script Trickmaster NPC_BLACKALCHEMIST,{
if (!MAGIC_LVL) goto L_NoMagic;
mesn;
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
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:
next;
mesn;
mesq l("Your lack of magical power is critical. I dare say, you might never in your life get access to a Mana Stone.");
next;
mesn;
mesq l("Besides the Magic Council, Andrei Sakar have his own Mana Stone, but I doubt he would train the likes of you, or share his Mana Stone.");
next;
mesn;
mesq l("Perhaps, in the city, someone knows rumors about Mana Stones and can teach you. Other than that, you're on your own.");
close;
OnInit:
.sex = G_FEMALE;
.distance = 5;
end;
}