summaryrefslogtreecommitdiff
path: root/npc/magic
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-31 13:26:38 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-31 13:26:38 -0300
commitbdb40f4c49f32b0145d5127b2071fa3bc92c8e1b (patch)
tree9a4c3aafa61af07bf8e960a832a869271b2ecbbc /npc/magic
parent70c2ecc2c4b58e4427f5e3f40b6f8d6528a50302 (diff)
downloadserverdata-bdb40f4c49f32b0145d5127b2071fa3bc92c8e1b.tar.gz
serverdata-bdb40f4c49f32b0145d5127b2071fa3bc92c8e1b.tar.bz2
serverdata-bdb40f4c49f32b0145d5127b2071fa3bc92c8e1b.tar.xz
serverdata-bdb40f4c49f32b0145d5127b2071fa3bc92c8e1b.zip
Bugfixes to menuint2
Diffstat (limited to 'npc/magic')
-rw-r--r--npc/magic/forget.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/magic/forget.txt b/npc/magic/forget.txt
index f000c82bd..81e3cdf9f 100644
--- a/npc/magic/forget.txt
+++ b/npc/magic/forget.txt
@@ -15,11 +15,11 @@ function script ForgetfulNPC {
{
next;
mesc l("Which skill will you FORGET permanently today?"), 1;
- setarray .@forget$, l("Cancel"), "0";
+ setarray .@forget$, l("Cancel"), "-1";
freeloop(true);
for (.@i=0; .@i < getarraysize($@MSK_MAGIC) ; .@i++) {
.@sk=$@MSK_MAGIC[.@i];
- if (getskilllv(.@sk) > 1) {
+ if (getskilllv(.@sk)) {
if ($@MSK_CLASS[.@sk] == .@school) {
array_push(.@forget$, getskillname(.@sk));
array_push(.@forget$, str(.@sk));
@@ -28,7 +28,8 @@ function script ForgetfulNPC {
}
freeloop(false);
menuint2(.@forget$);
- if (!@menuret)
+ deletearray(.@forget$);
+ if (@menuret < 1)
close;
mes "";
mesc l("Skill @@ will be permanently lost!", getskillname(@menuret)), 1;