goddameit 52 Posted March 10, 2014 (edited) File Name: BOT File Submitter: goddameit File Submitted: 10 Mar 2014 File Category: Source Modifications Refer: http://rathena.org/board/files/file/2551-autoattack/ http://rathena.org/board/files/file/2826-autopots/ Preview: https://www.facebook.com/photo.php?v=774591642560012 https://www.facebook.com/fanen.goddameit/posts/774573372561839 https://www.facebook.com/fanen.goddameit/posts/773655365986973 Info: This system will make player auto-attack when they active this SC. Player can put some skill and item to their hotkeys for controlling something, for example, if I put fly wing to my F1, and it will use it for teleporting. Hotkeys: F1 ---> Fly wing F2 ---> Teleport (Skill) F3 ~ F7 ---> buff skill for yourself F8 ---> Main attacking skill F9 ---> Second chosen skill Line 2 1st ---> Item for HP (Lower 80%) Line 2 2nd ---> Item for SP (Lower 80%) http://i.imgur.com/v3rBXjc.jpg Active: sc_start4 SC_BOT,<Duration>,<Use Normal Attack>,0,0,0; Forced End:sc_end SC_BOT; Sample for ONOFF:@boton ---> start @botoff \ @botend ---> end http://pastebin.com/VEpkVF9i PS: If everything is right, but BOT still not working, check your SC_BOT definition in db/const.txt and status.h, both must be same value. For New Version Hercules Users : path->search is updated and it needs block_list now, so just add it by yourself. http://herc.ws/board/topic/4821-bot/?p=67769 Update: v.3: Fixed and change SC to SC_BOT v.2: New variable @SP_BOT_LTICK will record your left time after you use @sak or sc_end Click here to download this file Edited February 17, 2016 by goddameit 18 Lanz, Shikazu, dyas95 and 15 others reacted to this Quote Share this post Link to post Share on other sites
leloush 7 Posted March 10, 2014 Good day goddameit, im wondering if this will work too in later versions? im doing manual patch at this moment.. so i got these lines } while(0) switch(type) { case SC_AUTOATTACK: and im missing here status->readdb_refine = status_readdb_refine; status->readdb_scconfig = status_readdb_scconfig; } so any other way to apply this in later version? coz the line qouted above is missing.. on my later version of svn Quote Share this post Link to post Share on other sites
BuLaLaKaW 7 Posted March 10, 2014 +1 cant say thank you enough .... so generous of you to give it for free , yet very professional when asked to do some coding. thanks Quote Share this post Link to post Share on other sites
karazu 33 Posted March 10, 2014 (edited) I hope somebody can convert it to plugins RAWR.I already bought 3 script from goddameit just saying Edited March 10, 2014 by karazu Quote Share this post Link to post Share on other sites
Jezu 25 Posted March 10, 2014 If you want to thank him, then rep him by pressing --> +1 to you Mr. @goddameit! You're god! Quote Share this post Link to post Share on other sites
schan 8 Posted March 10, 2014 This is great! Imma test this now! Rep up! Quote Share this post Link to post Share on other sites
themon 63 Posted March 11, 2014 @Goddamit can you also make this http://herc.ws/board/topic/4379-suggestion-autoattacklevel/ Quote Share this post Link to post Share on other sites
karazu 33 Posted March 11, 2014 (edited) MKDIR obj_sql CC atcommand.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC battle.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC battleground.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC buyingstore.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC chat.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC chrif.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC clif.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC date.c CC duel.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC elemental.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC guild.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC homunculus.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC HPMmap.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC instance.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC intif.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC irc-bot.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC itemdb.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC log.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC mail.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC map.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC mapreg_sql.c CC mercenary.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC mob.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC npc.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC npc_chat.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but never defined CC party.cstatus.h:2021: warning: 'buildin_autoattack_sub' declared 'static' but neve Edited March 11, 2014 by karazu Quote Share this post Link to post Share on other sites
goddameit 52 Posted March 12, 2014 update on something Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted March 13, 2014 very nice Quote Share this post Link to post Share on other sites
kbandeleon 0 Posted April 5, 2014 hi, how do you apply .patch files ? Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted April 6, 2014 hi, how do you apply .patch files ? http://herc.ws/wiki/Diff#Using_.diff.2F.patch_files_to_patch_your_server Quote Share this post Link to post Share on other sites
kbandeleon 0 Posted April 7, 2014 I'm getting errors, with patching files, rejected changes i guess Quote Share this post Link to post Share on other sites
bossemoja 0 Posted July 14, 2014 how to fix ? unsigned short idle_ = cap_value(DIFF_TICK32(sockt->last_tick, sd->idletime), 0, USHRT_MAX); 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): error C2065: 'sockt' : undeclared identifier 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): error C2223: left of '->last_tick' must point to struct/union 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): error C2065: 'sockt' : undeclared identifier 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): error C2223: left of '->last_tick' must point to struct/union 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): error C2065: 'sockt' : undeclared identifier 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): error C2223: left of '->last_tick' must point to struct/union 5>c:usersbossdesktopsweetplusservertrunksrcmapstatus.c(10467): fatal error C1903: unable to recover from previous error(s); stopping compilation Quote Share this post Link to post Share on other sites
jaBote 438 Posted July 14, 2014 Go to src/map/status.c and look for this: #include "../common/cbasetypes.h"#include "../common/ers.h"#include "../common/malloc.h"#include "../common/nullpo.h"#include "../common/random.h"#include "../common/showmsg.h"#include "../common/strlib.h"#include "../common/timer.h"#include "../common/utils.h" Add after it: #include "../common/socket.h" Save it and try to recompile. Quote Share this post Link to post Share on other sites
bossemoja 0 Posted July 15, 2014 (edited) Go to src/map/status.c and look for this: #include "../common/cbasetypes.h"#include "../common/ers.h"#include "../common/malloc.h"#include "../common/nullpo.h"#include "../common/random.h"#include "../common/showmsg.h"#include "../common/strlib.h"#include "../common/timer.h"#include "../common/utils.h" Add after it: #include "../common/socket.h" Save it and try to recompile. Oh Thx but skill no delay Edited July 15, 2014 by bossemoja Quote Share this post Link to post Share on other sites
dungpt8782 0 Posted August 1, 2014 It will autoatk player in WOE, PVP too? Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted August 1, 2014 It will autoatk player in WOE, PVP too? only monsters Quote Share this post Link to post Share on other sites
thanna 11 Posted April 2, 2015 (edited) will this source release be using much memory of the server, for example if there is 30 characters using this will it not overload the server? its not moving, I dont have any error. Edited April 3, 2015 by thanna Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted December 9, 2015 @@Dastgir please update to yours plugins Quote Share this post Link to post Share on other sites
keripikotaku 0 Posted December 19, 2015 help.. getting error when patch >< i just follow this Windows: go place the folder in the index folder richt click the *.diff file and go to TortoiseSVN menu click patch but i find error can you help me? <a href=" "><img src="http://i.imgur.com/rV9DYZ4.png" title="source: imgur.com" /></a> Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted December 19, 2015 help.. getting error when patch >< i just follow this Windows: [*]go place the folder in the index folder [*]richt click the *.diff file and go to TortoiseSVN menu [*]click patch but i find error can you help me? <a href=" "><img src="http://i.imgur.com/rV9DYZ4.png" title="source: imgur.com" /></a>That says your local copy is not exported via tortoisesvn(ah, why use svn, we are on Git) @@Dastgir please update to yours plugins Will check if I can convert this.... Quote Share this post Link to post Share on other sites
keripikotaku 0 Posted December 19, 2015 so.. what i must doing so i can use this script sir @@Dastgir ?? i just try what @@evilpuncker said at page 1.. Quote Share this post Link to post Share on other sites
keripikotaku 0 Posted December 20, 2015 i add manually to my server, and when i recompile, i found this.. can u help me? ^ fix i just read at page 1 to add #include "common/socket.h" and now i have new prob.. /? Quote Share this post Link to post Share on other sites