summaryrefslogtreecommitdiff
path: root/npc/soren-2/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/soren-2/main.txt')
-rw-r--r--npc/soren-2/main.txt18
1 files changed, 14 insertions, 4 deletions
diff --git a/npc/soren-2/main.txt b/npc/soren-2/main.txt
index 5fbd492e0..932d8e881 100644
--- a/npc/soren-2/main.txt
+++ b/npc/soren-2/main.txt
@@ -50,6 +50,13 @@ OnCheck:
// This doesn't works (or didn't used to), maybe because the way it's called
if (!mobcount("soren-2", "#SorenSanctum::OnCheck"))
setnpcdisplay "#SorenSanctum", NPC_SUMMONING_CIRC;
+ else
+ setnpcdisplay "#SorenSanctum", NPC_NO_SPRITE;
+ // Repeat if possible
+ if (!playerattached())
+ end;
+ if (getmap() == "soren-2")
+ addtimer2(10000, "#SorenSanctum::OnCheck");
end;
OnSanctum:
@@ -80,13 +87,13 @@ OnSanctum:
.@bonus=1;
}
- // Generate which monster/item would be dropped, depending on your (un)luck at ODDS
+ // Generate which monster/item would be dropped, depending on your (un)luck at ODDS (FIXME - Mobs not on par with everything else or players level)
.@mid=rand(1,10)+.@bonus;
switch (.@mid) {
case 1:
.@monsterId = AngryRedScorpion ; break;
case 2:
- .@monsterId = CaveMaggot ; break;
+ .@monsterId = CaveMaggot ; break; // Replace!
case 3:
.@monsterId = SeaSlime ; break;
case 4:
@@ -116,7 +123,7 @@ OnSanctum:
case 3:
.@itemId = Aquada ; break;
case 4:
- .@itemId = StrenghtPotion ; break;
+ .@itemId = StrengthPotion ; break;
case 5:
.@itemId = Plushroom ; break;
case 6:
@@ -178,7 +185,10 @@ OnSanctum:
addtimer(rand(15000, 35000)+getusers(1)*5000, "#SorenSanctum::OnSanctum");
else
addtimer(rand(25000, 35000)+getusers(1)*5000, "#SorenSanctum::OnSanctum");
- end;
+
+ // Enforce the policy
+ addtimer2(10000, "#SorenSanctum::OnCheck");
+ goto OnCheck;