The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Swing swinging at record of the fight + source
Author Message
Mad Gunther
Apprentice
*

Posts: 45
Likes Given: 11
Likes Received: 5 in 5 posts
Joined: Oct 2015
Reputation: 1



Post: #19
RE: Swing swinging at record of the fight + source
Hello again and sorry for being too slowly to answer hehe. I have been able to finally match the system to my 51a purposes ^^. The issue got complicated since the pre delay is fire in 4 differents situations and not just in one like i thought at first. I have been spending more time this weeks testing with 51a than rather scripting in 0.56c to make damn sure it works 100%.

This system only should work for characters, npc´s should not use it if you want to replicate the old era.

Some info.

The script:

Code:
[events e_51a_combat]
ON=@HitTry
if (<ctag0.restartstrike<uid>>)
ctag0.firststrike<uid>=1
ctag0.strikefire<uid>=<serv.time>
ctag0.restartstrike<uid>//clear the tag.
ctag0.combatstarted<uid>=1
return 1
endif
if (<ctag0.engaged<uid>>!=<src.uid>)
ctag0.firststrike<uid>=1
ctag0.strikefire<uid>=<serv.time>
ctag0.engaged<uid>=<src.uid>
ctag0.combatstarted<uid>=1
return 1
endif
if (<ctag0.firststrike<uid>>)
if (<serv.time> > <ctag0.strikefire<uid>>+<eval <dargn1>>-18)
ctag0.firststrike<uid>//clear the tag.
ctag0.strikefire<uid>//clear the tag.
return 0
else
return 1
endif
endif

On=@Userwarmode
if (<ctag0.combatstarted<uid>>)
if (<argn1>==1)
ctag0.restartstrike<uid>=1
ctag0.combatstarted<uid>//clear tag.
endif
endif

On=@Hitmiss
if !(<ctag0.firststrike<src>>) || (<ctag0.engaged<src>>!=<uid>)
src.attacker.add <uid>
endif

ON=@CombatAdd
ctag0.firststrike<uid>=1
ctag0.strikefire<uid>=<serv.time>
ctag0.combatstarted<uid>=1


local.animdelay and argn1 values are at your own since every 51a server is different even using this pre-delay system because these values.

I have checked the script ingame and it works very good for me. I don´t know if using <serv.time> many times like these can bring trouble, that is the clearest way for me to achieve it. I´m building my server for just a few friends so it doesn´t scare too much the hell out of me right now.

Any feedback, revision or idea just let me know, the goal is to run it without bugs. Thanks again to Khaos,XuN and Coruja. Their help has been very helpful, with these guys is really hard to give up.
(This post was last modified: 03-17-2016 11:47 AM by Mad Gunther.)
03-17-2016 11:45 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mad Gunther's post
Post Reply 


Messages In This Thread
RE: Swing swinging at record of the fight + source - Mad Gunther - 03-17-2016 11:45 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)