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-nmm7 (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-nmm7 (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-nmm7 (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
on=@HitTry... doesn't work!
Author Message
Jonaleth
Apprentice
*

Posts: 42
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
on=@HitTry... doesn't work!
Hello, I've just installed 56c and it works great!... exept when it comes to my custom made combat system.

It ignores the on=@HitTry but @Hit and @GetHit works as they should.

I've tried it all, but nothing seems to work...

Here's a short example (which worked earlier in 55b). Perhaps nothing fancy, but it gives me enough control to manipulate attackspeed on different weapons, and give bonuses for certain races/classes to fight faster with certain weapons...

But I tried to make something even more simple...



...But that didn't work either...
How can I get the HitTry trigger to work ?
(This post was last modified: 05-27-2015 03:17 AM by Jonaleth.)
05-27-2015 03:12 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: on=@HitTry... doesn't work!
Here works fine, is @HitTry in the same EVENT of @GetHit and @Hit ?

If you want to be sure that @HitTry works, search in sphere_skills.scp this part

[SKILLCLASS 0]


and at the end of the skill list add
ON=@HitTry
say I attack you



If this works, possible causes are:
1-@HitTry is in another event and you didn't install it.
2-Sometime i get weird behaviour on my scripts because there was strange characters on the text lines of the editor.
05-27-2015 03:46 AM
Find all posts by this user Like Post Quote this message in a reply
Jonaleth
Apprentice
*

Posts: 42
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: on=@HitTry... doesn't work!
ON=@Hit

works perfectly on the same event, but not the on=@HitTry.
Nothing happens when trying your suggestion;

[skillclass 0] //found in sphere_skills.scp
ON=@HitTry
say I attack you

The weird part is, the entire system works just fine on the 56b server, but not on the 56c!
(This post was last modified: 05-27-2015 03:59 AM by Jonaleth.)
05-27-2015 03:59 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: on=@HitTry... doesn't work!
Are you using the 56c scripts file ?

http://nightly.prerelease.sphere.torfo.o...pts.tar.gz
05-27-2015 04:05 AM
Find all posts by this user Like Post Quote this message in a reply
Jonaleth
Apprentice
*

Posts: 42
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #5
RE: on=@HitTry... doesn't work!
Yes they are updated, and I just did so again to be sure...

However, I downloaded a new version of sphereserver 56c, and it doesn't give me the same error... Now it seems like the character refure to enter combat.
I am entering warmode, dubble clicking on a corpser, but nothing happens... he is not even targeted...

I just think this is really weird!
05-27-2015 04:33 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: on=@HitTry... doesn't work!
For testing, try to use 56c without any of your scripts, just the default scripts, because for most of people it works fine Tongue

Also don't use the scripts from the community pack
(This post was last modified: 05-27-2015 04:44 AM by darksun84.)
05-27-2015 04:44 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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