summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-14 22:15:53 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-14 22:15:53 -0300
commit99524874861fda01d0c6bb893f82d598b6d55951 (patch)
treeff82a7de256e8b41826901301d8d1838246c8157 /npc
parent8ff2aabe40e43769845cbe121f5f6b0054d73c59 (diff)
downloadserverdata-99524874861fda01d0c6bb893f82d598b6d55951.tar.gz
serverdata-99524874861fda01d0c6bb893f82d598b6d55951.tar.bz2
serverdata-99524874861fda01d0c6bb893f82d598b6d55951.tar.xz
serverdata-99524874861fda01d0c6bb893f82d598b6d55951.zip
Ancient Blueprint
Diffstat (limited to 'npc')
-rw-r--r--npc/craft/recipes.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/npc/craft/recipes.txt b/npc/craft/recipes.txt
index ded8fd226..4c54667d8 100644
--- a/npc/craft/recipes.txt
+++ b/npc/craft/recipes.txt
@@ -383,3 +383,34 @@ function script MakeBlueprint {
return;
}
+// Create a blueprint based on level. Extra chance for weaker Blueprint.
+// Level equivalents: 1: (1~20) 2: (21~44), 3: (45~75), 4: (76~99), 5: 100+
+function script MakeRandomBlueprint {
+ array_push(.@blueprints, AlchemyBlueprintA);
+ array_push(.@blueprints, EquipmentBlueprintA);
+ if (BaseLevel > 20) {
+ array_push(.@blueprints, AlchemyBlueprintB);
+ array_push(.@blueprints, EquipmentBlueprintB);
+ }
+ if (BaseLevel > 44) {
+ array_push(.@blueprints, AlchemyBlueprintB);
+ array_push(.@blueprints, EquipmentBlueprintB);
+ array_push(.@blueprints, AlchemyBlueprintC);
+ array_push(.@blueprints, EquipmentBlueprintC);
+ }
+ if (BaseLevel > 75) {
+ array_push(.@blueprints, AlchemyBlueprintC);
+ array_push(.@blueprints, EquipmentBlueprintC);
+ array_push(.@blueprints, AlchemyBlueprintD);
+ array_push(.@blueprints, EquipmentBlueprintD);
+ }
+ if (BaseLevel > 100) {
+ array_push(.@blueprints, AlchemyBlueprintD);
+ array_push(.@blueprints, EquipmentBlueprintD);
+ array_push(.@blueprints, AlchemyBlueprintE);
+ array_push(.@blueprints, EquipmentBlueprintE);
+ }
+ getitem any_of(.@blueprints), 1;
+ return;
+}
+