Zalbahis 0 Posted July 15, 2013 Can someone make a Hercules of this @go Delay when hit?.. this is from rAthena so it would be useful to everyone using Hercules if there's a version of this here..Original Topic on there rA Wiki..http://rathena.org/wiki/@go_delay_when_hit Thank you in advance Cheers! Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted July 15, 2013 You can follow that guide perfectly, just take this into account: When it says to find ACMD_FUNC(go), just go find ACMD(go); And then, when it says to add clif_displaymessage, just add clif->message. The rest (what is inside of the parentheses, which are called arguments) must be as is. I haven't tried it but it sounds to me that it should work. Edit: Quesph one is way better than this Quote Share this post Link to post Share on other sites
0 Greek 0 Posted July 15, 2013 (edited) You mean like this one?http://www.ro-services.com/ro-scr-mod-warp-go-5-secs-delay-2/ Edited July 15, 2013 by Greek Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted July 15, 2013 Index: conf/battle.conf===================================================================--- conf/battle.conf (revision 12062)+++ conf/battle.conf (working copy)@@ -58,4 +58,4 @@ import: conf/battle/misc.conf //Your custom config goes here.-import: conf/import/battle_conf.txt+import: conf/battle/custom.confIndex: conf/battle/custom.conf===================================================================--- conf/battle/custom.conf (revision 0)+++ conf/battle/custom.conf (working copy)@@ -0,0 +1,7 @@+//--------------------------------------------------------------+// Hercules Battle Configuration File+//--------------------------------------------------------------++// Warp and Go delay in miliseconds ( 5000 = 5 Seconds )+// Official is 0+gowarp_delay: 5000 No newline at end of fileIndex: src/map/atcommand.c===================================================================--- src/map/atcommand.c (revision 12062)+++ src/map/atcommand.c (working copy)@@ -426,6 +431,10 @@ clif->message(fd, msg_txt(248)); return false; }+ if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+ clif->message(fd,"@warp cannot be issued since you were into battle recently");+ return false;+ } if (pc->setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) { clif->message(fd, msg_txt(1)); // Map not found. return false;@@ -1755,6 +1780,11 @@ memset(map_name, '0', sizeof(map_name)); memset(atcmd_output, '0', sizeof(atcmd_output)); + if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+ clif->message(fd,"@go cannot be issued since you were into battle recently");+ return -1;+ }+ // get the number town = atoi(message); Index: src/map/battle.c===================================================================--- src/map/battle.c (revision 12062)+++ src/map/battle.c (working copy)@@ -6486,6 +6527,7 @@ { "gm_ignore_warpable_area", &battle_config.gm_ignore_warpable_area, 0, 2, 100, }, { "packet_obfuscation", &battle_config.packet_obfuscation, 1, 0, 3, }, { "client_accept_chatdori", &battle_config.client_accept_chatdori, 0, 0, INT_MAX, },+ { "gowarp_delay", &battle_config.gowarp_delay, 0, 0, INT_MAX, }, }; #ifndef STATS_OPT_OUT /**Index: src/map/battle.h===================================================================--- src/map/battle.h (revision 12062)+++ src/map/battle.h (working copy)@@ -453,7 +453,7 @@ int gm_ignore_warpable_area; int client_accept_chatdori; // [Ai4rei/Mirei]- + int gowarp_delay; } battle_config; Index: src/map/pc.c===================================================================--- src/map/pc.c (revision 12062)+++ src/map/pc.c (working copy)@@ -6630,6 +6648,8 @@ elemental_set_target(sd,src); sd->canlog_tick = iTimer->gettick();+ if( src->type == BL_PC )+ ((TBL_PC*)src)->canlog_tick = iTimer->gettick(); } /*========================================== 2 Zalbahis and jaBote reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted July 15, 2013 Oh, sh*t, mine won't work because of the iTimer interface, of whick I forgot. Quesoph one might work. Quote Share this post Link to post Share on other sites
0 anacondaq 55 Posted July 15, 2013 That is possible to make modification like this one by HPM (hercules plugins manager) and can someone show realisation of it to get more information and start to practice with my own sources. I have an idea, to add most used src mods without any damage for hercules. Like extra pluggins. Can anyone show by by some realizations? Quote Share this post Link to post Share on other sites
0 Zalbahis 0 Posted July 16, 2013 @Greek Yeah!, like that one indeedy!..@quesoph. I'll try this one.. hope it'll work.. I'll give any feedback after the test..@neqste.. That would be awesome if it'll be on HPM but.. I'm having problems on making it work with the other Plugins..@jaBote.. I'll already tested the first method you posted but it won't work.. I dunu why.. Quote Share this post Link to post Share on other sites
0 Zalbahis 0 Posted July 16, 2013 Index: conf/battle.conf===================================================================--- conf/battle.conf (revision 12062)+++ conf/battle.conf (working copy)@@ -58,4 +58,4 @@ import: conf/battle/misc.conf //Your custom config goes here.-import: conf/import/battle_conf.txt+import: conf/battle/custom.confIndex: conf/battle/custom.conf===================================================================--- conf/battle/custom.conf (revision 0)+++ conf/battle/custom.conf (working copy)@@ -0,0 +1,7 @@+//--------------------------------------------------------------+// Hercules Battle Configuration File+//--------------------------------------------------------------++// Warp and Go delay in miliseconds ( 5000 = 5 Seconds )+// Official is 0+gowarp_delay: 5000 No newline at end of fileIndex: src/map/atcommand.c===================================================================--- src/map/atcommand.c (revision 12062)+++ src/map/atcommand.c (working copy)@@ -426,6 +431,10 @@ clif->message(fd, msg_txt(248)); return false; }+ if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+ clif->message(fd,"@warp cannot be issued since you were into battle recently");+ return false;+ } if (pc->setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) { clif->message(fd, msg_txt(1)); // Map not found. return false;@@ -1755,6 +1780,11 @@ memset(map_name, '0', sizeof(map_name)); memset(atcmd_output, '0', sizeof(atcmd_output)); + if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+ clif->message(fd,"@go cannot be issued since you were into battle recently");+ return -1;+ }+ // get the number town = atoi(message); Index: src/map/battle.c===================================================================--- src/map/battle.c (revision 12062)+++ src/map/battle.c (working copy)@@ -6486,6 +6527,7 @@ { "gm_ignore_warpable_area", &battle_config.gm_ignore_warpable_area, 0, 2, 100, }, { "packet_obfuscation", &battle_config.packet_obfuscation, 1, 0, 3, }, { "client_accept_chatdori", &battle_config.client_accept_chatdori, 0, 0, INT_MAX, },+ { "gowarp_delay", &battle_config.gowarp_delay, 0, 0, INT_MAX, }, }; #ifndef STATS_OPT_OUT /**Index: src/map/battle.h===================================================================--- src/map/battle.h (revision 12062)+++ src/map/battle.h (working copy)@@ -453,7 +453,7 @@ int gm_ignore_warpable_area; int client_accept_chatdori; // [Ai4rei/Mirei]- + int gowarp_delay; } battle_config; Index: src/map/pc.c===================================================================--- src/map/pc.c (revision 12062)+++ src/map/pc.c (working copy)@@ -6630,6 +6648,8 @@ elemental_set_target(sd,src); sd->canlog_tick = iTimer->gettick();+ if( src->type == BL_PC )+ ((TBL_PC*)src)->canlog_tick = iTimer->gettick(); } /*========================================== I manually patch this and it's now working 100%, thanks quesoph.. Quote Share this post Link to post Share on other sites
0 LEE 0 Posted October 3, 2013 Its work 100% thank you Quote Share this post Link to post Share on other sites
0 LEE 0 Posted October 3, 2013 hehe anti escape Quote Share this post Link to post Share on other sites
0 Reins 3 Posted October 6, 2013 mine got no errors on compiling but still i can warp i almost got damage and hitted still can be warp help. Quote Share this post Link to post Share on other sites
Can someone make a Hercules of this @go Delay when hit?..
this is from rAthena so it would be useful to everyone using Hercules if there's a version of this here..
Original Topic on there rA Wiki..
http://rathena.org/wiki/@go_delay_when_hit
Thank you in advance Cheers!
Share this post
Link to post
Share on other sites