Jump to content

rafaelpsyco

Members
  • Content Count

    8
  • Joined

  • Last visited

2 Followers

About rafaelpsyco

  • Rank
    Newbie
  1. @Cydh Very Very Very Very Very Very Thx >< Is Worked o/
  2. No errors at compile time, but no check my char can use warp normally Let me try to explain what I'm wondering. When you take damage from any player or mob you can not log out right? (Prevent logout). I need the same thing, except for the commands "go" and "warp" Example:
  3. re-up, sorry! http://pastebin.com/yiNe5f0e
  4. This is a "patch" made ​​for rAthena, someone could convert it to Hercules? I would be very grateful! https://www.mediafire.com/?8x8nhlz9rp1gc56
  5. Has anyone managed to fix this problem? I'm using this patch, but he is out of date 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(); } /*==========================================
  6. Can someone update this script for me? I already searched the forum but I do not want to delay reuse I need the char can not use go and warp being in combat 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(); } /*==========================================
  7. Hii I'm having the same error Jezu, what should I do?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.