summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-27 14:32:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-27 14:32:39 -0300
commit01bfc4512d7102e2a4eb0e36c7d891e32f12462b (patch)
treeeef21801bc86d098371414e34f83e0085bdcd08f /npc
parentb19f4d3527de7b0335730149ea3b0b21a0ab6eef (diff)
downloadserverdata-01bfc4512d7102e2a4eb0e36c7d891e32f12462b.tar.gz
serverdata-01bfc4512d7102e2a4eb0e36c7d891e32f12462b.tar.bz2
serverdata-01bfc4512d7102e2a4eb0e36c7d891e32f12462b.tar.xz
serverdata-01bfc4512d7102e2a4eb0e36c7d891e32f12462b.zip
Crafting Score new rule
Diffstat (limited to 'npc')
-rw-r--r--npc/craft/smith.txt9
-rw-r--r--npc/functions/clientversion.txt2
2 files changed, 8 insertions, 3 deletions
diff --git a/npc/craft/smith.txt b/npc/craft/smith.txt
index fa866f7eb..9d0739926 100644
--- a/npc/craft/smith.txt
+++ b/npc/craft/smith.txt
@@ -45,9 +45,12 @@ function script SmithSystem {
// Player craft item
usecraft .@craft;
.@it=getcraftcode(.@entry);
- // Mark the crafting in your score book (except dagger)
- if (.@it != Dagger)
- CRAFTING_SCORE+=1;
+
+ // Mark the crafting in your score variable
+ CRAFTING_SCORE_COMPLETE+=getiteminfo(.@it, ITEMINFO_ELV);
+ // Update your score book
+ CRAFTING_SCORE=(CRAFTING_SCORE_COMPLETE/40);
+
if (.scope == CRAFT_GUILD)
getitembound(.@it, 1, 2); // Create a guild-bound item
else
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index b628404c0..94b32d54d 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -572,6 +572,8 @@ function script clientupdater {
skill(MC_OVERCHARGE,1,0);
dispbottom l("You have learnt \"Barter\" in Thief Skills.");
}
+ // Update Crafting Score
+ CRAFTING_SCORE_COMPLETE=CRAFTING_SCORE*39;
}