summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-1')
-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...