summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-07 16:46:09 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-07 16:46:09 -0300
commitdf4d1866f7f214ac9f583dc73a7e5c6a923fed44 (patch)
tree4f306fd32ddd87f900ddb6b805ea8e884a144774
parent5f538fbcfdd675bbf88253232569c25b7f5b3b78 (diff)
downloadserverdata-df4d1866f7f214ac9f583dc73a7e5c6a923fed44.tar.gz
serverdata-df4d1866f7f214ac9f583dc73a7e5c6a923fed44.tar.bz2
serverdata-df4d1866f7f214ac9f583dc73a7e5c6a923fed44.tar.xz
serverdata-df4d1866f7f214ac9f583dc73a7e5c6a923fed44.zip
Penalty: Forest Mana Fragment was lost
-rw-r--r--npc/003-3/malindou.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt
index f668c99e2..227d1ba5a 100644
--- a/npc/003-3/malindou.txt
+++ b/npc/003-3/malindou.txt
@@ -7,6 +7,11 @@
// Take care of server updates, but instances are defined on their ships.
003-3,36,34,0 script Malindou NPC_LLOYD,{
+ function UpdateBF {
+ .@o=getbattleflag(getarg(0));
+ setbattleflag(getarg(0), .@o+getarg(1,0));
+ }
+
Banker(.name$, "Tulimshar", 14000);
close;
@@ -76,6 +81,13 @@ OnInit:
htput($@CONTRIBUTORS, "dustman", 50);
htput($@CONTRIBUTORS, "dragonstar", 20);
//htput($@CONTRIBUTORS, "", 1);
+
+ // We must also apply penalty for losing Mana Fragments
+ // Forest Mana Fragment is lost: (+2% HP, +5% pop, 10s faster removal)
+ UpdateBF("monster_hp_rate",2);
+ UpdateBF("mob_count_rate",5);
+ UpdateBF("mob_remove_delay",-10000);
+ // Just copy these lines as fragments are lost
end;
OnPCLoginEvent: