diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-30 11:21:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-30 11:21:15 -0300 |
commit | f37abffe2306707ddf83226bc1fd1d7539265246 (patch) | |
tree | 6313ac632746c2681ec3e30fd17fef955defe5df /npc/003-1/ishi.txt | |
parent | f872bac40113875d01e5bae28f41e05d6e60e3bf (diff) | |
download | serverdata-f37abffe2306707ddf83226bc1fd1d7539265246.tar.gz serverdata-f37abffe2306707ddf83226bc1fd1d7539265246.tar.bz2 serverdata-f37abffe2306707ddf83226bc1fd1d7539265246.tar.xz serverdata-f37abffe2306707ddf83226bc1fd1d7539265246.zip |
No rares below level 25
Diffstat (limited to 'npc/003-1/ishi.txt')
-rw-r--r-- | npc/003-1/ishi.txt | 29 |
1 files changed, 15 insertions, 14 deletions
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... |