- UID
- 1020
- 阅读权限
- 40
- 回帖
- 140
- 喵币
- 0
- 有爱
- 25
- DKP
- 3704
- 金币
- 57532
- 在线时间
- 348 小时
- 注册时间
- 2017-1-10
- 最后登录
- 2024-5-8
声望: 1327   虚弱: 0

Lv.4(锻造者)
 
|

楼主 |
发表于 2022-11-1 23:29:07
|
显示全部楼层
能下副本,加入了弹性副本模块的,会根据你进入副本副本人数和等级调整副本难度的,
<pre>
static bool HandleABSetOffsetCommand(ChatHandler* handler, const char* args)
{
if (!*args)
{
handler->PSendSysMessage(".autobalance setoffset #");
handler->PSendSysMessage("根据玩家数调整副本难度。示例:(你+调整(1)=2玩家难度).");
return false;
}
char* offset = strtok((char*)args, " ");
int32 offseti = -1;
if (offset)
{
offseti = (uint32)atoi(offset);
handler->PSendSysMessage("将玩家难度调整更改为 %i.", offseti);
PlayerCountDifficultyOffset = offseti;
return true;
}
else
handler->PSendSysMessage("更改玩家难度改变时出错!请重试。");
return false;
}
static bool HandleABGetOffsetCommand(ChatHandler* handler, const char* /*args*/)
{
handler->PSendSysMessage("当前玩家难度改变 = %i", PlayerCountDifficultyOffset);
return true;
}
</pre> |
|