summaryrefslogtreecommitdiff
path: root/npc/001-10-1/scripts.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-14 20:03:12 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-14 20:03:12 -0300
commit1d4154f767f8b64616749b3d77642dad81c54747 (patch)
treed3ebe690fe6da4bdef1f94e54eb01bbc19530256 /npc/001-10-1/scripts.txt
parentde664b9ba00da0d767ee29166f2d2a7fe6703777 (diff)
downloadserverdata-1d4154f767f8b64616749b3d77642dad81c54747.tar.gz
serverdata-1d4154f767f8b64616749b3d77642dad81c54747.tar.bz2
serverdata-1d4154f767f8b64616749b3d77642dad81c54747.tar.xz
serverdata-1d4154f767f8b64616749b3d77642dad81c54747.zip
I want parties and blood on CoD %%e
Diffstat (limited to 'npc/001-10-1/scripts.txt')
-rw-r--r--npc/001-10-1/scripts.txt11
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: