From 14a0487a49e0a0bcba13f370cba8ecfbd5577a97 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Jun 2020 06:40:01 -0300 Subject: Update Trickmaster to new magic learning interface --- npc/003-0/trickmaster.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'npc/003-0') diff --git a/npc/003-0/trickmaster.txt b/npc/003-0/trickmaster.txt index 7bf14f51e..8a4bf345d 100644 --- a/npc/003-0/trickmaster.txt +++ b/npc/003-0/trickmaster.txt @@ -31,36 +31,36 @@ // Handle result switch (@menuret) { case TMW2_MANABOMB: - if (!mlearn(TMW2_MANABOMB, 1, 1, SulfurPowder, 1)) + if (!learn_magic(TMW2_MANABOMB)) mesc l("You do not meet all requisites for this skill."), 1; break; case TF_BACKSLIDING: - if (!mlearn(TF_BACKSLIDING, 1, 1, Lockpicks, 1)) + if (!learn_magic(TF_BACKSLIDING)) mesc l("You do not meet all requisites for this skill."), 1; break; case MG_FIREWALL: - if (!mlearn(MG_FIREWALL, 10, 1, Lockpicks, 1)) + if (!learn_magic(MG_FIREWALL)) mesc l("You do not meet all requisites for this skill."), 1; break; case AC_VULTURE: - if (!mlearn(AC_VULTURE, 1, 1, Lockpicks, 1)) + if (!learn_magic(AC_VULTURE)) mesc l("You do not meet all requisites for this skill."), 1; break; case SA_FREECAST: - if (!mlearn(SA_FREECAST, 1, 1, Lockpicks, 1)) + if (!learn_magic(SA_FREECAST)) mesc l("You do not meet all requisites for this skill."), 1; break; case ALL_FULL_THROTTLE: - if (!mlearn(ALL_FULL_THROTTLE, 1, 1, Lockpicks, 1)) + if (!learn_magic(ALL_FULL_THROTTLE)) mesc l("You do not meet all requisites for this skill."), 1; break; case GC_DARKILLUSION: - if (!mlearn(GC_DARKILLUSION, 3, 2, Lockpicks, 1)) + if (!learn_magic(GC_DARKILLUSION)) mesc l("You do not meet all requisites for this skill."), 1; break; case NV_TRICKDEAD: - if (!mlearn(NV_TRICKDEAD, 1, 2, Lockpicks, 1)) + if (!learn_magic(NV_TRICKDEAD)) mesc l("You do not meet all requisites for this skill."), 1; break; default: -- cgit v1.2.3-70-g09d2