summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-10 09:38:18 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-10 09:38:18 -0300
commit4d60fc6f0a2dbbc1b0c2e44b0f47c63359da7609 (patch)
treea7a50173ec7293d9bb2ab89c97ef601ad2db4cd9 /npc/items
parent7361d9a8860828b6040db76b5c9ebdc5d8fa29c6 (diff)
downloadserverdata-4d60fc6f0a2dbbc1b0c2e44b0f47c63359da7609.tar.gz
serverdata-4d60fc6f0a2dbbc1b0c2e44b0f47c63359da7609.tar.bz2
serverdata-4d60fc6f0a2dbbc1b0c2e44b0f47c63359da7609.tar.xz
serverdata-4d60fc6f0a2dbbc1b0c2e44b0f47c63359da7609.zip
Users close to you raises taste in 1% each, capped at beverage maximum taste.
Remember: Taste === Exp Bonus!
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/alcohol.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index 6ecad5571..cd52e5c51 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -45,6 +45,12 @@ OnUse:
sc_start SC_CONFUSION, 5000, 0, 10000, SCFLAG_NOAVOID; // Warning, forces user to use @resync!
end;
}
+ // Taste is affected by users near you.
+ // Each user raises exp bonus in 1%, capped to the beverage taste
+ // If you are with many people, drink a better beverage! ;-)
+ getmapxy(.@m$, .@x, .@y, 0);
+ .@bonus=getareausers(.@m$, .@x-10, .@y-10, .@x+10, .@y+10);
+ @taste+=min(@taste, .@bonus);
// Put the delay in ms. Each ALCOOL point is 10 minutes.
.@delay = remaining_bonus(SC_OVERLAPEXPUP, false);