Warp Hit Delay

thumb-4f3ee667ee9065e2111fcbe6d95178a8-screenhercules013.jpg


File Name: Warp Hit DelayFile Submitter: Dastgir

File Submitted: 12 Jan 2015

File Category: Plugins

It is warp delay plugin

Once you get a hit(not a miss) , you will be attached by a timer of x seconds, only after that you will be able to warp(be it be any wings,warp command,go command, npc or skill)

You can have a battle_config on any of the files in conf/battle/ with

warp_delay_mob: Seconds*1000warp_delay_pet: Seconds*1000warp_delay_homun: Seconds*1000warp_delay_merc: Seconds*1000warp_delay: Seconds*1000 //(For All Other Hits except mob/pet/homunc/merc)

Building Plugin for Linux: http://herc.ws/wiki/Building_HPM_Plugin_for_gcc

Building Plugin for Windows: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

P.S: You need HPMHooking Enabled.

Click here to download this file
Hi Dastgir,

There's a bug when you just got hit after dying.

When you try to press the "return to save point" button 2~3 seconds after dying, you will gain some HP but you're still dead. And monsters can still attack you and you will die again even if you're already dead. Pressing the "return to savepoint" button doesn't allow you to go back to your save point, you still need to wait for 5 seconds after dying.

I think you should disable warp hit delay when you're already dead.

 
thumb-4f3ee667ee9065e2111fcbe6d95178a8-screenhercules013.jpg


File Name: Warp Hit DelayFile Submitter: Dastgir

File Submitted: 12 Jan 2015

File Category: Plugins

It is warp delay plugin

Once you get a hit(not a miss) , you will be attached by a timer of x seconds, only after that you will be able to warp(be it be any wings,warp command,go command, npc or skill)

You can have a battle_config on any of the files in conf/battle/ with

warp_delay_mob: Seconds*1000warp_delay_pet: Seconds*1000warp_delay_homun: Seconds*1000warp_delay_merc: Seconds*1000warp_delay: Seconds*1000 //(For All Other Hits except mob/pet/homunc/merc)

Building Plugin for Linux: http://herc.ws/wiki/Building_HPM_Plugin_for_gcc

Building Plugin for Windows: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

P.S: You need HPMHooking Enabled.

Click here to download this file
Hi Dastgir,

There's a bug when you just got hit after dying.

When you try to press the "return to save point" button 2~3 seconds after dying, you will gain some HP but you're still dead. And monsters can still attack you and you will die again even if you're already dead. Pressing the "return to savepoint" button doesn't allow you to go back to your save point, you still need to wait for 5 seconds after dying.

I think you should disable warp hit delay when you're already dead.
Fixed in v1.3.

Also Seperated the warp delay timers for Players and Others..

 
 
thumb-4f3ee667ee9065e2111fcbe6d95178a8-screenhercules013.jpg


File Name: Warp Hit Delay
File SubmitterDastgir
File Submitted: 12 Jan 2015
File CategoryPlugins

It is warp delay plugin
Once you get a hit(not a miss) , you will be attached by a timer of x seconds, only after that you will be able to warp(be it be any wings,warp command,go command, npc or skill)

You can have a battle_config on any of the files in conf/battle/ withwarp_delay_mob: Seconds*1000
warp_delay_pet: Seconds*1000
warp_delay_homun: Seconds*1000
warp_delay_merc: Seconds*1000
warp_delay: Seconds*1000 //(For All Other Hits except mob/pet/homunc/merc)


Building Plugin for Linux: http://herc.ws/wiki/Building_HPM_Plugin_for_gcc
Building Plugin for Windows: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

P.S: You need HPMHooking Enabled.

Click here to download this file
Hi Dastgir,

There's a bug when you just got hit after dying.

When you try to press the "return to save point" button 2~3 seconds after dying, you will gain some HP but you're still dead. And monsters can still attack you and you will die again even if you're already dead. Pressing the "return to savepoint" button doesn't allow you to go back to your save point, you still need to wait for 5 seconds after dying.

I think you should disable warp hit delay when you're already dead.
Fixed in v1.3.

Also Seperated the warp delay timers for Players and Others..

Hi Dastgir,

Unfortunately it didn't fix the "Return to Savepoint" button bug. When you die and try to click that button, monsters will be able to attack you and it's like you'll just refresh in your position. Doesn't go to your savepoint

 
Last edited by a moderator:
Are you using the new Hercules? what rev is that?


because it works fine in my side, you maybe correct that u cannot respawn after being dead for how many sec u set in the src but I am not respawning in my own coordinates and can be hit again by monsters.

 
Last edited by a moderator:
@@Kong , I will check the issue and will update it in 1-2 days.

 
Are you using the new Hercules? what rev is that?

because it works fine in my side, you maybe correct that u cannot respawn after being dead for how many sec u set in the src but I am not respawning in my own coordinates and can be hit again by monsters.
Did you pressed the button immediately after being dead? then what happened?

Yes I'm using the latest hercules rev.

 
Are you using the new Hercules? what rev is that?

because it works fine in my side, you maybe correct that u cannot respawn after being dead for how many sec u set in the src but I am not respawning in my own coordinates and can be hit again by monsters.
Did you pressed the button immediately after being dead? then what happened?

Yes I'm using the latest hercules rev.
Yes Pressed and @go 0

