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
NPC AI Sphere vs RunUO
Author Message
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #17
RE: NPC AI Sphere vs RunUO
aha MoveRate !!! the overide tag, i guess some of the mobs dont follow so well because they are slow !!!
Code:
[EVENTS e_NPCBrains]
ON=@NPCSeeNewPlayer
    TAG.LastLookedAt=<SRC.UID>
    IF <CheckLineOfSight <SRC.UID>>
        SAY I see <SRC.UID> and im gonna kill him
        NEWITEM i_RunLikeABastard, 1, <UID>
        ATTACK
        RETURN 0
    ELSE
        SAY I sense someone but i cannot see them
        IF <FINDID.i_runLikeABastard>
            FINDID.i_runLikeABastard.REMOVE
        ENDIF
        GO <HOME> // Go Home or Pathfind ????
        RETURN 1
    ENDIF

[ITEMDEF i_runLikeABastard]
DEFNAME=i_runLikeABastard
ID=i_memory
NAME=Run Like a Bastard
TYPE=t_eq_script

ON=@CREATE
    ATTR=ATTR_NEWBIE|ATTR_DECAY|ATTR_MOVE_NEVER
    TIMER=1
    MORE=1

ON=@TIMER
    LOCAL.CurrentMoveRate=<CONT.MOVERATE>
    LOCAL.CurrentMobUId=<CONT.UID>
    IF <MORE> > 6
        CONT.MANA=<EVAL <CONT.INT>> // Speed times out you can cast now have some mana
        CONT.TAG.OVERRIDE.MOVERATE=<LOCAL.CurrentMoveRate>
        REMOVE
        RETURN 1
    ELSE
        CONT.MANA=0  // Dont cast run
        CONT.TAG.OVERRIDE.MOVERATE=<EVAL <LOCAL.CurrentMoveRate>/3> // Run 3 times faster than usual
        MORE=<MORE>+1
        TIMER=1
        RETURN 1
    ENDIF
    RETURN 1

That helps the monsters stay on your tail. !
(This post was last modified: 10-02-2012 09:55 AM by Barnabus.)
10-02-2012 09:52 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC AI Sphere vs RunUO - WRWR - 07-28-2012, 08:41 PM
RE: NPC AI Sphere vs RunUO - Shaklaban - 07-28-2012, 09:32 PM
RE: NPC AI Sphere vs RunUO - darksun84 - 07-29-2012, 12:59 AM
RE: NPC AI Sphere vs RunUO - WRWR - 07-29-2012, 02:09 AM
RE: NPC AI Sphere vs RunUO - ShiryuX - 07-31-2012, 01:21 PM
RE: NPC AI Sphere vs RunUO - Barnabus - 10-02-2012, 12:22 AM
RE: NPC AI Sphere vs RunUO - JeBu - 10-02-2012, 02:43 AM
RE: NPC AI Sphere vs RunUO - Mordaunt - 10-02-2012, 03:27 AM
RE: NPC AI Sphere vs RunUO - gokku - 10-02-2012, 05:44 AM
RE: NPC AI Sphere vs RunUO - Extreme - 10-02-2012, 07:01 AM
RE: NPC AI Sphere vs RunUO - Shaklaban - 10-02-2012, 07:09 AM
RE: NPC AI Sphere vs RunUO - Extreme - 10-02-2012, 07:23 AM
RE: NPC AI Sphere vs RunUO - Shaklaban - 10-03-2012, 01:42 AM
RE: NPC AI Sphere vs RunUO - Barnabus - 10-02-2012, 07:26 AM
RE: NPC AI Sphere vs RunUO - Barnabus - 10-02-2012 09:52 AM

Forum Jump:


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