|
发表于 2008-10-26 17:04:17
|
显示全部楼层
来自 中国–甘肃–兰州
回复: 魔兽CS 如何把6级出大绝修改到8级出大绝
以WAR3FT3.0_RC11为例,看看menus.inl文件里的这段代码,自己修改下就可以了。
[PHP]// Add the ultimate to the menu
else if ( SM_GetSkillType( iSkillID ) == SKILL_TYPE_ULTIMATE )
{
if ( iSkillLevel < MAX_ULTIMATE_LEVEL )
{
// User can't choose ultimate yet :/
if ( p_data[id][P_LEVEL] <= 5 )
{
pos += formatex( szMsg[pos], 512-pos, "\d" );
}
// Then the user is level 6 or above and can select their ultimate!
else
{
iKeys |= (1<<iSkillCounter);
}
pos += formatex( szMsg[pos], 512-pos, "^n%d. %L: %s\w", iSkillCounter+1, id, "WORD_ULTIMATE", szSkillName );
}
}
iSkillCounter++;
iSkillID = SM_GetSkillByPos( id, iSkillCounter );
}
// Add the cancel button to the menu
pos += formatex( szMsg[pos], 512-pos, "^n^n0. %L", id, "WORD_CANCEL" );
// Show the menu!
show_menu( id, iKeys, szMsg, -1 );
return;
}[/PHP] |
|