From 1d4154f767f8b64616749b3d77642dad81c54747 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 14 Mar 2019 20:03:12 -0300 Subject: I want parties and blood on CoD %%e --- npc/001-10-1/scripts.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'npc/001-10-1') 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: -- cgit v1.2.3-60-g2f50