Tried both, and both works fine.. 

 
I even downloaded a fresh repo, same problem occur. 
default_sad.png
Sorry to keep this on hold for soo long time(still am very busy.)
Yet I managed to update this plugin and test, now it would disable delay upon death.

 
Hi @@Dastgir

I am now testing this plugin again, because last time I tested it, it crashes the map-server upon adding the battle configs. (I added it in conf/battle/battle.conf)

 
Hi @@Dastgir

I am now testing this plugin again, because last time I tested it, it crashes the map-server upon adding the battle configs. (I added it in conf/battle/battle.conf)
Fixed @v1.3b

Thanks for reporting (many) bugs xD.

 
Hi @@Dastgir

I am now testing this plugin again, because last time I tested it, it crashes the map-server upon adding the battle configs. (I added it in conf/battle/battle.conf)
Same with me ! Crash .

Hi @@Dastgir

I am now testing this plugin again, because last time I tested it, it crashes the map-server upon adding the battle configs. (I added it in conf/battle/battle.conf)
Fixed @v1.3b

Thanks for reporting (many) bugs xD.
Nice. Fast update.

 
Hi @@Dastgir

I am now testing this plugin again, because last time I tested it, it crashes the map-server upon adding the battle configs. (I added it in conf/battle/battle.conf)
Fixed @v1.3b

Thanks for reporting (many) bugs xD.
Haha no problem, thank you for fixing. I will test this again
default_wink.png


After testing:

Can anyone confirm if this is working? because I tried using @go or @warp after being hit and I was able to war. I have battle config set up to 3 secs.

 
Last edited by a moderator:
I have the same problem with Kong. Theres no Error. I also added the settings on battle.conf. I also restarted the server still the same. Any updates?

 
I already edit the malloc.h to memmgr.h, im using plugin in windows and i got this error. 

 

 1>  hit-delay.c
1>..\src\plugins\hit-delay.c(163): error C2065: 'memmgr' : undeclared identifier
1>..\src\plugins\hit-delay.c(163): warning C4013: 'GET_SYMBOL' undefined; assuming extern returning int
1>..\src\plugins\hit-delay.c(164): warning C4047: '=' : 'clif_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(165): warning C4047: '=' : 'script_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(166): warning C4047: '=' : 'skill_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(167): warning C4047: '=' : 'pc_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(168): warning C4047: '=' : 'battle_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(169): warning C4047: '=' : 'timer_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(170): warning C4047: '=' : 'map_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(171): warning C4047: '=' : 'mapindex_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(179): warning C4047: '=' : 'strlib_interface *' differs in levels of indirection from 'int'
1>..\src\plugins\hit-delay.c(180): warning C4003: not enough actual parameters for macro 'addBattleConf'
1>..\src\plugins\hit-delay.c(180): warning C4113: 'void (__cdecl *)(const char *)' differs in parameter lists from 'void (__cdecl *)(const char *,const char *)'
1>..\src\plugins\hit-delay.c(180): error C2059: syntax error : ')'
1>..\src\plugins\hit-delay.c(181): warning C4003: not enough actual parameters for macro 'addBattleConf'
1>..\src\plugins\hit-delay.c(181): warning C4113: 'void (__cdecl *)(const char *)' differs in parameter lists from 'void (__cdecl *)(const char *,const char *)'
1>..\src\plugins\hit-delay.c(181): error C2059: syntax error : ')'
1>..\src\plugins\hit-delay.c(182): warning C4003: not enough actual parameters for macro 'addBattleConf'
1>..\src\plugins\hit-delay.c(182): warning C4113: 'void (__cdecl *)(const char *)' differs in parameter lists from 'void (__cdecl *)(const char *,const char *)'
1>..\src\plugins\hit-delay.c(182): error C2059: syntax error : ')'
1>..\src\plugins\hit-delay.c(183): warning C4003: not enough actual parameters for macro 'addBattleConf'
1>..\src\plugins\hit-delay.c(183): warning C4113: 'void (__cdecl *)(const char *)' differs in parameter lists from 'void (__cdecl *)(const char *,const char *)'
1>..\src\plugins\hit-delay.c(183): error C2059: syntax error : ')'
1>..\src\plugins\hit-delay.c(184): warning C4003: not enough actual parameters for macro 'addBattleConf'
1>..\src\plugins\hit-delay.c(184): warning C4113: 'void (__cdecl *)(const char *)' differs in parameter lists from 'void (__cdecl *)(const char *,const char *)'
1>..\src\plugins\hit-delay.c(184): error C2059: syntax error : ')'
1>..\src\plugins\hit-delay.c(185): warning C4003: not enough actual parameters for macro 'addBattleConf'
1>..\src\plugins\hit-delay.c(185): warning C4113: 'void (__cdecl *)(const char *)' differs in parameter lists from 'void (__cdecl *)(const char *,const char *)'
1>..\src\plugins\hit-delay.c(185): error C2059: syntax error : ')'



Im using the latest Hercules-Master

It works now. i just use the latest plugin script. awesome work Mr. Dev!

Another Thing. i already plug all warp hit delay but it doesnt work. may i ask if this is the right config to battle.conf?
 

// Disable warp/go when hit
warp_delay: Seconds*3000
warp_delay_mob: Seconds*3000
warp_delay_pet: Seconds*3000
warp_delay_homun: Seconds*3000
warp_delay_merc: Seconds*3000
warp_delay_others: Seconds*3000
 
Back
Top