Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/27/20 in all areas

  1. This seems to be a more appropriate place so continuing here from @autopilot is a server side AI implementation that can control player characters. The primary goal is to replace human players for any reason : perhaps you installed a server on your own computer and have no other players, or your server has too low population or a critical class for the party isn't available. Either way, this allows you to add characters to your party without having a human player available. Note that this isn't a bot : it might get stuck in a corner if left alone with no human to lead the party. Also note this is server side : you have to be the server owner and capable of modifying your source to add it. Obviously an AI isn't a human player, which means better reaction time, and no "I have to go 5 minutes afk sorry" during boss fights but at the price of not being able to judge more advanced situations correctly. Overall I'd say the AI will play better than a typical player but will fail at anything more complex than "use this skill when <condition>". All the current progress is available here : https://github.com/SeravySensei/rathena/commits/Autopilot https://github.com/rathena/rathena/compare/master...SeravySensei:Autopilot.patch https://github.com/rathena/rathena/compare/master...SeravySensei:Autopilot.diff Currently implemented : All 1st classes, 2nd/rebirth classes. Homunculus, 3rd classes. Awaiting implementation : -Rebel -Oboro/Kagerou -Soul Reaper/Star Emperor Many of the 3rd class AI skills are still untested. I plan to test everything after the last few classes are done. How to use : @autopilot Tank enables tanking mode, the AI will try to engage enemies in melee and use melee skills. @autopilot Skill enables the AI to use ranged attacks or ranged skills, in general this is the DPS mode @autopilot Support restricts the AI to using support skills only. @autopilothom with same parameters : same modes for the Homunculus. There are a few other commands for enabling "extras" such as telling the AI to use a song or dance or other special skill or use sp potions. You should see them in the atcommands file(s). It's old but here is a recording that shows the AI in action :
    1 point
  2. That error said no files has been found. Maybe try to created a new one? Or copy from other clients.
    1 point
  3. Change this: https://github.com/rathena/rathena/blob/972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb/src/map/skill.cpp#L13386 To this: if( (skill_get_type(sg->skill_id) == BF_MAGIC && ((battle_config.land_protector_behavior) ? map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) : map_getcell(unit->bl.m, unit->bl.x, unit->bl.y, CELL_CHKLANDPROTECTOR)) && sg->skill_id != SA_LANDPROTECTOR) || and this: https://github.com/rathena/rathena/blob/972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb/src/map/skill.cpp#L18489 To this: if( !(skill_get_inf2(group->skill_id)&(INF2_SONG_DANCE|INF2_TRAP)) && !(skill_get_inf3(group->skill_id)&(INF3_NOLP)) && group->skill_id != NC_NEUTRALBARRIER && (battle_config.land_protector_behavior ? map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) : map_getcell(unit->bl.m, unit->bl.x, unit->bl.y, CELL_CHKLANDPROTECTOR)) )
    1 point
  4. this file affect drop rate too. db/re/level_penalty.txt#L43-L60 item_drop_common_min: 1 item_drop_common_max: 1000 this define the minimum and maximum drop rate .... from your settings, its 0.01% (min) ~ 10.00% (max) hence your Poring are probably dropping Jellopy at 10% max.
    1 point
  5. It's something so simple. Go to: src/map/script.hpp before: HAT_EF_MAX Add your effect and add to in: src/map/script_constants.hpp After: export_constant(HAT_EF_C_SHINING_ANGEL_WING); Add your effect to. Recompile. for the client just add in the file hateffect.lub inside the data folder.
    1 point
  6. - <tab> script <tab> VotePointConvert <tab> -1,{ OnPCLoginEvent: query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",.@points); if (!.@points) end; query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@points+") WHERE account_id='"+getcharid(3)+"'"); set #VOTEPOINTS, #VOTEPOINTS+.@points; dispbottom "Vote Points updated! Total: "+#VOTEPOINTS; end; } Then use my quest shop with the following configuration: setarray .Points$[0],"#VOTEPOINTS","Vote Points";
    1 point
×
×
  • Create New...