summaryrefslogtreecommitdiff
path: root/npc/012-1/guards.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/012-1/guards.txt')
-rw-r--r--npc/012-1/guards.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt
index 6ccf63a00..1031d4ad2 100644
--- a/npc/012-1/guards.txt
+++ b/npc/012-1/guards.txt
@@ -308,6 +308,13 @@ OnDoEvent:
end;
OnSkip:
+ // Here, coins drop rate are based on REMAINING PLAYERS and DEFEATED MONSTER LEVEL.
+ // A level 100 monster can have a 5% drop bonus against a level 0 monster.
+ // You have 1% of base chance, but 0.5% each player + 0.05% each monster level.
+ // .coins_rate acts stablishing a basic drop value. Advised value: 600 (up to 10% for normal mobs)
+ if (rand(10000) <= 100 + (getmapusers("012-1")*50) + (atoi(strmobinfo(3,killedrid))*5))
+ getmapxy(.@m$, .@x, .@y, 0);
+ makeitem(StrangeCoin, 1, .@m$, .@x, .@y);
end;
OnTimer300000:
@@ -384,6 +391,11 @@ OnXtreem:
Karma=Karma+1;
else
getitem StrangeCoin, 2;
+ // Here, the drop is a Bronze Gift, based on living players and players nearby.
+ // You have 0.1% of base chance, plus 0.2% each fighting player + 1% each near player.
+ getmapxy(.@m$, .@x, .@y, 0);
+ if (rand(10000) <= 10 + (getmapusers("012-1")*20) + (getareausers("012-1", .@x-8, .@x+8, .@y-8, .@y+8)*100))
+ makeitem(BronzeGift, 1, .@m$, .@x, .@y);
end;
OnVictory:
@@ -417,6 +429,11 @@ OnVictory:
killmonster("012-1", "All");
changemusic "012-1", "tws_birds_in_the_sunrise.ogg"; // Play a more peaceful tune.
maptimer("012-1", 10, "Hurnsguard::OnReward");
+ // Here, coins drop rate are based on REMAINING PLAYERS and DEFEATED MONSTER LEVEL.
+ // You have 5% of base chance, plus 2% for each living player.
+ if (rand(10000) <= 500 + (getmapusers("012-1")*200))
+ getmapxy(.@m$, .@x, .@y, 0);
+ makeitem(StrangeCoin, 1, .@m$, .@x, .@y);
end;
OnReward: