UID7212
阅读权限70
威望 点
积分1595
注册时间2010-10-31
最后登录1970-1-1
听众
收听
升级
29.75%
|
你去 pc.c, 找以下的码.
int pc_bonus(struct map_session_data *sd,int type,int val)
{
switch(type){
case SP_STR:
case SP_AGI:
case SP_VIT:
case SP_INT:
case SP_DEX:
case SP_LUK:
sd->paramb[type-SP_STR]+=val;
break;
case SP_MATK1:
break;
case SP_MDEF1:
sd->mdef+=val;
break;
case SP_HIT:
sd->hit+=val;
break;
case SP_FLEE1:
sd->flee+=val;
break;
case SP_FLEE2:
sd->flee2+=val;
break;
case SP_CRITICAL:
sd->critical+=val;
break;
case SP_ATKELE:
sd->atk_ele=val;
break;
case SP_DEFELE:
sd->def_ele=val;
break;
case SP_MAXHP:
sd->status.max_hp+=val;
break;
case SP_MAXSP:
sd->status.max_sp+=val;
break;
case SP_CASTRATE:
sd->castrate+=val;
break;
case SP_MAXHPRATE:
sd->hprate+=val;
break;
case SP_MAXSPRATE:
sd->sprate+=val;
break;
case SP_SPRATE:
sd->dsprate+=val;
break;
default:
printf("pc_bonus: unknown type %d %d !\n",type,val);
break;
}
return 0;
}
把它們用以下的覆盖掉
int pc_bonus(struct map_session_data *sd,int type,int val)
{
switch(type){
case SP_STR:
case SP_AGI:
case SP_VIT:
case SP_INT:
case SP_DEX:
case SP_LUK:
sd->paramb[type-SP_STR]+=val;
break;
case SP_MATK1:
break;
case SP_MDEF1:
sd->mdef+=val;
break;
case SP_HIT:
sd->hit+=val;
break;
case SP_FLEE1:
sd->flee+=val;
break;
case SP_FLEE2:
sd->flee2+=val;
break;
case SP_CRITICAL:
sd->critical+=val;
break;
case SP_ATKELE:
sd->atk_ele=val;
break;
case SP_DEFELE:
sd->def_ele=val;
break;
case SP_MAXHP:
sd->status.max_hp+=val;
break;
case SP_MAXSP:
sd->status.max_sp+=val;
break;
case SP_CASTRATE:
sd->castrate+=val;
break;
case SP_MAXHPRATE:
sd->hprate+=val;
break;
case SP_MAXSPRATE:
sd->sprate+=val;
break;
case SP_SPRATE:
sd->dsprate+=val;
break;
//=== bonus adding ============================
case SP_ATK2:
sd->watk2+=val;
break;
case SP_ATTACKRANGE:
sd->attackrange+=val;
break;
case SP_ASPD:
sd->aspd-=val*10;
break;
case SP_SPEED:
sd->speed -= DEFAULT_WALK_SPEED *val/100;
break;
//=== End Adding ==============================
default:
printf("pc_bonus: unknown type %d %d !\n",type,val);
break;
}
return 0;
}
去你的DB档里找const.txt
加以下的码下去
bSpeed 0
bAtk2 42
bAspd 53
bAtkRange 56
下面是每个bonus的效果解晰.
bonus bAspd,2; ==> 就是 aspd+2
bonus bAtk2,10; ==> atk2 +10
bonus bSpeed,70; ==> 速度+35%, 不要太多会LAG
bonus bAtkRange,2; ==> 攻击范围+2
再來就去你的item_db.txt, 找死靈卡
4142,Doppelganger_Card,Doppelganger_Card,6,20,10,10,,,,,,,2,,,,{},{ bonus bAspd,8; }
如上把 bonus baspd, 8; 加入第2个空格, 你玩起來死靈卡aspd就+8啦
|
温馨提示:
1. 本站模拟器源于网络,经 99Max.mE 二次开发,仅供个人学习娱乐使用,切勿用于商业用途,否则后果自负!
2. 如需更好体验游戏内容,请前往官方游戏!不具备合法的运营模式,都是强盗,请勿擅自搭建私服!
3. 如本站内容有侵犯您的权益,请发送信息至QQ:372607220 或 EMAIL:372607220@qq.com ,我们会及时删除。
|