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
Need help with sphere_combat
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #1
Need help with sphere_combat
This is the original code

Code:
if (<CanSee <src>>)                                                    // If I can see my target.
    serv.b cansee                                                                // And my target is being ridden (should not happen) or ! CanSeeLos (Ignoring windows if i'm shooting).
    if ( (<src.brain> && <src.flags>&statf_ridden) || !<CanSeeLosFlag <src>,<qval ( <Action>==archery )? LOS_NB_WINDOWS : 0>>)
        if ( !<serv.CombatFlags>&200 || <Swing>!=SWING_SWINGING)    // I'm going to stop (unless i'm preparing to hit and Combat_StayInRange is not set).
            argn1 SWING_READY
            return 1
        endif
        argn1 SWING_EQUIPPING
        return 1
    endif
else
    if ( !<serv.CombatFlags>&200 || <Swing>!=SWING_SWINGING)        // same here but without LOS check.
        argn1 SWING_READY
        return 1
    endif
    argn1 SWING_EQUIPPING
    return 1
endif

Default behaviour:
A is attacking B, B hides himself, A stops to attack B until B becomes visible again and after A presses "attacklast".

What i need:
A is attacking B, B hides himself, A is ready to hit B when B will become visible again without use "attacklast".

LOL @HitCheck doesn't trigger if you use "attacklast" on someone that is hidden...
(This post was last modified: 09-30-2014 10:45 AM by Rizz.)
09-30-2014 10:37 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #2
RE: Need help with sphere_combat
Ok i think sphere_combat is not proper working...
09-30-2014 09:08 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #3
RE: Need help with sphere_combat
You don't have to use it, I don't use it Smile

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-01-2014 12:13 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #4
RE: Need help with sphere_combat
Eh XuN suggested me to use it to change all the combat system as i want... actually i would like to use but, in order to make some changes, i need a working code.

Right now, eveything under the code i quoted seems to be ignored.
10-01-2014 04:09 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #5
RE: Need help with sphere_combat
It's work for me, but I don't need it.
Maybe you didn't understand how to use this new trigger.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-01-2014 04:25 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #6
RE: Need help with sphere_combat
(10-01-2014 04:25 AM)Extreme Wrote:  It's work for me, but I don't need it.
Maybe you didn't understand how to use this new trigger.

I will thx you if you'll explain me.

This is not enough to install?
ON=@HitCheck
call f_combat_hit <src>
src.f_combat_gethit=<local.dam>,<argn2>
10-01-2014 05:00 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #7
RE: Need help with sphere_combat
Yes, start adding E_COMBAT_SYSTEM in your characters.
Then to debug the script, insert a lots of serv.b to identify where is the problem and what.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-01-2014 05:23 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #8
RE: Need help with sphere_combat
(10-01-2014 05:23 AM)Extreme Wrote:  Yes, start adding E_COMBAT_SYSTEM in your characters.
Then to debug the script, insert a lots of serv.b to identify where is the problem and what.

Yes i did but i cannot pass the code i posted.
10-01-2014 06:52 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: Need help with sphere_combat
Maybe there is something in revisions logs that can help you.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-01-2014 07:33 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)