snk99kof 發表於 2010-1-30 21:05:02

修改源碼Stats Point消耗[EA官網]

本帖最後由 snk99kof 於 2010-1-30 11:23 PM 編輯

請找到SRC/MAP
會找到pc.c


找到這段源碼
int pc_need_status_point(struct map_session_data* sd, int type)
{
    return ( 1 + (pc_getstat(sd,type) + 9) / 10 );
}


將其改為


int pc_need_status_point(struct map_session_data* sd, int type)
{
    if (pc_getstat(sd,type) >= 114)
      return 28;
    else if (pc_getstat(sd,type) >= 109 && pc_getstat(sd,type) <= 113)
      return 24;
    else if (pc_getstat(sd,type) >= 104 && pc_getstat(sd,type) <= 108)
      return 20;
    else if (pc_getstat(sd,type) >= 99 && pc_getstat(sd,type) <= 103)
      return 16;
    else
      return ( 1 + (pc_getstat(sd,type) + 9) / 10 );
}

將DB/STATPOINT.TXT
改為
48
51
54
57
60
64
68
72
76
80
85
90
95
100
105
111
117
123
129
135
142
149
156
163
170
178
186
194
202
210
219
228
237
246
255
265
275
285
295
305
316
327
338
349
360
372
384
396
408
420
433
446
459
472
485
499
513
527
541
555
570
585
600
615
630
646
662
678
694
710
727
744
761
778
795
813
831
849
867
885
904
923
942
961
980
1000
1020
1040
1060
1080
1101
1122
1143
1164
1185
1207
1229
1251
1273
1295
1318
1341
1364
1387
1410
1434
1458
1482
1506
1530
1555
1580
1605
1630
1655
1681
1707
1733
1760
1820
1880
1920
1960
2000
2030
2050
2130
2150
2170
2190
2210
2220
2230
2240
2250
2260
2270
2280
2290
2300
2310
2320
2330
2340
2350
2360
2370
2420
2450
2545
2675

若有開放三轉原本的公式會讓整服變成變態服 有興趣的可以更改此段源碼讓伺服器更像R版
因詢問高手都沒人幫忙解答因此我直接到EA官網爬文 剛好找到我想要的教學 因此也發布給有研究的人使用

Alopex 發表於 2010-1-31 11:51:16

1# snk99kof


修改公式阿=......=


話說之前sear沒有改公式,能力整個爆強!



推一下。。

snk99kof 發表於 2010-2-1 11:53:09

SEAR除了沒有修改消耗公式外 DB裡面的點數也沒修改過 不過我倒是再CONF裡面看到什麼素質99以上增加消耗?!
頁: [1]
查看完整版本: 修改源碼Stats Point消耗[EA官網]