summaryrefslogtreecommitdiff
path: root/npc/001-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-06-20 12:24:58 -0300
committerJesusaves <cpntb1@ymail.com>2022-06-20 12:24:58 -0300
commit79eb59f7569fb5aece07046e4d27835de47aaeb9 (patch)
tree4f2f6b9c6fcefe148283fc539b30d0153f492839 /npc/001-3
parent4e34948ab751c193c40e1865779308af6b2263eb (diff)
downloadserverdata-79eb59f7569fb5aece07046e4d27835de47aaeb9.tar.gz
serverdata-79eb59f7569fb5aece07046e4d27835de47aaeb9.tar.bz2
serverdata-79eb59f7569fb5aece07046e4d27835de47aaeb9.tar.xz
serverdata-79eb59f7569fb5aece07046e4d27835de47aaeb9.zip
Copper Key can now be used in Saulc's Palace.
Gives from 1.5% to 3% bonus compared to normal treasure chest
Diffstat (limited to 'npc/001-3')
-rw-r--r--npc/001-3/ctrl.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/001-3/ctrl.txt b/npc/001-3/ctrl.txt
index cbe473276..99c6d1ff8 100644
--- a/npc/001-3/ctrl.txt
+++ b/npc/001-3/ctrl.txt
@@ -11,3 +11,13 @@ OnTouch:
end;
}
+001-3,103,69,0 script Copper Chest#Saulc NPC_CHEST,{
+ // Like common chest but up to +3% bonus
+ TreasureBox(rand2(150, 300), CopperKey);
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
+ close;
+OnInit:
+ .distance=2;
+ end;
+}
+