飞飞世界论坛
标题:
[补]修改倍率
[打印本页]
作者:
admin
时间:
2016-1-10 03:09
标题:
[补]修改倍率
首先打开Constant.inc并且修改所有倍率为1.0
8 N( c1 ^ [* s2 Z m7 @
Code:
* v4 [3 y0 y+ W# [6 Z
itemDropRate = 1.0
6 D9 R) [$ J* S$ n* b+ }
goldDropRate = 1.0
! ]# {; o6 w7 w' U
monsterExpRate = 1.0
4 Y l' J. n8 y- p( F' F
monsterHitRate = 1.0
8 x1 |1 m+ }8 t5 |+ i: P; r- w9 c
现在去LuaFunc 文件夹 打开EventFunc.lua搜索 local fExpFactor =
$ s4 n6 d5 d4 B5 z+ i
你可以在这更改倍率。
1 K; a! x) n& {
Code:
3 d- n2 O( ~& T0 S0 |* A
function GetExpFactor()
# s9 J2 N9 ^5 a7 f
local tList = GetEventList()
! s* f' a! h% U( g; U9 Q
local fExpFactor = 60
% K2 @1 [& H. l( |+ R+ v* F
for i in pairs(tList) do
* \. h6 E7 K* p- N+ N# O% O" r
if( tEvent[tList].fExpFactor ~= nil ) then
2 U# h, I+ y$ P* F: b8 \1 K
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
2 i) z7 x5 X% A, Y* P3 R
end
1 B3 ~ m* w3 w6 E( v
end
6 f+ J9 ^" L: n" |7 \' N; D7 R! W
5 j5 d% q- Q* c/ u' b& ?& G
return fExpFactor
% K; X. H+ I) O' t4 M3 m* D; m" C
end
( M/ Y( `& O& y
物品掉率 "local fItemDropRate ="
' q" F0 a/ e R1 j& M) f
卡片掉率 "local fPieceItemDropRate ="
0 c1 ^/ {' T; S6 n2 F% Z" o
飞飞币掉率 "local fGoldDropFactor ="
`$ N3 \( @& G, [6 {* T3 l. e8 M
当然也可以把这里都设为1.0,然后通过活动来控制,更加灵活。
7 _7 H. r2 K2 k4 g
7 w0 }5 L, s) d+ }: j
, e& o+ k# s% \4 u2 C* ]* w; k3 z
欢迎光临 飞飞世界论坛 (http://www.ffwold.com/)
Powered by Discuz! X3.2