From df4d1866f7f214ac9f583dc73a7e5c6a923fed44 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 16:46:09 -0300 Subject: Penalty: Forest Mana Fragment was lost --- npc/003-3/malindou.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc') 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: -- cgit v1.2.3-70-g09d2