diff options
Diffstat (limited to 'npc/001-10-1/scripts.txt')
-rw-r--r-- | npc/001-10-1/scripts.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/npc/001-10-1/scripts.txt b/npc/001-10-1/scripts.txt index cfda99a6f..b42a9dcfd 100644 --- a/npc/001-10-1/scripts.txt +++ b/npc/001-10-1/scripts.txt @@ -16,10 +16,15 @@ OnEventStart: // Dust boss was killed, add timers, special reward for victor OnVictory: - if (getcharid(1) > 0) + if (getcharid(1) > 0) { .pwin=getcharid(1); - else + getpartymember(getcharid(1)); + .@count = $@partymembercount; + .bonus=max(0, getmapusers("001-10-1")-.@count); + } else { .win$=strcharinfo(0); + .bonus=0; + } getitem BottledDust, 1; @@ -32,7 +37,7 @@ OnVictory: // on boss room, 1 dust for winner party outside boss room OnReward1: if ((.pwin > 0 && getcharid(1) == .pwin) || strcharinfo(0) == .win$) - getitem BottledDust, 10; + getitem BottledDust, 9+.bonus; else getitem BottledDust, 1; OnReward2: |