summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 00:18:25 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 00:18:25 -0300
commit6c2d694e6528efaa421e17202bf80650bcbd3f4c (patch)
tree3bf09dd9eefe2f6394204c1224e98f25c72c7818
parent1eea738108f1b4db302d69908413f7b13916fb61 (diff)
downloadserverdata-6c2d694e6528efaa421e17202bf80650bcbd3f4c.tar.gz
serverdata-6c2d694e6528efaa421e17202bf80650bcbd3f4c.tar.bz2
serverdata-6c2d694e6528efaa421e17202bf80650bcbd3f4c.tar.xz
serverdata-6c2d694e6528efaa421e17202bf80650bcbd3f4c.zip
Give experience on player craft, and be generous
-rw-r--r--npc/craft/smith.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/craft/smith.txt b/npc/craft/smith.txt
index 5f3576161..4a673fe89 100644
--- a/npc/craft/smith.txt
+++ b/npc/craft/smith.txt
@@ -55,6 +55,11 @@ function script SmithSystem {
csys_Apply(.@index);
}
}
+
+ // Get experience for the craft
+ .@xp=getiteminfo(.@it, ITEMINFO_SELLPRICE);
+ getexp .@xp+BaseLevel, (.@xp/3)+BaseLevel+JobLevel;
+
.success=true;
} else {
.success=false;