From 62052250f34b8425dc2975b5a83d0355168ed342 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 22 Jun 2019 16:13:26 -0300 Subject: Use rif2() in our books --- npc/items/books.txt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'npc/items/books.txt') diff --git a/npc/items/books.txt b/npc/items/books.txt index 825f99e64..eae6c4e99 100644 --- a/npc/items/books.txt +++ b/npc/items/books.txt @@ -21,12 +21,12 @@ function script FishingBook { mes ""; select - rif(@menu == 1, "► ") + l("Ch 1 — Fishing apparatus"), - rif(@menu == 2, "► ") + l("Ch 2 — Baits"), - rif(@menu == 3, "► ") + l("Ch 3 — Location"), - rif(@menu == 4, "► ") + l("Ch 4 — Casting"), - rif(@menu == 5, "► ") + l("Ch 5 — Reeling"), - l("close"); + rif2(1, true, l("Ch 1 — Fishing apparatus")), + rif2(2, true, l("Ch 2 — Baits")), + rif2(3, true, l("Ch 3 — Location")), + rif2(4, true, l("Ch 4 — Casting")), + rif2(5, true, l("Ch 5 — Reeling")), + l("Close"); switch(@menu) { @@ -177,13 +177,13 @@ OnInit: mes ""; select - rif( MAGIC_LVL >= 2 ,rif(@menu == 1, "► ") + l("Ch 1 — Prologue")), - rif( MAGIC_EXP ,rif(@menu == 2, "► ") + l("Ch 2 — Mana Magic vs Common Magic")), - rif( MAGIC_LVL >= 2 ,rif(@menu == 3, "► ") + l("Ch 3 — Subclass")), - rif( true ,rif(@menu == 4, "► ") + l("Open Fishing Book")), - rif( true ,rif(@menu == 5, "► ") + l("Open Petcaring Book")), - rif( getq(NivalisQuest_BlueSageSlimes) >= 2 ,rif(@menu == 6, "► ") + l("Open Recipe Book")), - rif( true ,rif(@menu == 7, "► ") + l("Read Rules")), + rif2(1, MAGIC_LVL >= 2, l("Ch 1 — Prologue")), + rif2(2, MAGIC_EXP, l("Ch 2 — Mana Magic vs Common Magic")), + rif2(3, MAGIC_LVL >= 2, l("Ch 3 — Subclass")), + rif2(4, true, l("Open Fishing Book")), + rif2(5, true, l("Open Petcaring Book")), + rif2(6, getq(NivalisQuest_BlueSageSlimes) >= 2, l("Open Recipe Book")), + rif2(7, true, l("Read Rules")), l("Close"); switch(@menu) -- cgit v1.2.3-60-g2f50