summaryrefslogtreecommitdiff
path: root/npc/003-1/ishi.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-30 11:21:15 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-30 11:21:15 -0300
commitf37abffe2306707ddf83226bc1fd1d7539265246 (patch)
tree6313ac632746c2681ec3e30fd17fef955defe5df /npc/003-1/ishi.txt
parentf872bac40113875d01e5bae28f41e05d6e60e3bf (diff)
downloadserverdata-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.txt29
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...