summaryrefslogtreecommitdiff
path: root/npc/craft/options.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r--npc/craft/options.txt24
1 files changed, 18 insertions, 6 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index 6a4c9a970..cd779c747 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -389,8 +389,8 @@ function script csys_Apply {
.@slot=0;
while (.@slot < min(3, .@max_attr)) {
- // You have 100% for first bonus, -30% each, depending on skill lv
- .@base=3000-(.@lv*75);
+ // You have 100% for first bonus, -35% each, depending on skill lv
+ .@base=3500-(.@lv*75);
if (rand(10000) > 10000-(.@base*.@slot))
break;
@@ -537,9 +537,9 @@ function script csysGUI_OptToogleMenu {
.@sk=getarg(0);
if (getd("CRAFTSYS["+.@sk+"]")) {
if (CRAFTSYS_CURRENT & .@sk)
- return "Active "+csysGUI_CRName(.@sk);
- else
return "Remove "+csysGUI_CRName(.@sk);
+ else
+ return "Active "+csysGUI_CRName(.@sk);
}
return "";
}
@@ -634,7 +634,19 @@ function script csysGUI_OptReq {
// Return group option price and requisites
function script csysGUI_OptPrice {
.@sk=getarg(0);
- .@lv=getd("CRAFTSYS["+.@sk+"]");
+ .@lv=getd("CRAFTSYS["+.@sk+"]")+1;
+
+ // Every 3 skills levels (including the 0), price raises in 1
+ .@lv+=(.@lv/3);
+
+ // Every 10 skills levels (including the 0), price raises in 3
+ .@lv+=((.@lv/10)*3);
+
+ // Every 25 skills levels (including the 0), price raises in 5
+ .@lv+=((.@lv/25)*5);
+
+ // Every 99 skills levels (including the 0), price raises in 7
+ .@lv+=((.@lv/99)*7);
switch (.@sk) {
case CRGROUP_BASE:
@@ -673,7 +685,7 @@ function script csysGUI_OptPrice {
function script csysGUI_OptLearnMenu {
.@sk=getarg(0);
if (csysGUI_OptReq(.@sk)) {
- .@ms$="Upgrade "+csysGUI_CRName(.@sk)+" for "+csysGUI_OptPrice(.@sk)+" Mobpt";
+ return "Upgrade "+csysGUI_CRName(.@sk)+" for "+csysGUI_OptPrice(.@sk)+" Mobpt";
}
return "";
}