diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-21 19:44:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-21 19:44:29 -0300 |
commit | d31abcab3ffa7739d731a7de6d968c429bb8664c (patch) | |
tree | 61f5377bc34dec7aac329a08f0a1b391d32748ff | |
parent | 466d77a2acf8f0de236fbca8c78ff8e6f1f55292 (diff) | |
download | serverdata-d31abcab3ffa7739d731a7de6d968c429bb8664c.tar.gz serverdata-d31abcab3ffa7739d731a7de6d968c429bb8664c.tar.bz2 serverdata-d31abcab3ffa7739d731a7de6d968c429bb8664c.tar.xz serverdata-d31abcab3ffa7739d731a7de6d968c429bb8664c.zip |
Additional Bug Leg drop from Candor Scorpion to newcomers :b
-rw-r--r-- | npc/005-7/trainer.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/005-7/trainer.txt b/npc/005-7/trainer.txt index 85e31d717..a500e21cb 100644 --- a/npc/005-7/trainer.txt +++ b/npc/005-7/trainer.txt @@ -574,6 +574,7 @@ OnKillHouseMaggot: fix_mobkill(HouseMaggot); end; OnKillCandorScorpion: + if (!playerattached()) end; .@q=getq(CandorQuest_Trainer); .@k=getq2(CandorQuest_Trainer); // Get number of kills (via getq2) if (.@q == 7) { @@ -585,6 +586,13 @@ OnKillCandorScorpion: message strcharinfo(0), l("@@/3 Candor Scorpions", .@k+1); } } + // Additional Bug Leg drop rate for newcomers: 5% additional + if (BaseLevel <= 22) { + if (rand2(10000) < 500-(BaseLevel**2)) { + getmapxy(.@m$, .@x, .@y, 0); + makeitem BugLeg, 1, .@m$, .@x, .@y; + } + } fix_mobkill(CandorScorpion); end; OnKillScorpion: |