BOT

goddameit

New member
Messages
59
Points
0
Age
34
Emulator
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:
Code:
sc_end SC_BOT;
Sample for ONOFF:
Code:
@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
 
Last edited by a moderator:
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

 
+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

 
I hope somebody can convert it to plugins RAWR.


I already bought 3 script from goddameit just saying

 
Last edited by a moderator:
Code:
        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 
 
Last edited by a moderator:
very nice
default_smile.png


 
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
 
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.

 
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

 
Last edited by a moderator:
Back
Top