diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-30 16:18:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-30 16:18:23 -0300 |
commit | c35b2ff82b940d1c5515f68e92ea54a9e48ba009 (patch) | |
tree | 0049c43a8e163cc9b7a52442d1902f8c1d345bec | |
parent | db11ed42d6f98b612c20ca1745b560ab31018025 (diff) | |
download | serverdata-c35b2ff82b940d1c5515f68e92ea54a9e48ba009.tar.gz serverdata-c35b2ff82b940d1c5515f68e92ea54a9e48ba009.tar.bz2 serverdata-c35b2ff82b940d1c5515f68e92ea54a9e48ba009.tar.xz serverdata-c35b2ff82b940d1c5515f68e92ea54a9e48ba009.zip |
Hmm, fix bugs in Intense Beard and @ucp, but I'm concerned with...
...Players getting sucked in collect-forge-collect-forge or start using the
tweak system like a gamble machine, and spin it until run out of money >.>
-rw-r--r-- | npc/craft/options.txt | 24 |
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 ""; } |