From f37abffe2306707ddf83226bc1fd1d7539265246 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 30 Jun 2018 11:21:15 -0300 Subject: No rares below level 25 --- npc/003-1/ishi.txt | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'npc/003-1/ishi.txt') diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt index 20ff50362..85eb192a6 100644 --- a/npc/003-1/ishi.txt +++ b/npc/003-1/ishi.txt @@ -8,8 +8,7 @@ 003-1,97,97,0 script Ishi NPC_PLAYER,{ - if (MPQUEST == 0) - { + if (MPQUEST == 0) { mesn l("Ishi, the Rewards Master"); mesq l("Hey, it seems like you didn't register as a Monster Hunting Quest participant yet! You can sign up with Aidan."); close; @@ -126,19 +125,21 @@ L_Items: if (@inventorylist_count == 100) goto L_NoPlace; - //debugmes "Testing rares"; - @lucky = rand(10000) + 1; - for (.@b = 0; .@b < getarraysize(@Rares$); .@b=.@b+2) { - //debugmes "Checking "+@Rares$[.@b]+" - b is now "+.@b; - //debugmes l("Check @@ <= @@", @lucky, @Rares$[.@b+1]); - if (.@b == 0) - @control = 0; - if(@lucky >= (@control + 1) && @lucky <= @control + atoi(@Rares$[.@b+1])) - { - .@lucked=1; - .@reward$ = @Rares$[.@b]; + if (BaseLevel > 25) { + //debugmes "Testing rares"; + @lucky = rand(10000) + 1; + for (.@b = 0; .@b < getarraysize(@Rares$); .@b=.@b+2) { + //debugmes "Checking "+@Rares$[.@b]+" - b is now "+.@b; + //debugmes l("Check @@ <= @@", @lucky, @Rares$[.@b+1]); + if (.@b == 0) + @control = 0; + if(@lucky >= (@control + 1) && @lucky <= @control + atoi(@Rares$[.@b+1])) + { + .@lucked=1; + .@reward$ = @Rares$[.@b]; + } + @control = @control + atoi(@Rares$[.@b+1]); } - @control = @control + atoi(@Rares$[.@b+1]); } //debugmes "Setting reward"; // could be if (!.@lucked) but for sanity... -- cgit v1.2.3-60-g2f50