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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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
Post Reply 


Messages In This Thread
Need help with sphere_combat - Rizz - 09-30-2014 10:37 AM
RE: Need help with sphere_combat - Rizz - 09-30-2014, 09:08 PM
RE: Need help with sphere_combat - Extreme - 10-01-2014, 12:13 AM
RE: Need help with sphere_combat - Rizz - 10-01-2014, 04:09 AM
RE: Need help with sphere_combat - Extreme - 10-01-2014, 04:25 AM
RE: Need help with sphere_combat - Rizz - 10-01-2014, 05:00 AM
RE: Need help with sphere_combat - Extreme - 10-01-2014, 05:23 AM
RE: Need help with sphere_combat - Rizz - 10-01-2014, 06:52 AM
RE: Need help with sphere_combat - Extreme - 10-01-2014, 07:33 AM

Forum Jump:


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