viewing paste Unknown #1645 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /home/lighta/Documents/Myscript/RO/Servs/ra2/src/map
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: skill.c
--- skill.c Base (BASE)
+++ skill.c Locally Modified (Based On LOCAL)
@@ -15995,8 +15995,35 @@
             * Rune Knight
             **/
            case RK_RUNEMASTERY:
-               make_per = 5 * (sd->itemid + pc_checkskill(sd,skill_id)) * 100;
+               {
+               int A = 100 * (51 + 2 * pc_checkskill(sd, skill_id));
+               int B = 100 * status->dex / 30 + 10 * (status->luk + sd->status.job_level);
+               int C = cap_value(sd->itemid,0,10000); //itemid depend on used rune ()
+               int D = 0;
+               switch (nameid) { //rune rank it_diff 9 craftable rune
+                   case ITEMID_BERKANA:
+                   D = -2000;
+                   break; //Rank S
+                   case ITEMID_NAUTHIZ:
+                   case ITEMID_URUZ:
+                   D = -1500;
+                   break; //Rank A
+                   case ITEMID_ISA:
+                   case ITEMID_WYRD:
+                   D = -1000;
+                   break; //Rank B
+                   case ITEMID_RAIDO:
+                   case ITEMID_THURISAZ:
+                   case ITEMID_HAGALAZ:
+                   case ITEMID_OTHILA:
+                   D = -500;
+                   break; //Rank C
+                   default: D = -1500;
+                   break; //not specified =-15%
+               }
+               make_per = A + B + C + D;
                break;
+               }
            /**
             * Guilotine Cross
             **/
Viewed 1205 times, submitted by lighta.