game/src/cmd_general.cpp
//Arat
ACMD(do_skillauto)
{
std::vector<std::string> vecArgs;
split_argument(argument, vecArgs);
if (vecArgs.size() < 2) { return; }
else if (vecArgs[1] == "select")
{
if (vecArgs.size() < 3) { return; }
if (ch->GetSkillGroup() != 0) { return; }
BYTE skillIndex;
str_to_number(skillIndex, vecArgs[2].c_str());
if(skillIndex > 2) { return; }
//Değiştir
ACMD(do_skillauto)
{
char arg1[256];
one_argument(argument, arg1, sizeof(arg1));
if (!*arg1)
return;
{
if (ch->GetSkillGroup() != 0)
return;
int skillIndex = 0;
str_to_number(skillIndex, arg1);
if(skillIndex > 2)
return;
root/uiautoskill.py
//Arat
net.SendChatPacket("/skillauto select %d"%(int(index)))
//Değiştir
net.SendChatPacket("/skillauto %d"%(int(index)))