diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-12 20:25:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-12 20:25:04 -0300 |
commit | 62eb80e25e1fe804d5617088534c995c328dd375 (patch) | |
tree | 4c6285c5a1d2e636c840bd4df94b07fa59a9d2bc /npc/012-1 | |
parent | 285da20df5f38aab7a9d77ce60c80160e69e0c8b (diff) | |
download | serverdata-62eb80e25e1fe804d5617088534c995c328dd375.tar.gz serverdata-62eb80e25e1fe804d5617088534c995c328dd375.tar.bz2 serverdata-62eb80e25e1fe804d5617088534c995c328dd375.tar.xz serverdata-62eb80e25e1fe804d5617088534c995c328dd375.zip |
Strange Coin and Bronze Gift random drops during Liberation Day
Diffstat (limited to 'npc/012-1')
-rw-r--r-- | npc/012-1/guards.txt | 17 |
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: |